Corkboard keeps a Local copy of Linear, and lists read only from it
Each Account's followed Teams are synced into SQLite: open Issues and those closed in the last six months, with their
Links, Projects, Milestones, comments, labels, people, notifications and Triage. Filters, Search and pickers read
only the Local copy, and anything older is fetched when a Link or a Search reaches it. Filters that follow Links
(blocked-by:, child:, and later blocked-by:(…)) and searching comments are what Corkboard is for, and Linear's
API can answer neither quickly, so the app has to hold the graph itself. Sync polls for what changed since the last
sync, since webhooks would need a server the app doesn't have.
Considered Options #
- Asking Linear live for every list. Always current, but limited to what Linear's filters say, a round trip a keystroke, and up against the API's rate limits under heavy searching.
- Live, with a cache of recent results. Fast for what was seen, and no better at Link-following Filters.
Consequences #
The sync engine is the largest part of the app. Edits are Changes: shown at once, sent from a queue kept on disk, and taken back one by one if Linear refuses; when someone else changed the same field, the last write wins, as in Linear.
Phin Tech docs
Corkboard in the store →