T-39 게임 빌드 메타 등록 (파일 업로드 제외) - #112
Open
ff1451 wants to merge 1 commit into
Open
Conversation
POST/GET/DELETE로 빌드 버전 메타만 등록·조회·삭제한다. 실제 ZIP 수신·압축
해제·서빙은 이번 범위 밖이다 — 다루면 ADR-023 범위를 벗어난다. 후속
태스크(T-41)가 홈페이지 서버 쪽 설계와 함께 구현한다.
- POST /v1/admin/games/{id}/builds — 버전만 받아 status=PENDING으로 등록,
uploadedBy는 JWT subject(관리자 본인)
- GET /v1/admin/games/{id}/builds — 최신순 목록
- DELETE /v1/admin/games/{id}/builds/{buildId} — 메타 삭제
테스트: AdminGameBuildIntegrationTest(신규 4개) — 등록 시 PENDING·buildFileUrl
없음(ADR-023), 활성 빌드가 없으면 공개 응답의 activeBuild가 null이고 500이
아님(AC-9.10), 삭제 후 목록에서 사라짐, 존재하지 않는 게임에 등록하면 404.
./gradlew test 전체 통과(164개, 실패 0). 신규 마이그레이션 없음.
Refs #111
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Plus Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
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 |
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.
요약
T-38 PR(#110) 위에 스택한다. 빌드 버전 메타데이터만 등록·조회·삭제한다 — 실제 ZIP 업로드·압축해제·서빙은 이번 범위 밖이며, 다루면 ADR-023 범위를 벗어난다. 후속 태스크 T-41이 홈페이지 서버 쪽 설계와 함께 구현한다.
변경 사항
POST /v1/admin/games/{id}/builds— 버전만 받아status=PENDING으로 등록,uploadedBy는 JWT subject(관리자 본인)GET /v1/admin/games/{id}/builds— 최신순 목록DELETE /v1/admin/games/{id}/builds/{buildId}테스트
AdminGameBuildIntegrationTest(신규 4개) — 등록 시PENDING·buildFileUrl없음(ADR-023), 활성 빌드가 없으면 공개 응답의activeBuild가null이고 500이 아님(AC-9.10), 삭제 후 목록에서 사라짐, 존재하지 않는 게임에 등록하면 404.수동 검증
./gradlew test전체 통과(164개, 실패 0). 신규 마이그레이션 없음.남은 항목
T-40(멘토 슬롯+Q&A+모집 링크)은 후속 PR. T-41(빌드 업로드 파이프라인)은 홈페이지 쪽 설계 합의 전까지 착수하지 않음.
Refs #111