TASK22229: P2-S2 batch 3 migrate case/event relay GET endpoints
This commit is contained in:
@@ -836,3 +836,37 @@ Validation:
|
||||
Follow-ups:
|
||||
|
||||
- Continue P2-S2 with Batch 3 as the next dedicated commit on this branch.
|
||||
|
||||
---
|
||||
|
||||
### CL-022: TASK22229 P2-S2 Batch 3 (case/event relay GET cluster)
|
||||
|
||||
date: 2026-03-24
|
||||
author: Cline
|
||||
scope: `pages/api/endpoint/{getcase_api,getcasebyid_api,getincidentbyid_api,getsipsevents_api}.js`, `tests/phase21/endpoint-handler-contract.test.cjs`
|
||||
type: change
|
||||
rationale: Deliver third P2-S2 commit by migrating an additional bounded case/event endpoint cluster onto shared `relayGet` while preserving route contracts.
|
||||
impact: Further relay boilerplate reduction and consistent forwarding behavior with no intended contract changes.
|
||||
status: completed
|
||||
|
||||
Summary:
|
||||
|
||||
- Migrated Batch 3 endpoints to `relayGet`:
|
||||
- `getcase_api.js` (preserved `@odata.nextLink` normalization)
|
||||
- `getcasebyid_api.js` (preserved `@odata.nextLink` normalization and array-wrapped success payload)
|
||||
- `getincidentbyid_api.js`
|
||||
- `getsipsevents_api.js`
|
||||
- Updated phase21 endpoint contract tests to mock `relayGet` for migrated handlers in guard/catch paths.
|
||||
|
||||
Validation:
|
||||
|
||||
- `node tests/phase21/api-contract-slice1.test.cjs` -> pass
|
||||
- helper: 4/4
|
||||
- file-handler: 53/53
|
||||
- email-handler: 12/12
|
||||
- endpoint-handler: 152/152
|
||||
- documents-handler: 3/3
|
||||
|
||||
Follow-ups:
|
||||
|
||||
- Continue P2-S2 with next bounded batch (e.g. search/listing cluster) as a separate commit if required.
|
||||
|
||||
Reference in New Issue
Block a user