Skip to content

Modules: four tables the Plane importer fills and nothing displays #196

Closed

Description

@imshashank

Import a Plane workspace into Orbit today and your modules come across into the database and then vanish, because Orbit has no screen that shows them.

packages/db/src/schema/work.ts defines four tables:

  • module, with name, description, lead, start and target dates, status and sort order
  • module_member
  • module_issue, joining modules to issues
  • module_link

packages/db/src/import/ populates them. Nothing else in the repository reads them. There is no route under apps/web/src/app/(app)/, no feature directory, no API handler and no MCP tool.

So this is data loss from the user's point of view, even though the rows are sitting right there in Postgres.

The question to answer before writing any UI

Does Orbit want modules at all?

Orbit already has projects, milestones and sprints. Plane's module is a mid-sized grouping that sits between a project and an issue, roughly what Jira calls an epic and what other trackers call a feature or a workstream. Orbit's closest equivalent is a milestone inside a project.

The roadmap is explicit that Orbit does not want two ways to do the same thing. So there are three honest outcomes here, and picking one is most of this issue:

A. Modules become a real Orbit concept. Build the UI: a list, a detail view with its issues, membership, progress, and the ability to create one outside an import. Add filters, saved view support and MCP tools. This is the largest option and it only makes sense if modules are genuinely distinct from milestones for the way people work.

B. Modules map onto milestones at import time. The Plane importer converts each module into a milestone, or into a label, and the four tables are dropped. Imports stop losing data, Orbit gains no new concept, and the schema gets smaller. This is the smallest option and probably the right one.

C. Modules stay import only, and the importer says so. The tables remain as an archive of what was imported, the import summary tells the user their modules were preserved but are not shown, and docs/ says the same. This is the least work and the least honest.

Our current view is that B is most likely right, because a milestone inside a project is already the mid-sized grouping and Orbit does not need a second one. But whoever has actually used Plane's modules in anger knows more about this than we do, and that is exactly the comment this thread wants.

If B wins

The work is:

  1. Map modules in packages/db/src/import/plane-mapping.ts to milestones, preserving name, description, dates and issue membership
  2. Handle the case where a Plane module's issues span several Orbit projects, since a milestone belongs to one project and a module may not
  3. Report in the import summary what was converted
  4. Drop the four tables in a migration, and note it as a breaking change for anyone who already imported
  5. Update docs/ to say what happens to modules on import

Whichever wins

The Plane importer's summary should be explicit about what came across, what was converted and what was skipped. Right now somebody importing has no way to know that a whole concept quietly landed in tables nothing displays. That reporting improvement is worth doing regardless of the outcome here, and it is separable if somebody wants a smaller piece.

Files

  • packages/db/src/schema/work.ts
  • packages/db/src/import/plane-source.ts
  • packages/db/src/import/plane-mapping.ts
  • packages/db/src/import/rows.ts
  • docs/

Comment before building. This one is a decision first and code second.

Activity

  1. added
    needs design
    p2 medium
    area: database
    dead code
    on Aug 8, 2026
  2. moved this to Needs design in Orbit roadmapon Aug 8, 2026
  3. added
    size: medium
    points: 3
    schema change
    on Aug 8, 2026
  4. imshashank commented on Aug 15, 2026

    @imshashank
    ContributorAuthor

    The framing here has changed, and it makes this issue easier to decide rather than harder.

    What changed. #287 quarantined the importer tooling, deleting packages/db/src/import/index.ts and every import script. Verified on 3ba32cb: nothing populates module, module_member, module_issue or module_link any more. plane-mapping.ts and build-project.ts survive as library code that no command can reach.

    What that does to the argument. The opening line no longer applies:

    Import a Plane workspace into Orbit today and your modules come across into the database and then vanish

    There is no Plane import today. So the "this is data loss from the user's point of view" case is gone, along with the pressure it created. The four tables are simply dormant, along with the other twelve in #192.

    Why this makes the decision cleaner. The question this issue says must be answered first, "does Orbit want modules at all?", can now be answered on its merits. Previously option C, drop the tables, was awkward because a live importer was writing to them. It no longer is.

    Against docs/roadmap.md and its rule about not having two ways to do the same thing, and with projects, milestones and sprints all shipping and in active use, option C looks like the honest answer unless somebody wants modules specifically. Dropping four tables and the mapping code is a small, well-scoped change, and it makes the schema stop advertising a feature that does not exist.

    Option A, building modules as a real Orbit concept, would now also mean building the creation path from scratch, since there is no importer to seed one. That is a materially larger job than when this was filed.

    I have not changed the labels. This still needs a maintainer to pick A, B or C, and it is still the kind of decision that should not be made in a pull request.

  5. imshashank commented on Sep 6, 2026

    @imshashank
    ContributorAuthor

    Decision: option C. Drop module, module_member, module_issue and module_link and the Plane mapping that fills them. There is no Plane import any more, projects, milestones and sprints cover the mid-sized grouping, and a second noun for it is exactly what the roadmap rules out. The work is a small issue: #417.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area: databasedead codeneeds designp2 mediumpoints: 3schema changesize: medium

    Type

    No type

    Projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions