Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

타입 수정 및 네이밍 분리 (userId, hashedId) #19

Merged
merged 3 commits into from
Feb 6, 2024

Conversation

Hanna922
Copy link
Member

@Hanna922 Hanna922 commented Feb 5, 2024

1️⃣ 어떤 작업을 했나요? (Summary)

  • 사용처에서 event 내부 값만 보내주는 것이 아닌 userId도 같이 보내주므로 기존에 존재하던 LoggerType(event 내부 값만 취급)을 제거하였습니다.

    • LoggerType을 사용하던 부분은 LogPayloadParams로 통일하였습니다.
  • LogPayloadParams(사용처에서 넣어주는 값, 타입) 내부 userId 타입을 number -> string

  • LogType(최종 Log 형태)의 기존 userId -> hashedId 네이밍 변경 및 타입 number -> string

  • setLocalStorage 로직을 삭제하였습니다.

  • 주석도 저번에 얘기 나눈대로 살짝 수정했습니다~!

  • demo app에도 수정 사항 반영해뒀습니다.

  • resolved [FEAT] userId, hashedId 네이밍 분리 #18

3️⃣ 추후 작업

createHashedId 함수 구현

4️⃣ 체크리스트 (Checklist)

  • main 브랜치의 최신 코드를 pull 받았나요?

@Hanna922 Hanna922 self-assigned this Feb 5, 2024
@Hanna922 Hanna922 requested a review from JjungminLee as a code owner February 5, 2024 12:07
@JjungminLee JjungminLee merged commit 8a46d32 into develop Feb 6, 2024
@Hanna922 Hanna922 deleted the feat/#18 branch February 6, 2024 14:25
path?: string;
tags?: string[];
}

// LogPayloadParams: 사용처에서 넣어주는 값
export interface LogPayloadParams {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

사용처에서 넣어주는 값으로 로그 모델 통일하는거 좋습니닷!

const screen = ({ serviceName, name }: LogPayloadParams) => {
//사용자에서 path,name,message를 넣어줌
const loggerType: LoggerType = {
const screen = ({ userId, serviceName, name }: LogPayloadParams) => {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

path 필요할것 같아서 추가해둘게요!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[FEAT] userId, hashedId 네이밍 분리
2 participants