Repository navigation
Conversation
- GET /admin/photo-booth: tb_photo_booth_enriched 전체를 읽기 전용으로 조회한다. 브랜드는 LEFT JOIN 하고
brandId·keyword·sourceType 으로 거르며 지점명·platform·idx 순이다. exposedOnMap, manualPhotoBoothId 를 함께 준다.
- GET /admin/photo-booth/manual/{id}: 수동 지점 단건 조회. 없거나 삭제됐으면 400 D-04.
- 수동 지점 목록·단건에 reflectedOnMap 을 더한다. 목록은 페이지의 id 를 한 번의 쿼리로 확인한다.
- EnrichedPhotoBooth 에 source_type 을 매핑하고 테스트용 enriched 스키마에 열을 더한다.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 14 minutes. View limit details
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. |
There was a problem hiding this comment.
요약
어드민에 enriched 전체 부스 조회(GET /admin/photo-booth)와 수동 지점 단건 조회를 추가하고, 수동 지점 항목에 reflectedOnMap 을 붙이는 PR 입니다. 운영 위험(공유 DB 결합, 배포 순서, 롤백, 어드민 웹 계약)과 과설계 관점으로 봤습니다. 어드민 웹 PR(Team-Neki-Admin#9)이 기대하는 필드와 응답 형상은 일치하고, 새 경로는 기존 /admin/** 인가 규칙에 포함됩니다.
인라인 코멘트 2건
배포 · 롤백
- 머지하면 api 가 prod 에 자동 배포됩니다. api 는
ddl-auto: none이고 지도 조회는source_type을 select 하지 않는 projection 이라 영향이 없습니다. - admin-api 는
deploy-admin.yml수동 배포입니다. 순서는 이 PR 머지 -> admin-api 배포 -> 어드민 웹 PR 머지입니다. - Flyway 변경이 없어 롤백은 이미지 태그를 되돌리면 됩니다. 어드민 웹이 먼저 나가 있으면 웹도 함께 되돌려야 합니다.
확인 필요
- admin-api 배포 전에 운영 DB 의
tb_photo_booth_enriched에source_type열이 있는지 확인이 필요합니다(인라인 코멘트 참고). 운영 DB 를 조회할 경로가 없어 확인하지 못했습니다. 머지 자체를 막는 사항은 아닙니다. - Sprint 맥락 미참조(MCP unauthorized). BACKEND-310 의 수용 기준과는 대조하지 못했습니다.
- 게시 시점에 CI
Test가 진행 중이었습니다.
판정
머지를 막는 지적이 없어 승인합니다.
enriched 에 manual-<id> 행이 있는지만 봐서, 실린 뒤 수정했거나 브랜드를 지도에서 숨긴 지점도 true 였다. Workflow 는 관리자 등록 지점의 updated_at 을 collected_at 으로 싣으므로(region.from_manual) collected_at 이 마지막 수정 이후인지 보고, 지도 조회와 같이 살아있는 노출 브랜드와 좌표가 있는지도 본다. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This branch has not been 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.
배경
어드민 부스 관리는 관리자가 직접 등록한 지점(
TB_PHOTO_BOOTH_MANUAL)만 볼 수 있어, 지도·검색이 실제로 읽는 Workflow 결과(tb_photo_booth_enriched, 수집 + 수동)를 확인할 방법이 없었습니다. 수동 등록한 지점이 다음 enrich 실행 뒤 지도에 들어갔는지도 알 수 없었습니다. 어드민 웹이 부스 관리를 "전체 부스 / 수동 등록" 탭으로 나누면서 필요한 조회 API 를 추가합니다.Sprint: BACKEND-310
변경 내용
GET /admin/photo-booth?brandId&keyword&sourceType&page&size: enriched 전체를 읽기 전용으로 조회합니다. 브랜드는 지도와 같은 키(b.code = e.platform)로 LEFT JOIN 하고, 지도와 달리expose_to_map으로 거르지 않고exposedOnMap으로 알려 줍니다. 수동 행은manualPhotoBoothId로 원본 수동 등록과 연결됩니다.GET /admin/photo-booth/manual/{id}단건 조회를 추가하고, 수동 목록 항목에reflectedOnMap을 붙였습니다. 지금 지도에 마지막 수정 내용대로 나오는지입니다. 페이지 단위 쿼리 한 번으로 enriched 에MANUAL·manual-<id>로 실렸고, 실린collected_at(Workflow 가 지점의updated_at을 그대로 싣는 값)이 마지막 수정 이후이며, 살아있는 노출 브랜드와 좌표가 있는지 봅니다. 수정 뒤 다음 enrich 전이거나 숨긴 브랜드면 false 입니다.EnrichedPhotoBooth에 Workflow 가 채우는source_type(COLLECTED·MANUAL)과collected_at을 매핑했습니다. 테이블은 Workflow 소유라 Flyway 변경은 없고, 테스트 스키마(V40_1)에만 컬럼을 더했습니다.AdminBrandFacade와 같은 방식).검증
./gradlew :apps:admin:test90건 통과(PostGIS 스키마 테스트 포함,reflectedOnMap은 수정 뒤·숨긴 브랜드 경우 포함),:apps:batch:test18건,:apps:api:test지도·검색 172건 통과, 실패 0./gradlew spotlessCheck통과ponytail:로 한계를 적어 두었습니다.머지 전 확인: admin-api 는
ddl-auto: validate라 배포 전에 운영tb_photo_booth_enriched에source_type·collected_at열이 있는지 확인합니다(Workflow 가 enrich 마다 NOT NULL 로 만드는 열). 어드민 웹 PR(부스 탭 분리)은 이 PR 이 운영에 배포된 뒤 머지합니다.🤖 Generated with Claude Code