Skip to content

Development#16

Merged
CatFortman merged 8 commits into
mainfrom
development
Jul 18, 2026
Merged

Development#16
CatFortman merged 8 commits into
mainfrom
development

Conversation

@CatFortman

Copy link
Copy Markdown
Owner

Merge dev into main

CatFortman and others added 8 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>
Add details on first run, user setup, configuration and dashboard features.
@CatFortman
CatFortman merged commit 704e7c3 into main Jul 18, 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