You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Map Linear exports into the safe shared import runner #127
area: databaseSchema, migrations, queries, seedblockedWaiting on something elseenhancementA new capability or an improvement to an existing onehelp wantedWe would love a hand with this oneneeds designThe shape has to be agreed before code is writtenp1 highBlocks real work, fix this weekpoints: 5Fibonacci estimate: 5roadmapA tracked item on the public roadmapsize: largeA week or so. Several surfaces, or a schema change
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.
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.
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:
"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.
"Add an import:linear script alongside import:plane". There is no import:plane to sit alongside.
"Add a root db:import-linear script". Same.
"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.
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.
area: databaseSchema, migrations, queries, seedblockedWaiting on something elseenhancementA new capability or an improvement to an existing onehelp wantedWe would love a hand with this oneneeds designThe shape has to be agreed before code is writtenp1 highBlocks real work, fix this weekpoints: 5Fibonacci estimate: 5roadmapA tracked item on the public roadmapsize: largeA week or so. Several surfaces, or a schema change
Activity
imshashank commentedon Aug 8, 2026
Part of the importer cluster, alongside #229 which covers Jira and GitHub Issues.
All of them produce
ImportRowsand reuse everything downstream, andplane-source.tsplus the Plane path throughpackages/db/src/import/index.tsis 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.
imshashank commentedon Aug 15, 2026
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.tsandverify.ts, and it removed thedb:import-plane,import:planeandimport:verifyscripts frompackage.jsonandpackages/db/package.json. Verified on3ba32cb.Where that leaves this issue. Every one of the four steps here referenced something that is now gone:
ImportRows, the wayplane-source.tsoutput is mapped inpackages/db/src/import/index.ts".index.tsdoes not exist.rows.tsandbuild-project.tssurvive 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.import:linearscript alongsideimport:plane". There is noimport:planeto sit alongside.db:import-linearscript". Same.import:verify".verify.tswas deleted.linear-source.tsitself 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":
build-project.tsandrows.tsare the surviving pieces to build on.packages/db/tests/import/.plane-source.test.tsandplane-mapping.test.tsstill 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: largefollow-on to existing plumbing. Leaving the labels alone for now, since the answer depends on which of the two options above a maintainer prefers.imshashank commentedon Aug 23, 2026
The
readylabel 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 designuntil that prerequisite is scoped.[-]Finish the Linear importer[/-][+]Map Linear exports into the safe shared import runner[/+]