Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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
Fix/#232 프로필에 동일한 활동을 중복해서 등록할 수 있는 버그 #250
Fix/#232 프로필에 동일한 활동을 중복해서 등록할 수 있는 버그 #250
Changes from 3 commits
74f13a5
d02814e
ad76664
a284a46
14a321f
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
activityIds가 중복으로 들어오는 경우도 있는건가요??
distinct 를 해주신 이유가 궁긍합니다.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
현재 UI 상으로는 활동을 중복으로 선택하는 것이 불가능하기에 정상적인 경우 중복 데이터가 요청으로 들어올 일은 없을겁니다!
하지만 악의적으로 중복된 활동 id를 포함한 데이터를 담아 API 호출을 하는 경우, 예외를 반환하는 것이 옳은 대처라고 생각해서 유효성 검증을 추가해주었습니다!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
넵 그러면 distinct 보다는 Set 어떠신가요? Long 사용하는거라 자료구조를 사용하면 더 좋아보여요!!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
반영하였습니다!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
여기서 이미 존재한다고 하는 것 보다, 이미 등록된 활동입니다. 정도로 표현하는건 어떨까요?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
반영했습니다!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
그거 그렇게 하는거 아닌데...