Skip to content

Map Linear exports into the safe shared import runner #127

Open

Description

@imshashank

packages/db/src/import/linear-source.ts parses exports, but there is no supported command that applies them. #287 removed the old Plane runner, index.ts, verify.ts and import scripts; do not copy or restore that unsafe path. #359 now owns the shared runner, dry-run, target authorization, retry and verification contract.

This issue is the Linear mapping and user-facing command built on that runner. Reuse ImportRows, rows.ts and build-project.ts, document lossy mappings, and cover identifiers, users, attachments and retries with fixture exports. Keep blocked until #359 supplies the safe execution boundary.

#229 is closed as not planned; it is historical context, not another active importer dependency.

Activity

  1. added
    enhancement
    help wanted
    area: database
    roadmap
    p1 high
    ready
    on Aug 7, 2026
  2. added
    size: large
    points: 5
    on Aug 8, 2026
  3. imshashank commented on Aug 8, 2026

    @imshashank
    ContributorAuthor

    Part of the importer cluster, alongside #229 which covers Jira and GitHub Issues.

    All of them produce ImportRows and reuse everything downstream, and plane-source.ts plus the Plane path through packages/db/src/import/index.ts is the model every one of them copies. So finishing this one establishes the pattern that #229 then follows twice.

    This is the smallest of the three and the one where the parsing is already written, which makes it the right one to take first.

  4. imshashank commented on Aug 15, 2026

    @imshashank
    ContributorAuthor

    Still open, but the plan in the description no longer works, because the thing it says to copy was deleted. Please read this before starting.

    What happened. #287 quarantined the importer tooling for the open source release. It removed packages/db/src/import/index.ts, combine.ts, combined.ts, surgical.ts and verify.ts, and it removed the db:import-plane, import:plane and import:verify scripts from package.json and packages/db/package.json. Verified on 3ba32cb.

    Where that leaves this issue. Every one of the four steps here referenced something that is now gone:

    1. "Map the parsed Linear export into ImportRows, the way plane-source.ts output is mapped in packages/db/src/import/index.ts". index.ts does not exist. rows.ts and build-project.ts survive and still define the row shapes and the project builder, so the target is still there, but the mapping layer that consumed them is not.
    2. "Add an import:linear script alongside import:plane". There is no import:plane to sit alongside.
    3. "Add a root db:import-linear script". Same.
    4. "Verify with the existing import:verify". verify.ts was deleted.

    linear-source.ts itself is untouched and still parses and validates a Linear export with Zod, so the half that was already done is still done. It is simply that the other half now has to be built rather than copied.

    Revised scope, which is larger than "finish". This is now "build the import runner, and make Linear its first source":

    • A runner that takes a parsed export, builds rows and writes them in a transaction. build-project.ts and rows.ts are the surviving pieces to build on.
    • Whatever safety the quarantine was protecting. fix(db): quarantine unsafe importer tooling #287 called the old tooling unsafe, and the reason matters: a new runner should not reintroduce it. Worth reading that pull request before designing this.
    • A verification pass, since the old one is gone.
    • Tests in packages/db/tests/import/. plane-source.test.ts and plane-mapping.test.ts still pass and show the shape.

    Two honest options for whoever picks this up. Either build the general runner here and land Linear on it, or split the runner into its own issue and leave this one as the Linear mapping. The second is tidier and matches how #229 is written.

    Re-estimating: this is no longer a size: large follow-on to existing plumbing. Leaving the labels alone for now, since the answer depends on which of the two options above a maintainer prefers.

  5. imshashank commented on Aug 23, 2026

    @imshashank
    ContributorAuthor

    The ready label is stale. As the previous update records, #287 removed the runner, verification command, and scripts this issue expected to reuse.

    The clean split is to design and land a safe shared import runner as its own prerequisite, including the transaction and verification behavior that #287 was protecting. This issue can then stay focused on mapping the already parsed Linear export into that runner. #229 should depend on the same runner rather than building another one.

    I am moving this back to needs design until that prerequisite is scoped.

  6. added
    needs design
    and removed
    ready
    on Aug 23, 2026
  7. moved this from Ready to Needs design in Orbit roadmapon Aug 25, 2026
  8. changed the title [-]Finish the Linear importer[/-] [+]Map Linear exports into the safe shared import runner[/+] on Sep 22, 2026
  9. added
    blocked
    on Sep 22, 2026
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: databaseblockedenhancementhelp wantedneeds designp1 highpoints: 5roadmapsize: large

    Type

    No type

    Projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions