fix(project): scope all project prompts to team - #154
Conversation
When a team key is available (via --team or the active profile), resolve_project_id now looks up projects only within that team instead of fetching every workspace project. This prevents cross-team projects from appearing in the interactive --project prompt and makes project resolution cheaper for focused workflows. Fallback when no team context is present is unchanged: all workspace projects are searched, preserving existing behaviour. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…update project favorite, project unfavorite, and project update now resolve the project against the current team's projects instead of fetching every workspace project. Team is resolved from --team (new option on all three subcommands), the active profile, or an interactive prompt - the same resolution order issue create uses. This prevents cross-team projects from appearing in the interactive project prompt and makes project resolution cheaper for focused workflows. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Code ReviewBranch: Overall Assessment: Approve with minor suggestionsThe implementation is correct, well-structured, and consistent with existing patterns in the codebase. The two commits cleanly separate the two scopes of work. Tests are thorough and pass (7 pre-existing What looks good
Issues foundMinor — Stale docstrings (2 instances)
No critical or major issues found. Workspace noteThe working tree has staged changes that revert the branch's committed work back to the Reviewed at run 1, commit |
Code Review Summary (Linear issue EXT-2)Verdict: Approve with two minor docstring suggestions. What was reviewed: Both commits on Findings:
|
Fix the docstrings, they're a contract, too. |
project_favorite/1 and issue_list/1 docstrings still described workspace-wide project resolution after the team-scoped implementation was added. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Rework: docstring fixesAddressed the two stale-docstring nits from code review:
Also recovered from a botched pre-push rebase that had left all feature changes staged as reversions (the working tree had the old code despite the commits being present). Discarded the staged/unstaged reversions, confirmed the feature commits were intact, then applied and pushed only the docstring fix. Quality: compile (warnings-as-errors) ✓, format ✓, tests 291/297 (6 pre-existing git_test.exs env failures unchanged) ✓ |
🤖 I have created a release *beep* *boop* --- ## [1.15.1](v1.15.0...v1.15.1) (2026-08-19) ### Bug Fixes * fix workflow for rebasing ([#155](#155)) ([c44178c](c44178c)) * **project:** scope all project prompts to team ([#154](#154)) ([b884436](b884436)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please).
Summary
issue list --projectnow resolves the project against only the active team's projects when a team is known (via--teamor the active profile), instead of fetching every workspace project. Falls back to all-workspace search when no team context is available.project favorite,project unfavorite, andproject updatenow resolve the project against the team's projects exclusively. Team is resolved from the new--team/-toption, the active profile, or an interactive prompt — matching the same resolution orderissue createalready uses.--team/-toption (consistent withproject list).Closes EXT-2
Test plan
mix test— 291/297 pass (6-7 pre-existinggit_test.exsenv failures, unchanged)mix compile— cleanmix credo— no issuesfavorites_commands_test.exs— updated stubs to handle team-scoped project query (ByTeam format)cli_test.exs(project update) — updated stub to handle viewer + team-scoped project query--project with --team resolves against team-scoped projects onlyasserts workspace-wide project query is never made when a team is in scope🤖 Generated with Claude Code