Skip to content

Feature/migrationops dashboard#15

Merged
CatFortman merged 5 commits into
developmentfrom
feature/migrationops-dashboard
Jul 18, 2026
Merged

Feature/migrationops dashboard#15
CatFortman merged 5 commits into
developmentfrom
feature/migrationops-dashboard

Conversation

@CatFortman

Copy link
Copy Markdown
Owner

Fully tested end to end MigrationOps dashboard.

Shipped features:

  • Failure logging (MigrationOps.Core): __MigrationHistory now has Success/ErrorMessage/DurationMs columns, added via a safe in-place ALTER TABLE for databases that already have the old table — verified this
    upgrade path against a simulated pre-existing table. A failed migration no longer just prints to console and vanishes; it's recorded, and doesn't block retry on the next run (verified: broke a migration, saw
    it logged as a failure, fixed it, saw it retry and succeed).
  • Failure alerts: a generic webhook fires on failure (AlertSettings in dbconfig.json), verified against a real local listener — correct JSON payload, and a dead webhook URL doesn't crash the migration run.
  • Dashboard (MigrationOps.Dashboard, new project): Overview (stat tiles), per-database detail (history + pending + checksum-drift detection), and a filterable History page. Cookie auth with first-run-only
    self-registration (not open signup), separate dashboard-only user store, BCrypt-hashed passwords — all screenshotted and working in both dark (default) and light themes.
  • Found and fixed one real gap along the way: the dashboard would have crashed on any migration file that hasn't been through the checksum pre-commit hook yet (a normal in-progress state); it now shows those
    as a distinct "Draft (no checksum)" badge instead.
    Original commit: c38b25a

CatFortman and others added 5 commits July 16, 2026 11:12
Fully tested end to end MigrationOps dashboard.

Shipped features:
 - Failure logging (MigrationOps.Core): __MigrationHistory now has Success/ErrorMessage/DurationMs columns, added via a safe in-place ALTER TABLE for databases that already have the old table — verified this
  upgrade path against a simulated pre-existing table. A failed migration no longer just prints to console and vanishes; it's recorded, and doesn't block retry on the next run (verified: broke a migration, saw
  it logged as a failure, fixed it, saw it retry and succeed).
  - Failure alerts: a generic webhook fires on failure (AlertSettings in dbconfig.json), verified against a real local listener — correct JSON payload, and a dead webhook URL doesn't crash the migration run.
  - Dashboard (MigrationOps.Dashboard, new project): Overview (stat tiles), per-database detail (history + pending + checksum-drift detection), and a filterable History page. Cookie auth with first-run-only
  self-registration (not open signup), separate dashboard-only user store, BCrypt-hashed passwords — all screenshotted and working in both dark (default) and light themes.
  - Found and fixed one real gap along the way: the dashboard would have crashed on any migration file that hasn't been through the checksum pre-commit hook yet (a normal in-progress state); it now shows those
  as a distinct "Draft (no checksum)" badge instead.
Fully tested end to end MigrationOps dashboard.

Shipped features:
 - Failure logging (MigrationOps.Core): __MigrationHistory now has Success/ErrorMessage/DurationMs columns, added via a safe in-place ALTER TABLE for databases that already have the old table — verified this
  upgrade path against a simulated pre-existing table. A failed migration no longer just prints to console and vanishes; it's recorded, and doesn't block retry on the next run (verified: broke a migration, saw
  it logged as a failure, fixed it, saw it retry and succeed).
  - Failure alerts: a generic webhook fires on failure (AlertSettings in dbconfig.json), verified against a real local listener — correct JSON payload, and a dead webhook URL doesn't crash the migration run.
  - Dashboard (MigrationOps.Dashboard, new project): Overview (stat tiles), per-database detail (history + pending + checksum-drift detection), and a filterable History page. Cookie auth with first-run-only
  self-registration (not open signup), separate dashboard-only user store, BCrypt-hashed passwords — all screenshotted and working in both dark (default) and light themes.
  - Found and fixed one real gap along the way: the dashboard would have crashed on any migration file that hasn't been through the checksum pre-commit hook yet (a normal in-progress state); it now shows those
  as a distinct "Draft (no checksum)" badge instead.
…vice

The remote dashboard branch and the local dashboard commits had both
diverged and neither side's MigrationService.cs compiled. Resolved by
combining the modern apply pipeline (transactional apply + history
insert, object-script deferral, config layering) with the dashboard
additions: alert notifier, config-path constructor, GetDatabaseNames,
GetMigrationHistory, GetMigrationFileStatuses, and the extended
__MigrationHistory schema (Success/ErrorMessage/DurationMs). Failed
migrations now record a Success = 0 history row and fire the webhook
without masking the original error. Removed the broken RecordMigration
and HasMigrationBeenApplied fragments and duplicated method copies.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@CatFortman
CatFortman merged commit fd2c905 into development Jul 18, 2026
@CatFortman
CatFortman deleted the feature/migrationops-dashboard branch July 18, 2026 13:09
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