refactor(actions): adopt endpoint client in remaining document reads

This commit is contained in:
2026-03-25 06:55:30 +00:00
parent 13dbb8b2d0
commit f4471c5702
2 changed files with 63 additions and 47 deletions
+31
View File
@@ -1669,3 +1669,34 @@ Validation:
Follow-ups:
- Optional next bounded slice: evaluate remaining legacy direct `axios.get(...).then(res.data)` helpers in `documentDirectService` (`getAwaitingSubmissionFromBlob`, `getRepsFromBlob`, `getFilesFromBlob`) for safe migration while preserving signed hash path behavior.
---
### CL-046: TASK22260 next slice — document direct service remaining signed GET helper migration
date: 2026-03-25
author: Cline
scope: `actions/services/documentDirectService.js`
type: change
rationale: Complete the remaining low-risk read helper migration in document service by replacing final direct `axios.get(...).then(res.data)` patterns with shared `getJson` while retaining hash/signature query construction.
impact: Finishes consistency pass for JSON-returning document read helpers and reduces duplicated response extraction logic.
status: completed
Summary:
- Migrated the remaining signed document read helpers to `getJson(...)`:
- `getAwaitingSubmissionFromBlob`
- `getRepsFromBlob`
- `getFilesFromBlob`
- Preserved existing behavior:
- same BASE_URL and hash query composition via `hashAPIPath(...)`
- same catch-path logging behavior (`consoleLogger`)
- no changes to delete/download flows or hash-signing helper usage in mutation paths
Validation:
- `npm run lint` -> warnings only (pre-existing `react-hooks/exhaustive-deps`; no new lint errors)
Follow-ups:
- Optional next bounded slice: targeted hygiene in `documentDirectService` to isolate remaining non-migrated special-case flows (`downloadBlob`, delete helpers) and assess if any shared client abstraction is beneficial without altering behavior.