fix: 다이소 매장 재고 조회를 신규 인증 흐름으로 전환#41
Merged
Merged
Conversation
Owner
|
PR 감사합니다 퇴근 후 확인할게요! |
Contributor
Author
|
커버리지 게이트 실패 원인을 확인해서 보완했습니다.\n\n- 다이소 신규 인증/재고 조회 흐름의 미커버 분기 테스트를 추가했습니다.\n- Node CI에서 항상 존재하는 Buffer 기반 Base64 분기 외의 browser-like fallback은 c8 ignore로 명시했습니다.\n- 로컬 확인: |
Owner
|
기여 감사합니다! |
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.
변경 요약
newIntSelStr단일 호출에서 현재 프론트 동작 기준의 새 흐름으로 전환했습니다.selStr로 매장 목록을 찾고,/auth/request기반 인증을 생성한 뒤selStrPkupStck로 매장별 재고를 조회하도록 수정했습니다.관련 이슈
체크리스트
npm run format:check통과npm run lint통과npm run typecheck통과npm test통과테스트 방법
추가 실동작 확인:
npx wrangler dev --port 8787 curl 'http://127.0.0.1:8787/api/daiso/inventory?productId=58703&keyword=%EA%B0%95%EB%82%A8%EC%97%AD'위 로컬 스모크 테스트에서 실제로 아래 매장 재고가 반환되는 것을 확인했습니다.
11199강남역점 →2610224강남역2호점 →1참고 사항
wrangler dev기준으로 확인했습니다./auth/request응답의X-DM-UID및DM_UID쿠키를 사용해 인증 헤더를 구성합니다.openapi.json,openapi.yaml은 빌드 과정에서 함께 갱신되었습니다.