Repository navigation
[leas code] Deduplicate Linear team readers - #13417
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (2)
📝 WalkthroughWalkthroughThe change adds a shared 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches📝 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 |
Summary
Route Linear state, label, and member reads through one private resource reader while retaining the six existing public functions. This removes repeated client selection, semaphore handling, authentication cleanup, logging, and fallback code for a net reduction of 46 lines.
Screenshots
No visual change.
Testing
pnpm lintpnpm typecheckpnpm testpnpm buildFocused verification:
pnpm exec vitest run --config config/vitest.config.ts src/main/linear(15 files, 109 tests)pnpm exec vitest run --config config/vitest.config.ts src/main/linear/teams.test.ts src/main/ipc/linear.test.ts src/main/runtime/linear-save-issue.test.ts(3 files, 22 tests)pnpm run typecheck:nodepnpm run check:code-quality:changedgit diff --checkAI Review Report
The review compared every old reader with the shared path and checked client selection, missing-client fallback, acquire placement, awaited team/resource loads, authentication token clearing, ordinary error fallback, exact warning labels, and release in
finally. The new matrix exercises all three fallback and throwing reader pairs, including authentication failures. The change was reviewed for macOS, Linux, and Windows and does not alter paths, shells, shortcuts, Electron behavior, SSH routing, folder workspaces, Git commands, or remote wire formats.Security Audit
Authentication failure behavior is unchanged: the affected workspace token is cleared and the error is rethrown in both reader modes. No secrets, commands, dependencies, IPC payloads, file paths, or external input validation changed.
Notes
Independent cleanup PR based on
main. The shared helper remains private to the Linear team module.