feat: 전체 업무 유형과 사업장 공통 대상 확장 - #103
Draft
hywznn wants to merge 4 commits into
Draft
Conversation
전체 Intent 업무 유형과 FILE_IMPORT·WORKER_RESPONSE 출처를 추가합니다. 근로자 업무와 사업장 공통 업무를 구분하고 DB 제약조건으로 잘못된 대상 조합을 차단합니다.
근로자 없이 생성하는 사업장 공통 업무를 지원하고 대상·출처 필터를 제공합니다. 기존 근로자 업무는 target_type 생략 시 그대로 WORKER로 처리하며 Worker Link와 문서 조회의 null 안전성도 보강합니다.
전체 canonical 업무 유형 생성, 사업장 공통 업무, 잘못된 대상 조합, 조회 필터와 OpenAPI 계약을 검증합니다. PostgreSQL에서는 nullable FK와 대상 CHECK 제약도 확인합니다.
krestar
previously approved these changes
Aug 6, 2026
krestar
left a comment
Contributor
There was a problem hiding this comment.
전체 Task 유형 확장과 WORKER/COMPANY 대상 규칙이 API, 도메인, 영속성, DB 제약까지 일관되게 반영된 점 확인했습니다.
기존 WORKER 흐름의 호환성을 유지하면서 COMPANY Task의 Case 생성 및 Worker Link,문서 오연결도 잘 방어되어 있습니다.
CI, 통합 테스트도 통과해 승인합니다.
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.
왜 필요한가요?
기존 세 가지 연장 Task만 저장할 수 있던 구조를 전체 Intent 업무 유형으로 확장하고, 아직 근로자가 정해지지 않은 사업장 공통 업무도 안전하게 저장합니다.
Refs #85
무엇이 바뀌나요?
DOCUMENT_REQUEST,WORKER_ONBOARDING,PAYROLL_EXPLANATION,EMPLOYMENT_CHANGE,WORK_INSTRUCTIONTask 유형을 추가했습니다.target_type = WORKER | COMPANY모델을 추가했습니다.worker_id와case_id가 필요합니다.worker_id와case_id없이 독립 Task로 저장하며 Workflow Case를 만들지 않습니다.target_type을 생략하면worker_id유무로 호환 처리합니다.target_type과source필터를 추가했습니다.FILE_IMPORT,WORKER_RESPONSE출처를 추가했습니다.기존 구조 보호
검증
./gradlew clean test성공이 PR은 Flyway V28을 사용합니다. 반드시 다음 순서로 병합해야 합니다.
앞선 두 PR보다 먼저 병합하지 않습니다.