Skip to content

chore(db): drop whitelabel_settings and rate_limit_bucket, remove the abort rewrite - #10303

Merged
waleedlatif1 merged 3 commits into
stagingfrom
chore/contract-whitelabel-ratelimit
Nov 23, 2026
Merged

waleedlatif1 merged 3 commits into
stagingfrom
chore/contract-whitelabel-ratelimit

Conversation

@waleedlatif1

@waleedlatif1 waleedlatif1 commented Nov 22, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

The post-v0.9.65 contract, now that v0.9.65 and the v0.9.66 hotfix are live in prod and no deployed release uses these:

  • Migration 0470 drops organization.whitelabel_settings and rate_limit_bucket. The column was un-declared in 0468 (chore(cleanup): remove dead chart options, the playground and legacy chat routes; contract retired DB objects #10269). The table belonged to the Postgres token bucket and provider-capacity store, both removed when Redis became required (chore(redis): require Redis and remove the no-Redis fallbacks #10272).
    • It follows the 0409/0468 pattern: COMMIT, lock_timeout = '100ms', IF EXISTS, then back to 5s.
    • DROP COLUMN only changes the catalog, so organization is locked for milliseconds.
    • rate_limit_bucket has no foreign keys in either direction, so there's no CASCADE.
    • Removes the rateLimitBucket declaration and both contract-pending markers, and regenerates the schema mock.
  • Removes the /api/copilot/chat/abort → /api/mothership/chat/abort rewrite. It only served browser tabs still on v0.9.64 code. Sim, the desktop app, the CLI and mothership have no remaining callers.
  • Fixes a provider-admission comment that still described a Postgres bucket.

The migration-replay fixtures keep their CREATE TABLE rate_limit_bucket stubs, because replaying 0326 alters that table.

Type of Change

  • Chore (database contract + cleanup)

Testing

  • A second drizzle-kit generate is a no-op.
  • check:migrations passes, and fails if either -- migration-safe line is removed.
  • check:pending-drop-tables, check:schema-mock and check:comment-hygiene pass. apps/sim type-check is clean.
  • /simplify: reviewed for reuse, efficiency and altitude (clean). Simplification found the stale comment and a redundant header, both fixed.

Checklist

  • Code follows project style guidelines
  • Self-reviewed my changes
  • No new warnings introduced
  • I confirm that I have read and agree to the terms outlined in the Contributor License Agreement (CLA)

@vercel

vercel Bot commented Nov 22, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

1 Skipped Deployment
Project Deployment Actions Updated
docs Skipped Skipped Nov 23, 2026 10:38am UTC

Request Review

@waleedlatif1
waleedlatif1 force-pushed the chore/contract-whitelabel-ratelimit branch from c3bfd9a to 94e5274 Compare November 23, 2026 10:38
@waleedlatif1 waleedlatif1 changed the title chore(db): drop organization.whitelabel_settings and rate_limit_bucket chore(db): drop whitelabel_settings and rate_limit_bucket, remove the abort rewrite Nov 23, 2026
@waleedlatif1
waleedlatif1 marked this pull request as ready for review November 23, 2026 10:38

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No issues found across 7 files

Confidence score: 5/5

  • Automated review surfaced no issues in the provided summaries.
  • No files require special attention.

Turn on auto-fix | Re-trigger cubic

@greptile-apps

greptile-apps Bot commented Nov 23, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerView in GreptileConfidence Score: 5/5

[Medium impact] The PR appears safe to merge under the release order stated in its description.

Summary

Removes retired database objects and an old chat-abort rewrite.

  • The database drops the old whitelabel settings and Postgres rate-limit store.
  • Older browser tabs no longer get the chat-abort redirect.
  • Provider-admission notes now name Redis as the bucket store.

No actionable issues found. Tests were not run.

Reviews (2) · Last reviewed commit: "chore: describe the Redis-only provider ..." · Reviewed by Greptile

@waleedlatif1

Copy link
Copy Markdown
Collaborator Author

@greptile

@waleedlatif1

Copy link
Copy Markdown
Collaborator Author

@cubic-dev-ai review this PR

@cubic-dev-ai

cubic-dev-ai Bot commented Nov 23, 2026

Copy link
Copy Markdown
Contributor

@cubic-dev-ai review this PR

@waleedlatif1 I have started the AI code review. It will take a few minutes to complete.

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No issues found across 7 files

Confidence score: 5/5

  • Automated review surfaced no issues in the provided summaries.
  • No files require special attention.

Turn on auto-fix | Re-trigger cubic

@waleedlatif1
waleedlatif1 merged commit ae97162 into staging Nov 23, 2026
85 of 86 checks passed

This branch was previously deployed

1 inactive deployment
Preview — 94e5274f Deployed Nov 23, 2026 by vercel[bot]
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