Skip to content

feat: Add migration gate middleware and demo data seeding#30

Merged
rsalus merged 1 commit intomainfrom
02-21-feat_add_migration_gate_middleware_and_demo_data_seeding
Feb 22, 2026
Merged

feat: Add migration gate middleware and demo data seeding#30
rsalus merged 1 commit intomainfrom
02-21-feat_add_migration_gate_middleware_and_demo_data_seeding

Conversation

@rsalus
Copy link
Copy Markdown
Contributor

@rsalus rsalus commented Feb 22, 2026

Fix startup race condition where dashboard queries hit prior_auth_requests
before migration completes (503 errors). Add MigrationGateMiddleware that
returns 503 with Retry-After until all migrations complete, allowing health
checks through. Add IDataSeeder interface and PARequestDataSeeder
that seeds 4 demo PA requests in development. Port patterns from aegis-api.

Co-Authored-By: Claude Opus 4.6 noreply@anthropic.com

Fix startup race condition where dashboard queries hit prior_auth_requests
before migration completes (503 errors). Add MigrationGateMiddleware that
returns 503 with Retry-After until all migrations complete, allowing health
checks through. Add IDataSeeder<TContext> interface and PARequestDataSeeder
that seeds 4 demo PA requests in development. Port patterns from aegis-api.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@coderabbitai
Copy link
Copy Markdown

coderabbitai bot commented Feb 22, 2026

Warning

Rate limit exceeded

@rsalus has exceeded the limit for the number of commits that can be reviewed per hour. Please wait 3 minutes and 15 seconds before requesting another review.

⌛ How to resolve this issue?

After the wait time has elapsed, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout.

Please see our FAQ for further information.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch 02-21-feat_add_migration_gate_middleware_and_demo_data_seeding

Comment @coderabbitai help to get the list of available commands and usage tips.

Copy link
Copy Markdown
Contributor Author

rsalus commented Feb 22, 2026

This stack of pull requests is managed by Graphite. Learn more about stacking.

@rsalus rsalus merged commit c061cf4 into main Feb 22, 2026
15 checks passed
Copy link
Copy Markdown
Contributor Author

rsalus commented Feb 22, 2026

Merge activity

@github-project-automation github-project-automation bot moved this from Todo to Done in Authscript Demo Feb 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

1 participant