Repository navigation
Open
Labels
area: databaseSchema, migrations, queries, seedenhancementA 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: 8Fibonacci estimate: 8roadmapA tracked item on the public roadmapsize: largeA week or so. Several surfaces, or a schema change
Milestone
Description
Current status, September 22
#127 is the active Linear consumer of this shared runner. #229 was closed as not planned, so it is no longer an active delivery dependency. The safety, dry-run and verification requirements below still apply before any importer can write.
Original requirements
PR #287 removed Orbit's supported importer commands because the runner was tenant-specific and destructive. The retained Plane and Linear readers, ImportRows, rows.ts, and build-project.ts are library groundwork only. Nothing on current main can safely apply an import.
This issue restores one source-neutral execution and verification path. It is a prerequisite for #127 and #229. Source-specific Linear, Jira, and GitHub parsing and mapping remain in those issues.
Requirements
- Define an import plan around
ImportRows, including how attachment side effects are staged and reported. - Require an explicit target organization and an authorization model for selecting it.
- Separate dry-run and apply modes. Dry-run must perform no database or storage writes.
- Preserve every non-target tenant. Any delete or replacement mode must require typed confirmation.
- Reject unsafe remote targets.
- Define collision, retry, resume, and idempotency behavior before implementation.
- Apply database changes transactionally and define cleanup or recovery for storage side effects.
- Produce a structured report of imported, converted, skipped, and failed records.
- Provide a post-apply verification command or mode.
Acceptance criteria
- Tests prove dry-run is write-free and reports the planned changes.
- Tests prove apply cannot modify another organization.
- Re-running or resuming an import does not duplicate committed records.
- An injected database failure rolls back the transaction.
- An injected attachment failure has a tested cleanup or recovery path.
- Unsafe target configuration is refused before any write.
- The shared runner has a package entry point that Map Linear exports into the safe shared import runner #127 and Jira and GitHub Issues importers #229 can call without duplicating execution logic.
- Documentation explains the operator workflow, safety model, report, and recovery procedure.
Design decisions required before ready
- Additive-only imports versus an optional replace mode.
- How a local database operator proves authority for the target organization.
- Stable collision and resume keys across source systems.
- The transaction boundary between Postgres and object storage.
- The exact verification and reporting contract.
Metadata
Metadata
Assignees
Labels
area: databaseSchema, migrations, queries, seedenhancementA 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: 8Fibonacci estimate: 8roadmapA tracked item on the public roadmapsize: largeA week or so. Several surfaces, or a schema change
Type
Projects
- StatusShow more project fieldsNeeds design
Activity