Changes reach Projects and Milestones as well as Issues
Shaping a Project means editing the Project itself: its name, Project status, Lead, dates and description, and its
Milestones. Those edits are Changes like an Issue's (ADR 0001): shown at once, queued on disk, sent in order, taken
back if Linear refuses, and undone with u. They share the one queue and the one Edit, and a Change names what it
edits by its field: project.name or milestone.target_date edit the Project or Milestone whose id the Change carries,
where a bare project is still an Issue's Project. A new Project or Milestone is made under an id Corkboard chooses,
as a new Issue is, since Linear's projectCreate and projectMilestoneCreate take one, so later Changes can name it
before Linear has it and nothing has to be renamed once it does.
Considered Options #
- A queue for each kind of thing. Each would be simpler alone, but a Milestone made and then an Issue moved into it
have to reach Linear in that order, which two queues can't promise, and
uwould have to choose between them. - A column saying what kind of thing a Change edits. Clearer in the table, but every query over
changeswould need it, when the field already says. - Local ids replaced by Linear's, as a new Link's are. Linear gives a Link its id, but lets Corkboard choose a Project's and a Milestone's, so there's nothing to replace.
Consequences #
The changes table's issue column holds the id of whatever the Change edits, and Change::issue is read the same
way. A sync re-applies the Changes still waiting for the Projects and Milestones it brings, as it does for Issues.
Phin Tech docs
Corkboard in the store →