refactor(actions): remove remaining axios usage in case service
This commit is contained in:
@@ -1830,3 +1830,33 @@ Validation:
|
||||
Follow-ups:
|
||||
|
||||
- Optional next bounded slice: assess `patchCase` and `getAppealID` for migration opportunities (if/when preserving their specific behavior contracts remains straightforward).
|
||||
|
||||
---
|
||||
|
||||
### CL-051: TASK22260 next slice — case direct service final axios dependency removal
|
||||
|
||||
date: 2026-03-25
|
||||
author: Cline
|
||||
scope: `actions/services/caseDirectService.js`
|
||||
type: change
|
||||
rationale: Complete the bounded case service migration by replacing the remaining direct axios usage (`getAppealID`, `patchCase`) with shared endpoint client reads, enabling removal of the direct axios import.
|
||||
impact: Finalizes endpoint client consistency in case service and removes remaining direct axios dependency from this module without changing helper contracts.
|
||||
status: completed
|
||||
|
||||
Summary:
|
||||
|
||||
- Migrated remaining direct axios-based read helpers to `getJson(...)`:
|
||||
- `getAppealID`
|
||||
- `patchCase`
|
||||
- Preserved behavior contracts:
|
||||
- `getAppealID` still extracts first non-underscore key value from returned entity and logs on failure
|
||||
- `patchCase` still swallows failure (no explicit returned error contract introduced)
|
||||
- Removed now-unused `axios` import from `caseDirectService`.
|
||||
|
||||
Validation:
|
||||
|
||||
- `npm run lint` -> warnings only (pre-existing `react-hooks/exhaustive-deps`; no new lint errors)
|
||||
|
||||
Follow-ups:
|
||||
|
||||
- Optional next bounded slice: review other direct service modules for any remaining legacy `axios` import usage now that case service migration is complete.
|
||||
|
||||
Reference in New Issue
Block a user