TASK22269: reuse azurestorage path builders in touched blob object fields
This commit is contained in:
@@ -3100,3 +3100,35 @@ Validation:
|
||||
Follow-ups:
|
||||
|
||||
- Optional next bounded slice: align remaining low-risk direct `console.log` calls in these functions to `consoleLogger` only where already touched and safe.
|
||||
|
||||
---
|
||||
|
||||
### CL-087: TASK22269 Slice B1.12 — azurestorage touched-function path assembly helper reuse
|
||||
|
||||
date: 2026-03-26
|
||||
author: Cline
|
||||
scope: `actions/azurestorage.js`
|
||||
type: change
|
||||
rationale: Execute the next bounded maintainability slice by reusing existing local query-path helpers for touched `filepath`/`deletepath` assembly, reducing repeated literal concatenation.
|
||||
impact: Readability/consistency improvement only; preserves query parameter values and route behavior.
|
||||
status: completed
|
||||
|
||||
Summary:
|
||||
|
||||
- In touched functions:
|
||||
- `getBlobs`
|
||||
- `getRepsFilesBlobs`
|
||||
- Replaced inline `filepath` string concatenation with `buildDownloadBlobQueryPath(...)`.
|
||||
- Replaced inline `deletepath` string concatenation with `buildDeleteBlobQueryPath(...)`.
|
||||
- Preserved previous encoding behavior where required by passing explicit options:
|
||||
- kept non-encoded `casefolderID`/`blobname` behavior in `getRepsFilesBlobs.deletepath` via helper options.
|
||||
|
||||
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: targeted helper-consumer tidy in the same functions for any remaining repeated query-path literals outside touched object fields.
|
||||
|
||||
Reference in New Issue
Block a user