Skip to content

fix(db): quarantine unsafe importer tooling - #287

Merged
imshashank merged 8 commits into
mainfrom
codex/open-source-importer-quarantine
Aug 10, 2026
Merged

imshashank merged 8 commits into
mainfrom
codex/open-source-importer-quarantine

Conversation

@imshashank

@imshashank imshashank commented Aug 10, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • remove destructive, tenant-specific Plane import and verification entrypoints from the supported command surface
  • remove private Noveum workspace constants and importer-only environment defaults
  • retain generic Plane and Linear readers while neutralizing team-key mapping, fixtures, and the internal export fetcher
  • document that no supported database importer ships today and define the safety requirements for reintroducing one

Stack

This PR is intentionally based on #281 so the neutral demo seed lands before the obsolete Noveum workspace helper is deleted.

Verification

  • full bun run verify in an isolated test lane
  • database package suite: 162 passed
  • focused retained importer suite: 37 passed
  • explicit missing PLANE_WORKSPACE refusal
  • tenant/private literal and caller scans
  • git diff --check
  • independent review: no remaining findings

Greptile Summary

The PR removes destructive, tenant-specific database importer entrypoints while retaining generic Plane/Linear readers and explicitly configured internal export tooling.

  • Removes importer and verifier package commands and implementations.
  • Deletes private workspace constants, defaults, mappings, and fixtures.
  • Requires an explicit Plane workspace when running the internal fetcher.
  • Documents the safety requirements for any future supported importer.

Confidence Score: 5/5

The PR appears safe to merge.

No blocking failure remains.

Important Files Changed

Filename Overview
package.json Removes the root Plane import, verification, and fetch commands from the supported command surface.
packages/db/package.json Removes database-package importer and verifier entrypoints.
packages/db/src/import/index.ts Deletes the destructive Plane database import implementation.
packages/db/src/import/combined.ts Deletes the tenant-specific combined Linear/Plane reset importer.
packages/db/src/import/surgical.ts Deletes the remaining specialized database mutation entrypoint.
packages/db/src/import/plane-mapping.ts Removes private project-to-team mappings and keeps generic bounded key derivation.
scripts/fetch-plane.ts Removes the private workspace default and requires an explicit workspace for internal exports.
docs/roadmap.md Correctly describes the lack of a supported importer and the safety requirements for reintroducing one.

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)]
Loading

Reviews (3): Last reviewed commit: "Merge remote-tracking branch 'origin/mai..." | Re-trigger Greptile

@imshashank
imshashank requested a review from pulkitxm as a code owner August 10, 2026 16:19
@vercel

vercel Bot commented Aug 10, 2026 •

Copy link
Copy Markdown

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

Project Deployment Actions Updated (UTC)
orbit Ready Ready Preview Aug 10, 2026 5:40pm

Request Review

@github-actions github-actions Bot added documentation Docs, the README, or anything that explains Orbit tests Test coverage and test infrastructure area: database Schema, migrations, queries, seed ci Workflows, tooling and repo automation dependencies Dependency updates labels Aug 10, 2026
@coderabbitai

coderabbitai Bot commented Aug 10, 2026 •

Copy link
Copy Markdown

Review Change Stack

📝 Walkthrough

Walkthrough

The PR removes Plane database import tooling and its workspace organization helper, updates team-key mapping behavior and tests, and requires an explicit trimmed PLANE_WORKSPACE value for Plane exports.

Changes

Plane importer retirement

Layer / File(s) Summary
Importer command and roadmap removal
.env.example, package.json, packages/db/package.json, packages/db/src/import/*, packages/db/src/noveum-workspace.ts, docs/roadmap.md
Plane import, verification, combination, and workspace organization tooling is removed. The roadmap records the remaining export helpers and requirements for any future supported importer.
Team-key mapping behavior and tests
packages/db/src/import/plane-mapping.ts, packages/db/tests/import/plane-mapping.test.ts
Team keys no longer use mapped aliases. Suffixed keys preserve the six-character limit. Tests cover collisions, suffixes, identifiers, fixtures, links, slugs, and assets.
Explicit Plane workspace configuration
scripts/fetch-plane.ts
PLANE_WORKSPACE is trimmed, required, and used in the generated summary title.

Estimated code review effort: 2 (Simple) | ~15 minutes

Possibly related PRs

  • Noveum/orbit#20: This PR removes the Plane importer and tooling introduced by that PR.

Suggested labels: area: integrations

Suggested reviewers: pulkitxm

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
Title check ✅ Passed The title clearly summarizes the main change: removing unsafe importer tooling from the supported database interface.
Description check ✅ Passed The description accurately covers the importer removal, tenant-neutral changes, explicit workspace requirement, documentation, and verification.
✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch codex/open-source-importer-quarantine

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.

❤️ Share

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

Base automatically changed from codex/open-source-neutral-seed to main August 10, 2026 17:29
…orter-quarantine

# Conflicts:
#	packages/db/src/noveum-workspace.ts
#	packages/db/tests/noveum-workspace.test.ts
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

1 active deployment
Preview — 8796e793 Deployed Aug 10, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: database Schema, migrations, queries, seed ci Workflows, tooling and repo automation dependencies Dependency updates documentation Docs, the README, or anything that explains Orbit tests Test coverage and test infrastructure

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant