[이슈 #42 자동] [BE] 품목/재고 CRUD 실엔드포인트 전환 + 품목마스터 canonical 노출 - #46
Merged
Conversation
품목 마스터(canonical) 조회 + 품목별 전국 재고 실엔드포인트 라우터 추가. 표준품목 실데이터(Neon Postgres)를 canonical 마스터 진입점으로 노출하고, 품목 상세에서 전국 기관 재고를 실데이터로 반환한다. 쓰기 CRUD·101,546 canonical 실제 교체는 DB #38 스키마 확정·data 적재 선행이라 이번 초안 범위 밖. Co-Authored-By: Claude <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
3 tasks
Contributor
Author
|
보류 (닫지 않음). DB 스키마 확정(#38) 선행 필요. 제목은 'CRUD 실엔드포인트 전환'이지만 실제로는 기존 방향과 배치되진 않으나 현 상태의 실질 가치가 낮고 선행 의존이 미해결입니다. → 재개 조건: #38 스키마 확정 후 재평가. 그때까지 Draft 유지. |
choigod1023
marked this pull request as ready for review
August 7, 2026 02:35
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.
Description
품목 마스터를 "data canonical" 진입점으로 노출하는
routers/item_master.py를 추가했습니다. 표준품목 실데이터(Neon Postgres)를GET /item-master(검색·품목군·페이지) 로 서빙하고,GET /item-master/{code}상세와GET /item-master/{code}/stock(품목별 전국 기관 재고, 실데이터 — mock 없음)을 제공합니다. 응답 메타(canonical)에 목표 규모(101,546)·현재 규모·전환 대기 여부를 실어 FE 가 전환 상태를 인지하게 했습니다. 인증·인가는require_role("CENTRAL")을 재사용합니다.Related #42
Type
Screenshots
To Reviewer
이슈 #42 자동 구현 초안입니다 — 검토 후 머지해주세요.
이번 초안은 조회(READ) 실엔드포인트 전환에 한정한 최소 범위입니다:
GET /item-master,/item-master/{code},/item-master/{code}/stock를 실데이터 소비로 추가.inventory_policy_rows(실데이터)를 표준코드로 필터링해 소비 — mock 아님.다음은 선행 의존이 있어 이번 자동 초안 범위에서 제외했습니다(검토 후 별도 진행 권장):
db/queries.py는 읽기 전용 계층입니다. 쓰기는 스키마 쓰기 경로·트랜잭션 설계가 필요해 최소 자동 PR 범위를 벗어납니다.swapPending: true로 표시합니다.py_compile로 문법 검증했으며, 실제 DB 응답은 프리뷰 배포에서 확인 부탁드립니다.PR Checklist
Generated by Claude Code