Skip to content

Fixed — getCFConcept, getCFItemType, and getCFSubject now return the spec-mandated *Set envelope with hierarchy children, instead of a raw unwrapped single object - #11

Merged
alail-ims merged 1 commit into
mainfrom
feature/POR-687
Aug 18, 2026

Conversation

@alail-ims

Copy link
Copy Markdown
Contributor

Fixed — getCFConcept, getCFItemType, and getCFSubject now return the spec-mandated *Set envelope with hierarchy children, instead of a raw unwrapped single object

  • apps/opencase/src/application/case/endpoints/GetCFConcept.ts → returns { CFConcepts: [concept, ...descendants] }, descendants found by hierarchyCode prefix matching (e.g. parent 1.01 matches children 1.01.01, 1.01.02, etc.), sorted.
  • GetCFItemType.ts → same pattern, returns { CFItemTypes: [...] }.
  • GetCFSubject.ts → same pattern, returns { CFSubjects: [...] }.
…spec-mandated *Set envelope with hierarchy children, instead of a raw unwrapped single object:

- apps/opencase/src/application/case/endpoints/GetCFConcept.ts → returns { CFConcepts: [concept, ...descendants] }, descendants found by hierarchyCode prefix matching (e.g. parent 1.01 matches children 1.01.01, 1.01.02, etc.), sorted.
- GetCFItemType.ts → same pattern, returns { CFItemTypes: [...] }.
- GetCFSubject.ts → same pattern, returns { CFSubjects: [...] }.
@alail-ims
alail-ims requested a review from tcouper August 18, 2026 15:47
@alail-ims
alail-ims merged commit 06e4e61 into main Aug 18, 2026
3 checks passed
@alail-ims
alail-ims deleted the feature/POR-687 branch August 18, 2026 15:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

1 participant