refactor(lps): job_type 명칭 정리 — 출처 기반(레거시 negowiz 제거)
레거시 용어(negowiz)와 모호한 이름(new/single)을 출처 기반으로 변경. 우선순위 1~4는 유지, 기본값 single→manual. - new_product(1) / manual(2, 기본) / partner(3) / batch(4) - lps_service 우선순위 맵 + protocol 기본값/설명 + docs/api.md 표 + 테스트 갱신 - 전체 54/54 Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
1 parent
8bf34ea346
commit
4863425ca5
4 files changed
+14
-6
No files matched your search
@@ -12,7 +12,7 @@ async def clean_jobs(db_engine):
|
||||
|
||||
async def test_search_enqueues_jobs(client, clean_jobs):
|
||||
body = {"data": [
|
||||
{"product_code": "P1", "product_name": "커피", "job_type": "new"},
|
||||
{"product_code": "P1", "product_name": "커피", "job_type": "new_product"},
|
||||
{"product_code": "P2", "product_name": "무선마우스", "specification": "M170"},
|
||||
]}
|
||||
r = await client.post("/v1/lps/search", json=body)
|
||||
@@ -24,7 +24,7 @@ async def test_search_enqueues_jobs(client, clean_jobs):
|
||||
|
||||
|
||||
async def test_search_dedupes_active_product(client, clean_jobs):
|
||||
body = {"data": [{"product_code": "P1", "product_name": "커피", "job_type": "new"}]}
|
||||
body = {"data": [{"product_code": "P1", "product_name": "커피", "job_type": "new_product"}]}
|
||||
await client.post("/v1/lps/search", json=body)
|
||||
r2 = await client.post("/v1/lps/search", json=body) # 같은 product_code 재요청
|
||||
item = r2.json()["items"][0]
|
||||
|
||||
Reference in new issue
Block a user