migrate --progress json #51

Merged
jcoffey-dev merged 1 commits from feat/migrate-progress-json into main 2026-10-31 00:48:53 +00:00
Owner

Step 1 of the inbuxa Admin migrations page (spec approved 2026-10-30). The server will run migrate as a child and show its progress, so it needs events rather than text:

  • --progress json writes one JSON object per line on stdout, and nothing else there: start, setup, step (begun, or ended with result, counts and detail), account and end (with the report's path).
  • Messages still go to stderr. The text mode is unchanged.
  • Documented in usage.md and the CHANGELOG.

Tests: a new binary test (progress_json_is_one_event_per_line_and_nothing_else); full suite 1573 passed; fmt and clippy clean.

Step 1 of the inbuxa Admin migrations page (spec approved 2026-10-30). The server will run `migrate` as a child and show its progress, so it needs events rather than text: - `--progress json` writes one JSON object per line on stdout, and nothing else there: `start`, `setup`, `step` (begun, or ended with result, counts and detail), `account` and `end` (with the report's path). - Messages still go to stderr. The text mode is unchanged. - Documented in usage.md and the CHANGELOG. Tests: a new binary test (`progress_json_is_one_event_per_line_and_nothing_else`); full suite 1573 passed; fmt and clippy clean.
jcoffey-dev added 1 commit 2026-10-31 00:41:15 +00:00
migrate --progress json: one event per line, for a program running it
ci / test (pull_request) Skipped
github/ci (branch) GitHub Actions
ci / github (pull_request) Successful in 7m12s
ci / announce (pull_request) Skipped
4a14d0f6b6
The migrations page in inbuxa Admin runs migrate as a child of the server
and shows its progress. Text lines were made for people; these events are
for that: start, setup, step begun or ended (with result, counts and
detail), account ended, and end with the report's path. Nothing else goes
to stdout in that mode.
jcoffey-dev merged commit 1fea23a99e into main 2026-10-31 00:48:53 +00:00
jcoffey-dev deleted branch feat/migrate-progress-json 2026-10-31 00:48:53 +00:00
Sign in to join this conversation.