Repository navigation
fix(db): quarantine unsafe importer tooling - #287
Merged
Merged
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
📝 WalkthroughWalkthroughThe PR removes Plane database import tooling and its workspace organization helper, updates team-key mapping behavior and tests, and requires an explicit trimmed ChangesPlane importer retirement
Estimated code review effort: 2 (Simple) | ~15 minutes Possibly related PRs
Suggested labels: Suggested reviewers: 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
…orter-quarantine # Conflicts: # packages/db/src/noveum-workspace.ts # packages/db/tests/noveum-workspace.test.ts
This was referenced Aug 10, 2026
imshashank
added a commit
that referenced
this pull request
Sep 21, 2026
…hem (#480) * chore(db): drop the module tables and the Plane mapping that filled them module, module_member, module_issue and module_link were filled by the Plane importer and displayed by nothing: no route, no API handler, no MCP tool. #196 decided Orbit does not want a second mid-sized grouping next to projects, milestones and sprints, and #287 removed the importer entrypoints. - schema/work.ts drops the four tables; migration 0029_material_psynapse drops them on databases that run the ledger, and packages/db/catchup/drop-module-tables-catchup.sql does the same on databases whose schema was materialized without one. - plane-source.ts, build-project.ts and scripts/fetch-plane.ts stop reading, mapping and fetching modules and module issues. - The schema tests stop reserving the four tables and docs/self-hosting.md notes the drop for anyone who imported from Plane before #287. Validation: db typecheck clean; plane-source tests 11 pass; the schema suite passes apart from two database-backed tests that only run with Postgres (present in CI). biome, check-comments, check-bytes, check-bun-imports and check-deps clean. The root scripts typecheck reports only the dual drizzle-orm-copy errors this checkout already had (identical count before and after the change, none in the touched files). Closes #417 Signed-off-by: ayam04 <[email protected]> * fix(db): run pending drop migrations instead of baselining them away A database migrated through 0028 records 0029 as applied without executing its DROP TABLE statements: removing the module tables from the declared schema makes the catalog look compatible, so the release runner takes the baseline path and skips the drops. The pending path now runs the migrations whenever a pending migration drops a table that still exists in the live catalog, next to the existing drift predicate. Adds an upgrade test starting at 0028 that asserts both the ledger and the actual table removal. Signed-off-by: ayam04 <[email protected]> * fix(db): order the module table drops so dependencies fail loudly Dropping module first leaned on CASCADE, which would silently remove any view or foreign key a self-hosted database attached to the retired tables. Drop the child tables first and module last without CASCADE, matching the catchup script, so an external dependency fails the migration instead of disappearing with it. Signed-off-by: ayam04 <[email protected]> --------- Signed-off-by: ayam04 <[email protected]> Co-authored-by: shashank agarwal <[email protected]>
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Stack
This PR is intentionally based on #281 so the neutral demo seed lands before the obsolete Noveum workspace helper is deleted.
Verification
Greptile Summary
The PR removes destructive, tenant-specific database importer entrypoints while retaining generic Plane/Linear readers and explicitly configured internal export tooling.
Confidence Score: 5/5
The PR appears safe to merge.
No blocking failure remains.
Important Files Changed
Flowchart
%%{init: {'theme': 'neutral'}}%% flowchart LR A[Supported command surface] --> B[Generic database tooling] C[Plane and Linear exports] --> D[Validated readers and mapping helpers] E[Internal Plane fetcher] -->|Explicit API key and workspace| C D -. No supported write command .-> F[(Orbit database)]Reviews (3): Last reviewed commit: "Merge remote-tracking branch 'origin/mai..." | Re-trigger Greptile