Repository navigation
Keep ticket labels tidy - #21
Merged
Merged
Conversation
…o stale tracker rewrites The board's label filter listed every label ever used, including ones that only archived tickets carry. It now offers the labels on tickets the view can show, one entry per label whatever its capitalisation. canonicalLabel takes a label's spelling from live tickets before archived ones, so an archived import cannot reintroduce an old spelling. A Linear source that was removed or disabled leaves its tables behind; the mirror no longer reads them, so they cannot write stale labels or statuses back over later changes. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
canonicalLabelprefers the spelling used on live tickets over archived ones.context/work/lineartables when the project no longer has a Linear source (or it is disabled), so leftover tables stop rewriting ticket labels and statuses on every sync.Why
Marble's label filter showed 60 labels, most of them only on archived Linear imports, plus several spellings of the same label. After Linear was removed from the project's sources, the mirror would still have restored the tracker's labels on each sync.
Testing
npm test: 484 pass, with new tests for the spelling rule and the dropped Linear source. The board change typechecks but was not clicked through in a browser.🤖 Generated with Claude Code