Repository navigation
✨ 풀이 기록 조회 API 확장 및 타인 제출 404 처리 - #47
Merged
Merged
Conversation
- GET /submissions/me: problemTitle, difficulty, aiScore 추가. JPQL 프로젝션 + join으로
N+1 없이 목록 1회 + count 1회로 조회. 정렬은 최신순(submittedAt desc, id desc)으로 고정하고
클라이언트 sort는 무시, size는 최대 100
- GET /submissions/me/{id} 추가(기존 /{id}와 같은 응답). problem은 fetch join으로 1회 조회
- 타인 제출 조회를 403에서 404(SUBMISSION_NOT_FOUND)로 변경 — /{id}, /{id}/feedback 포함.
SubmissionAccessDeniedException과 핸들러 제거
- aiScore = time+readability+originality 합, 하나라도 없으면 null
- V14: submission (user_id, submitted_at) 복합 인덱스
- 테스트: 본인 목록/페이징/PENDING 포함/쿼리 수/aiScore/타인 상세 404
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
- 프론트가 아직 API 연결 전이라 호환 별칭 없이 상세 조회를 /submissions/me/{id}로만 제공
- /submissions/{id}/feedback은 유지하고 타인 제출 404 규칙만 유지
- 테스트: 옛 경로가 더 이상 응답하지 않음, feedback 타인 제출 404
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
s26059-maker
force-pushed
the
feat/submission-history
branch
from
October 12, 2026 11:18
9783051 to
075be5a
Compare
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.
개요
학습 모드 대신 제공하기로 한 "내 풀이 기록" 기능입니다. 기존
GET /submissions/me를 확장하고 상세 경로를 정리합니다.API 변경
GET /submissions/meproblemTitle,difficulty,aiScoreGET /submissions/{id}GET /submissions/me/{id}(기존 경로 제거)SUBMISSION_NOT_FOUND)/{id}/feedbackaiScore= time + readability + originality 합계, 하나라도 null이면 nullsize최대 100SubmissionAccessDeniedException과 핸들러 삭제성능
V14__submission_user_submitted_at_index.sql:(user_id, submitted_at)복합 인덱스 추가테스트
/feedback404feat/rename-topic-order(V13) 머지 후 develop을 rebase하고 머지해주세요.리뷰 요청
/me/{id})와 404 처리 참고