TASK22269: extract touched azurestorage case object path helper

This commit is contained in:
2026-03-26 11:20:37 +00:00
parent 5c62f3088e
commit 48878e9ebd
2 changed files with 36 additions and 2 deletions
+30
View File
@@ -3132,3 +3132,33 @@ Validation:
Follow-ups:
- Optional next bounded slice: targeted helper-consumer tidy in the same functions for any remaining repeated query-path literals outside touched object fields.
---
### CL-088: TASK22269 Slice B1.13 — azurestorage touched-function caseObj helper reuse
date: 2026-03-26
author: Cline
scope: `actions/azurestorage.js`
type: change
rationale: Execute the next bounded readability slice by centralizing repeated case-object path composition in touched helper-consumer functions.
impact: Maintainability/readability improvement only; no route/query behavior changes.
status: completed
Summary:
- Added local helper `buildCaseObjectPath(casefolderID)`.
- Replaced repeated `caseObj` string assembly in touched functions:
- `getBlobs`
- `getProgressBlobs`
- Preserved existing `caseObj` output format (`<caseRef>/<caseRef>_case.json`).
Validation:
- `npm run lint` -> pass with warnings only (pre-existing `react-hooks/exhaustive-deps`; no new lint errors)
- `node tests/phase22/index.test.cjs` -> pass
- `node tests/phase7/service-behaviour.test.cjs` -> pass (13/13)
Follow-ups:
- Optional next bounded slice: continue tiny helper reuse in touched functions only if any duplicated path literals remain and can be reduced without behavior change.