Skip to content

Fix deferred disposition target-period CLI flag - #320

Merged
alexeygrigorev merged 1 commit into
mainfrom
fix/disposition-target-period
Nov 4, 2026
Merged

alexeygrigorev merged 1 commit into
mainfrom
fix/disposition-target-period

Conversation

@alexeygrigorev

Copy link
Copy Markdown
Member

dataops reconcile disposition ... --target-period YYYY-MM lost the target month because the flag parser produces targetPeriod while the handler read target-period. Deferred dispositions therefore failed the API's later-month validation even with a valid flag. Read the canonical parsed property and migrate the direct handler fixture.

A synthetic integration test launches the actual CLI binary against a loopback HTTP mock. It verifies both spaced and equals forms send the exact target month, digest, and version; missing target month still receives the API400 rejection, and missing required evidence fails before HTTP.

Validation: all30 targeted CLI cases pass, including a red-before/green-after reproduction of the original400; JavaScript syntax and diff checks pass. CLI-only change; no financial data operations.

@alexeygrigorev
alexeygrigorev merged commit ac29b61 into main Nov 4, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant