Repository navigation
fix(places): 사진·미리보기 조회 실패 시 반복 요청하지 않도록 재시도·batch 조회 정리 - #248
Open
KangShinGyu98 wants to merge 18 commits into
Open
KangShinGyu98 wants to merge 18 commits into
KangShinGyu98 wants to merge 18 commits into
Conversation
- 전역 재시도를 일시적 네트워크 오류 1회로 제한 (429·4xx·5xx는 재시도하지 않음) - 장소 API 실패를 status가 담긴 HttpError로 던짐 - 사진 retry 2·미리보기 retry 1 개별 설정 제거 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- 같은 커밋에 보이는 사진 2장 이상은 batch, 1장은 단건 API로 보냄 - batch 항목 실패는 실패한 장만 한 번 더 보내고 그래도 실패하면 끝냄 - 요청 자체가 실패하면 단건으로 나눠 보내지 않음 - 쓰이지 않던 사진 batch 시딩 코드 제거 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- 같은 커밋에 마운트된 미리보기는 batch로 모으고 실패한 곳만 한 번 더 조회 - 지도 핀이 batch를 먼저 보낸 뒤 실패하면 전부 단건으로 다시 받던 단계 제거 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- NO_ROUTE·LAST_ITEM·SCHEDULE_ITEM_NOT_FOUND 구간은 경로 없음(null)으로 시딩 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- 모든 일차 장소를 batch 한 번으로 받고 실패한 곳만 batch로 한 번 더 조회, 단건 조회 제거 - 일차 블록은 일정 불러오기가 끝난 뒤 켜서 같은 장소를 다시 받지 않음 - 자리표시자가 남은 일차는 다시 들어올 때 그 장소만 batch로 다시 조회 - 미리보기 batch가 실패해도 일정 전체를 실패로 만들지 않고 자리표시자로 표시 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- 일차 쿼리를 일정 불러오기 중에도 켜고, 진행 중인 불러오기를 기다려 그 결과를 사용 - 같은 진입 안에서 장소 미리보기를 다시 받지 않음 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- 로더가 서버 한도(100곳)씩 나눠 차례로 보내고, 받은 묶음은 바로 씀 - 요청이 실패하면 그 묶음과 남은 묶음은 그 에러로 끝내고, 실패 항목도 다시 보내지 않음(요청 수는 이전과 같음) - 마지막 묶음이 1곳이면 단건 API로 보냄 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- 취소된 불러오기를 기다리던 일차 조회가 '조회 중'으로 멈춰 그 일차 경로를 받지 않던 문제 방지 - 진행 중인 일정 불러오기를 취소하고 다시 받는 변경(#247)과 함께 쓰일 때를 대비 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- 응답 id의 `places/` 접두를 떼고 요청 id 기준으로 결과를 돌려줌 - id가 빈 항목이 있어도 batch 전체를 실패로 처리하지 않음 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- 레거시 응답(status 없음)을 예전처럼 받아 일정·북마크 핀이 자리표시자로 남지 않게 함 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- 요청 id·API 오류 코드가 담긴 에러 메시지를 화면에 그대로 보여 주지 않음 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- 사진 오류 처리에 다시 받기까지 실패했을 때 알리는 `onPhotoUnavailable` 추가 - 못 불러온 사진 주소는 그리지 않는 `useVisiblePlacePhotoUrl` 추가(주소가 바뀌면 다시 그림) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- 북마크·채팅 장소 카드는 지도 핀 아이콘, 장소 상세는 회색 칸으로 둠 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- 훅이 아닌 함수에서 훅을 부르던 테스트의 lint 오류(react-hooks/rules-of-hooks) 수정 - 조회 키·queryFn·캐시 설정은 그대로 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- lint 오류(react-hooks/globals) 수정 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
- 순서 변경 등으로 다시 받던 "경로 없음" 구간이 429를 받으면 "경로 조회 오류"로 바뀌던 문제 수정 - 받은 답 없이 실패하면 지금처럼 오류 표시 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- 목록 요청이 429 등으로 실패한 구간을 지도가 fetchQuery로 한 번 더 보내던 문제 수정 - 진행 중인 요청에 합류하고, 받은 적 없는 구간은 지금처럼 받음 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- 일차 목록이 있으면 room-schedules의 장소 목록으로 다시 만들지 않고 자리표시자 장소의 미리보기만 다시 받아 채움 - room-schedules의 장소 목록은 장소 추가·삭제·수정을 따라가지 않아, 다시 만들면 지운 장소가 되살아났음 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
This branch was successfully 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.



노션
변경 내용
TypeError)만 1회"로 바꿔 429·4xx·5xx(502 포함)는 다시 보내지 않음. 장소 API는 status가 담긴HttpError를 던짐NO_ROUTE등)은 다시 묻지 않음src/lib/rooms.ts·src/lib/plan/schedule-bulk-hydration.ts가 충돌함. 나중에 병합되는 쪽에서 dev를 merge해 해결(일차별 목록은 캐시만 읽도록 맞춰야 함)변경 이유
테스트
npm run lintnpm testnpm run build*://*places/photos**차단 시 재시도 1회, 차로 갈 수 없는 장소 추가 등)🤖 Generated with Claude Code