[업무함] Case 표시 상태 계산 규칙 추가 - #86
Merged
Merged
Conversation
링크 발급, HR 검토 대기, 완료 여부로 화면 표시 상태를 계산합니다. 읽지 않은 근로자 응답 여부는 업무 상태와 분리하고 우선순위 규칙을 단위 테스트로 검증합니다.
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.
Refs #83
왜 필요한가요?
업무함에서 “서류 대기·요청 전송·승인 대기·완료”를 일관되게 표시하려면 Task 상태를 새로 만들거나 Worker Link 상태를 덮어쓰지 않고, 조회 시점의 사실을 조합하는 계산 규칙이 필요합니다.
무엇이 바뀌나요?
DOCUMENT_PENDINGREQUEST_SENTREVIEW_REQUIREDCOMPLETEDhasUnreadResponse로 표시 상태와 분리했습니다.사용자·개발 영향
화면은 앞으로 Case 조회 결과의 표시 상태와 새 응답 표시를 별도로 사용할 수 있습니다. 기존 Task·Approval·Worker Link 상태와 DB schema에는 영향이 없습니다.
이번 PR에서 하지 않는 것
GET /api/v1/cases및 Projection API읽음·검토 데이터의 실제 조회 연결은 #76 병합 후 #83 후속 PR에서 진행합니다.
검증
./gradlew test --tests 'com.fowoco.server.casework.application.CaseDisplayStatusResolverTest'./gradlew clean testBUILD SUCCESSFUL