feat(relay): apply policy overrides for my-portal case and representation endpoints
This commit is contained in:
@@ -1369,3 +1369,41 @@ Validation:
|
||||
Follow-ups:
|
||||
|
||||
- Optional next slice: extract shared relay policy presets into constants to reduce duplication and enforce profile consistency across remaining relayGet endpoints.
|
||||
|
||||
---
|
||||
|
||||
### CL-037: TASK22242 portal/my-cases relayPolicy parity (my portal + representations)
|
||||
|
||||
date: 2026-03-24
|
||||
author: Cline
|
||||
scope: `pages/api/endpoint/{getmycases_api,getmyrepresentations_api,getwatchedcases_api,getawaitingsubmission_api,getrepresentations_api}.js`, `tests/phase21/endpoint-handler-contract.test.cjs`
|
||||
type: change
|
||||
rationale: Continue the branch-by-branch relay policy rollout by applying explicit policy posture to core my-portal retrieval endpoints.
|
||||
impact: Improves consistency and operational predictability of relay behavior for portal case/representation listing flows without changing endpoint contracts.
|
||||
status: completed
|
||||
|
||||
Summary:
|
||||
|
||||
- Added explicit `relayPolicy` declarations to:
|
||||
- `getmycases_api`
|
||||
- `getmyrepresentations_api`
|
||||
- `getwatchedcases_api`
|
||||
- `getawaitingsubmission_api`
|
||||
- `getrepresentations_api`
|
||||
- Applied bounded read profile across the batch:
|
||||
- `method: "GET"`
|
||||
- `timeoutMs: 8000`
|
||||
- `maxRetries: 2`
|
||||
- `retryBaseDelayMs: 150`
|
||||
- `retryMaxDelayMs: 800`
|
||||
- Extended phase21 endpoint contract tests with relayPolicy pass-through assertions for each endpoint.
|
||||
|
||||
Validation:
|
||||
|
||||
- `node tests/phase21/endpoint-handler-contract.test.cjs` -> pass (164/164)
|
||||
- `node tests/phase21/relay-forwarding-hardening.test.cjs` -> pass (10/10)
|
||||
- `npm run lint` -> warnings only (pre-existing `react-hooks/exhaustive-deps`; no new lint errors)
|
||||
|
||||
Follow-ups:
|
||||
|
||||
- Optional next slice: extract shared relay policy presets into a constants module and reference them from all relayGet endpoints to reduce duplication.
|
||||
|
||||
Reference in New Issue
Block a user