[Plan] 링크 기반 계획 공유 & UK 검증#171
Conversation
⭐ JaCoCo CoverageLine Coverage: 6.72% 📄 Coverage DetailsOverall Line Coverage: 6.68% (189 covered / 2830 lines) Package Summary (lowest first)
Lowest Covered Classes (Top 20)
Changed Classes (from this PR)
🔗 Full HTML report: See artifact jacoco-full-html on this run → https://github.com/prgrms-web-devcourse-final-project/WEB7_9_codecrete_BE/actions/runs/20439472128 |
| private String shareToken; | ||
|
|
||
| @Schema(description = "공유 링크", example = "/plans/share/550e8400-e29b-41d4-a716-446655440000") | ||
| private String shareLink; |
There was a problem hiding this comment.
UUID 쓰신 것은 좋아 보이는데, 너무 길어서 조금만 줄이시면 좋을 것 같습니다!
There was a problem hiding this comment.
UUID 쓰신 것은 좋아 보이는데, 너무 길어서 조금만 줄이시면 좋을 것 같습니다!
바로 반영하겠습니다!
| // DB 레벨에서 이미 참가자인지 확인 (유니크 제약조건 검증) | ||
| boolean isAlreadyParticipant = planParticipantRepository.existsByUser_IdAndPlan_PlanId( | ||
| user.getId(), plan.getPlanId()); | ||
|
|
There was a problem hiding this comment.
exist로 검증한 부분이 좋네요
| user.getId(), plan.getPlanId()); | ||
|
|
||
| if (isAlreadyParticipant) { | ||
| // 이미 참가자인 경우 상태를 ACCEPTED로 변경 |
There was a problem hiding this comment.
추후 계획 수락부분에서 변경하시려고 Join에서 accepted로 설정하게 해두신건가요...?
There was a problem hiding this comment.
추후 계획 수락부분에서 변경하시려고 Join에서 accepted로 설정하게 해두신건가요...?
아.. PENDING이 맞는데 초반 설계 단계에서 급하게 하느라 지나갔네요ㅎㅎ 조언 감사합니다!~
수락 기능도 있어서 링크 클릭 시 조회하는 것으로 하겠습니다.
There was a problem hiding this comment.
아래에 계획 수락 부분이 있었는데 accepted라서 당황했어요 ㅋㅋㅋㅋㅋ 혹시 다른 로직에서 검증한다고 일부러 accepted 해두신줄 알았습니다
🔗 관련 이슈
🚀 PR 개요
📌 변경 사항
🧪 테스트 방법
📸 스크린샷 (선택)