Repository navigation
fix(linear): exclude label groups from assignable labels - #26861
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configuration
📒 Files selected for processing (2)
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 0 remain after this review. 📝 WalkthroughWalkthrough
Fixed issue severity: <fixed_issue_severity>Medium</fixed_issue_severity> Priority: ➖ Normal Merge Risk: ⚪ Minimal · up to Label groups are no longer offered as assignable Linear labels. Standalone labels and child labels are kept. No merge-blocking risk remains. 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)✅ Passed checks (4 passed)
✨ Finishing Touches 💡 1📝 Generate docstrings 💡
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Records the retained adapted contribution from #25843 in replacement PR #26861. Co-authored-by: kazu-42 <[email protected]>
ELI5
Linear label groups organize labels but cannot be attached to an issue. Orca offered the groups as choices, causing Linear to reject an issue when a group was selected. The picker now offers the child labels and ordinary labels.
What Changed
The shared team-label reader removes parent groups after loading every page. Child labels, ordinary labels, ordering, and the existing response fields are preserved. Both readers use the correction, so issue pickers and command-line label choices receive the same valid list.
Why
The installed Linear SDK already supplies the group flag. Filtering in the shared reader avoids duplicating the rule in each picker or changing the response sent to remote clients.
Based on the fix and pagination regression cases in #25843 by @kazu-42, with an additional check that a failed later page preserves each reader's error handling.
Linked Issue
Fixes #25603
Visual Proof
Hidden Electron screenshots, using the real installed SDK and production IPC reader with a local four-page fixture matching the reported group/child shape:
Testing
macOS hidden Electron: opened Tasks → New Linear issue → Labels before/after; verified parent choices disappear and the child label remains selectable. The installed SDK queried
isGroupon every fixture page. The temporary fixture adapter was removed before final checks.44 tests passed across the team readers, runtime Linear reads, runtime team projection, and label-filter picker suites. The three canonical Node suites also passed all 21 tests on native Windows (Node 24.18.0) and Linux (Node 26.8.1) at the exact reviewed commit; those host runs use source fixtures and mocked API responses, with no live Linear or remote rendered-UI claim. New pagination cases failed on baseline. Full
pnpm tcandpnpm run check:code-quality:changedpassed. Fresh dev main/preload builds completed for rendered validation. CI passed all five full test shards, relay integration, static analysis/typecheck, Linux and Windows packaging, repository guards, and final verification at this commit. After marking the PR ready for review, PR verification and the headless-server persistence check also passed. Live Linear credentials and an actual SSH host were not used; the shared host reader and unchanged remote response shape were reviewed.AI Disclosure
Review
Independent review: clean; the reviewer separately passed all 15 focused team-reader tests and verified the SDK, callers, pagination, errors, and remote compatibility.
Agent skill upstream boundary
Notes
The response remains
{ id, name, color }; no protocol, credential, query, or platform-specific behavior changes. Updated remote hosts return valid labels to older clients. Older hosts retain the existing behavior until updated.Checklist
N/Awith reasonpnpm lint,pnpm typecheck,pnpm test, andpnpm buildpass (or CI will cover; local preferred)