feat: 업무함을 Case API 기반으로 전환 - #269
Merged
Merged
Conversation
/workers + /tasks + /workflow-catalogs 조합해서 클라이언트에서 직접 만들던 업무함 데이터를 서버의 GET /api/v1/cases, /cases/{id}/projection으로 대체. progress·display_status 계산도 서버가 내려주는 값 그대로 사용.
Worker API 실패는 이제 non-blocking으로 처리(Case가 worker_id/worker_display_name을 이미 들고 있어서 조인 실패 케이스가 없어짐).
Closes #268
3 tasks
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.
요약
/workers+/tasks+/workflow-catalogs조합해서 클라이언트에서 직접 조합하던 방식에서, 서버가 새로 제공하는GET /api/v1/cases/GET /api/v1/cases/{caseId}/projection으로 교체worker_id/worker_display_name을 들고 있어서 조인 실패(orphan task) 케이스 자체가 없어짐/cases,/cases/{id}/projection응답을 직접 확인하고 타입(src/api/cases.ts) 검증 완료알려진 단순화
fetchCaseProjection은 작성했지만 아직 미사용. 지금은 목록 응답(CaseSummaryResponse)만으로 상세 패널을 구성하고, readiness/전체 tasks 같은 projection 전용 데이터는 다루지 않음. 필요해지면 별도로 확장검증
npx tsc -b✅npm run lint✅npx vitest run— 350/350 통과 ✅npm run build✅/cases,/cases/{id}/projection응답과 TS 타입 대조 확인 ✅Closes #268