fix/KD3-278: 발표자료 목록 분반 권한 검증 - #265
Merged
Merged
Conversation
|
Important
This repository does not receive automatic reviews because it has fewer than 10 stars. ⚙️ Run configurationConfiguration used: Repository: kgu-developers/aics-team-project-server/.coderabbit.yaml Review profile: CHILL Plan: Advanced Run ID: Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Test Coverage Report
Files
|
hoTan35
approved these changes
Sep 30, 2026
hoTan35
left a comment
Contributor
There was a problem hiding this comment.
4대 렌즈(경계값, 상태 불변성, 에러 계약, 테스트 격리) 기준으로 검토 완료했습니다.
- 권한 및 경계값 검증: 분반의 활성 학생(
ACTIVE+STUDENT) 및 담당 교수만 허용하고 타 분반 사용자, 수강철회자, 조교를 명확히 403 차단하는 로직이 도메인 규칙과 잘 부합합니다. - 효율성:
validatePresentationMilestone에서Milestone객체를 직접 반환하도록 리팩터링하여 중복 DB 조회 없이sectionId를 깔끔하게 추출한 점이 좋습니다. - 선제 차단: 팀 발표자료 조회 및 Presigned URL 발급 전 가장 먼저 분반 권한을 검사하므로, 불필요한 S3 URL 발급 및 데이터 노출이 원천 차단됩니다.
- 테스트 및 문서화: Swagger 403 응답 명시와 함께 시나리오별 5건의 테스트가 추가되었으며, 로컬 빌드 및 전체 테스트(41개), JaCoCo 커버리지 통과를 확인했습니다.
LGTM! 수고하셨습니다.
This branch was successfully deployed
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.
Summary
Closes #264
GET /api/v1/milestones/{milestoneId}/presentations에서 발표자료를 읽기 전에 마일스톤의 분반을 확인합니다. 해당 분반의 활성 학생 또는 담당 교수만 조회할 수 있으며, 그 외 사용자는403을 받습니다.Tasks
403응답 명시To Reviewer
SubmissionFacadeTest41개 및 JaCoCo 검증이 통과했습니다.