Repository navigation
test(linear): cover numeric-leading issue identifiers - #10241
Conversation
📝 WalkthroughWalkthroughUpdated Linear issue identifier validation to allow prefixes beginning with digits and added a shared validation helper. Workspace intent detection now uses the helper, and tests verify uppercase normalization for bare and organization-scoped inputs such as 🚥 Pre-merge checks | ✅ 3 | ❌ 2❌ Failed checks (2 warnings)
✅ Passed checks (3 passed)
Full details: Description checkExplanation The description explains the behavior and testing, but it conflicts with the provided change summary and objectives: it says no production code changes remain, while the summary lists changes to the identifier parser and workspace source detector. It also omits required template sections, including a linked issue and visual proof or an explicit N/A statement.
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 |
0950cbc to
825ec79
Compare
Blocking: verified new false positivesI executed the actual exported
The commonly-cited corpus ( Two mitigating facts, verified by call-site tracing: this is not a free-text linkifier — it never scans terminal output, commit messages, or agent message bodies. It parses whole explicit values in What blocks this is the premise, not the blast radius. Linear's public Teams/Create-Issues docs and the GraphQL schema state no leading-digit rule, and Linear's own tooling disagrees with itself — To unblock: show one real Linear team with a digit-leading key (a screenshot of team settings, or an issue URL). With that, this ships. |
|
sorry this took awhile, but correct! Working on it |
825ec79 to
fd5a1af
Compare
…ction Main already provides numeric-leading team-key support via stablyai#23423. Retain its parser and workspace source flow, port the regression corpus to the renamed module, and cover normalized identifiers and strict URL intent in the workspace picker.
Exercise a missing-label resource bundle explicitly instead of assuming Spanish is untranslated, and pin discard descriptions per locale so translation updates do not invalidate the index-preserving copy regression checks.
fd5a1af to
167d8a0
Compare
Digit-leading Linear team keys such as
2ENG-123,1PASS-42, and3D-15must normalize correctly in explicit issue inputs and the new-workspace source picker, while numeric-only values such as dates, phone numbers, and ranges remain ordinary text.Main already implements the parser and picker behavior through #23423. This PR is rebased onto current main and retains that implementation, porting the original regression coverage into
src/shared/linear/links.test.tsand adding tests for the current bounded workspace source parser and strict URL intent.The tests cover lowercase normalization, whitespace, organization-scoped issue URLs, and rejection of numeric-only team keys in both bare inputs and URLs. No production code changes remain, so existing platform, SSH, folder-workspace, and URL validation behavior is preserved.
Full CI also exposed two stale localization tests already present on main. The supported-agent fallback test now uses an explicitly empty locale bundle instead of assuming Spanish is untranslated; discard-description tests now assert the current translated copy for each locale. These are test-only repairs.
Validation:
pnpm typecheckpassed.Original patch by @kenfdev.