Skip to content

Drop Compass tables, models and usage actor - #16101

Merged
emilwidlund merged 1 commit into
mainfrom
compass-cleanup-drop-tables
Oct 30, 2026
Merged

emilwidlund merged 1 commit into
mainfrom
compass-cleanup-drop-tables

Conversation

@emilwidlund

@emilwidlund emilwidlund commented Oct 29, 2026 •

Copy link
Copy Markdown
Member

Follow-up to #16099. Merge only after #16099 is deployed, so pods running the old code never hit missing tables and queued usage jobs have drained.

Stacked on compass-cleanup. GitHub retargets this to main when #16099 merges.

Changes

  • Migration b679b748f61d (revises 8675636fe905):
    • Drops compass_thread_messages and compass_threads.
    • Removes the compass_enabled key from organizations.feature_settings.
    • Downgrade recreates the empty tables but doesn't restore the flag, since there's no record of which orgs had it.
  • Models: deletes CompassThread and CompassThreadMessage.
  • Worker: deletes the polar_self.track_compass_assistant_usage actor and PolarSelfClient.track_compass_assistant_usage. Remove Compass from the dashboard and API #16099 already stopped enqueuing it.

Testing

  • Ran the migration up, down and up again against the local DB. After upgrade, both tables were gone and 0 orgs had the flag (1 had it before).
  • alembic check: no new operations.
  • task check_migrations: OK, single head.
  • task lint, task lint_types, tests/integrations/polar and the seed tests (209 passed).

After merging, refresh the test template DB with POLAR_ENV=testing uv run task db_migrate.

🤖 Generated with Claude Code

View guided diff Turn on auto-fix

@vercel

vercel Bot commented Oct 29, 2026 •

Copy link
Copy Markdown

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

Project Deployment Actions Updated
orbit Ready Ready Preview Oct 30, 2026 3:21pm UTC
polar-test Ready Ready Preview Oct 30, 2026 3:21pm UTC

Request Review

@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 6 files

Confidence score: 5/5

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

Requires human review: Removes Compass thread tables, models, and the Compass usage-tracking actor, including a migration that drops tables and strips the compass_enabled feature flag. This is a destructive data migration requiring coordinated deployment.

View guided diff | Turn on auto-fix | Re-trigger cubic

@blacksmith-sh

blacksmith-sh Bot commented Oct 29, 2026 •

Copy link
Copy Markdown
Contributor

Found 2 test failures on Blacksmith runners:

Failures

Test View Logs
test_current_openapi_frozen[anonymous-2026-04] View Logs
test_current_openapi_frozen[anonymous-2026-10] View Logs

Fix with [code]smith
Need help on this PR? Tag @codesmith-bot with what you need.

@mintlify

mintlify Bot commented Oct 30, 2026 •

Copy link
Copy Markdown

Preview deployment for your docs. Learn more about Mintlify Previews.

Project Status Preview Updated
Polar 🟢 Ready View Preview Oct 30, 2026, 3:20 PM

💡 Tip: Enable Automations to automatically generate PRs for you.

@mintlify

mintlify Bot commented Oct 30, 2026 •

Copy link
Copy Markdown

Preview deployment for your docs. Learn more about Mintlify Previews.

Project Status Preview Updated
Handbook 🟢 Ready View Preview Oct 30, 2026, 3:20 PM

💡 Tip: Enable Automations to automatically generate PRs for you.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@emilwidlund
emilwidlund added this pull request to the merge queue Oct 30, 2026
Merged via the queue into main with commit 2038673 Oct 30, 2026
34 checks passed
@emilwidlund
emilwidlund deleted the compass-cleanup-drop-tables branch October 30, 2026 15:35

This branch was successfully deployed

4 active deployments
Preview – polar-test — 79e448e6 Deployed Oct 30, 2026 by vercel[bot]
Preview – orbit — 79e448e6 Deployed Oct 30, 2026 by vercel[bot]
staging - docs — 79e448e6 Deployed Oct 30, 2026 by mintlify[bot]
staging - handbook — 79e448e6 Deployed Oct 30, 2026 by mintlify[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.

2 participants