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

[feat] 약속 나가기, 약속 삭제하기 API 구현 #97

Merged
merged 3 commits into from
Aug 20, 2024
Merged

Conversation

chaewonni
Copy link
Member

Related issue 🛠

Work Description ✏️

  • 약속 나가기 API 구현
  • 약속 삭제하기 API 구현
  • @IsParticipant 어노테이션 사용 시 ParticipantCheckAspect에서, 해당 유저가 참가자가 아닐 때 반환하는 오류를 '모임에 참여하지 않은 회원입니다' 에서 '참여하지 않은 약속입니다'로 변경

Uncompleted Tasks 😅

  • N/A

To Reviewers 📢

약속한 속한 모든 참가자들을 삭제할 때 deleteAll과는 다르게 단일 쿼리를 보내 성능이 향상된다는 deleteAllInBatch를 사용해보았습니다..! 그러나 deleteAllInBatch가 영속성 컨텍스트 관련 처리는 생략한다고 한다고 해서 적절한 선택을 한건지 고민이 됩니다.

Copy link
Contributor

@tkdwns414 tkdwns414 left a comment

Choose a reason for hiding this comment

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

좋습니다. 수고하셨어요!

@@ -25,7 +25,7 @@ public void checkUserInMeeting(JoinPoint joinPoint, IsParticipant checkUserInPro
Long userId = (Long) SecurityContextHolder.getContext().getAuthentication().getPrincipal();

if (!participantRetriever.existsByPromiseIdAndUserId(promiseId, userId)) {
throw new MemberException(MemberErrorCode.NOT_JOINED_MEMBER);
throw new ParticipantException(ParticipantErrorCode.NOT_JOINED_PROMISE);
Copy link
Contributor

Choose a reason for hiding this comment

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

오... 모르고 있던 실수가 있었군요. 좋습니다!

@chaewonni chaewonni merged commit a1a551e into develop Aug 20, 2024
1 check passed
@chaewonni chaewonni deleted the feat/96 branch August 20, 2024 15:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[feat] 약속 나가기, 약속 삭제하기 API 구현
2 participants