feat: 초대 수락시 프로젝트 역할 선택 및 프로젝트 API 인증 전환 구현 - #40
Merged
Conversation
…vitation-role-auth
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (9)
📝 WalkthroughWalkthrough프로젝트 관련 API의 사용자 식별을 Changes프로젝트 인증 및 초대 역할 처리
Estimated code review effort: 3 (Moderate) | ~25 minutes Possibly related PRs
Suggested labels: Suggested reviewers: 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing Touches📝 Generate docstrings
Comment |
young0206
approved these changes
Jul 22, 2026
sangwon02
approved these changes
Jul 22, 2026
This was referenced Jul 23, 2026
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
🔗 관련 이슈 (Related Issue)
✅ 작업 내용
프로젝트 관련 API에서 임시
X-USER-ID헤더 사용을 제거하고, JWT 인증으로 주입되는 현재 사용자 ID를 사용하도록 변경했습니다.추가로 초대 링크 수락 시 사용자가 프로젝트 내 역할을 선택할 수 있도록
roleNames저장 흐름을 반영했습니다!주요 검토 파일
src/main/java/com/slatto/domain/project/controller/ProjectController.javasrc/main/java/com/slatto/domain/project/controller/ProjectMemberController.javasrc/main/java/com/slatto/domain/project/controller/ProjectNoticeController.javasrc/main/java/com/slatto/domain/project/controller/ProjectInvitationController.javasrc/main/java/com/slatto/domain/project/service/ProjectInvitationService.javasrc/main/java/com/slatto/domain/project/service/ProjectMemberService.javasrc/main/java/com/slatto/global/config/SecurityConfig.java1. 프로젝트 API 인증 방식 전환
프로젝트 관련 API에서 임시로 사용하던
X-USER-ID헤더를 제거하고, 인증 필터에서 주입되는@AuthenticationPrincipal Long userId를 사용하도록 변경했습니다.2. 초대 링크 조회 비로그인 접근 허용
초대 링크 진입 화면에서 로그인 전에도 초대 정보를 확인할 수 있도록 조회 API만 비로그인 접근을 허용했습니다.
초대 수락 API는 프로젝트 멤버 추가가 발생하는 기능이므로 기존처럼 인증이 필요합니다.
3. 초대 수락 시 역할 선택 반영
초대 링크 수락 요청에
roleNames를 추가했습니다.{ "roleNames": [ "DIRECTOR", "EDITOR" ] }수락 시 선택한 역할은
ProjectUserRole로 저장되며, 중복 역할은 제거한 뒤 저장하도록 처리했습니다.응답에도 저장된 역할 목록을 포함했습니다.
4. 프로젝트 멤버 역할 수정 권한 변경
프로젝트 멤버 역할 수정 권한을 다음 기준으로 변경했습니다.
ADMIN피그마에 존재하듯 사용자가 초대 수락 후에도 자신의 프로젝트 역할을 직접 수정할 수 있도록 했습니다.
✅ PR 체크리스트
💬 To Reviewers
다음 부분을 중심으로 확인 부탁드립니다!
@AuthenticationPrincipal Long userId를 사용하는 방식이 인증 구조와 맞는지Summary by CodeRabbit
새 기능
개선 사항