chore: Remove deprecated src teams commands - #1376
Open
marcleblanc2 wants to merge 2 commits into
Open
Conversation
Teams were removed in Sourcegraph 7.0. Since #1257 (src-cli 7.0.0) the command has refused to run against 7.x instances, so it only works against instances that are no longer supported. Remove it and its reference page. Drops the "teams.md" entry from the doc golden list and the legacyGroupsWithoutSubcommandPages exemption added in #1375, so every remaining legacy group is now expanded into subcommand pages. Part of https://linear.app/sourcegraph/issue/FE-502 Amp-Thread-ID: https://ampcode.com/threads/T-01a08410-86ca-72be-9928-2810e837fae1 Co-authored-by: Amp <amp@ampcode.com>
This was referenced Sep 9, 2026
…ntries Sourcegraph70 was only used by the teams version gate. The `extensions` and `gateway` commands were removed in #1173 and earlier but were still listed in `src help`. Part of https://linear.app/sourcegraph/issue/FE-502 Amp-Thread-ID: https://ampcode.com/threads/T-01a08410-86ca-72be-9928-2810e837fae1 Co-authored-by: Amp <amp@ampcode.com>
src teams commandssrc teams commands
src teams commandssrc teams commands
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.
Part of FE-502. #1377 is stacked on this. Stacked on #1375 (base branch is
fix/doc-legacy-groups; retarget tomainonce #1375 merges — the diff shown is only this PR's commit).Why
Teams were removed in Sourcegraph 7.0. #1257 (shipped in src-cli 7.0.0, 2026-02-25) made
src teamsrefuse to run against 7.x instances (checkTeamsAvailability: "the 'src teams' commands are not available for Sourcegraph versions 7.0 and later ... Teams have been removed"). Six months later the command only works against instances that are no longer supported, yet it still appears insrc helpand has a reference page on https://sourcegraph.com/docs/cli/references/teams.While fixing
src docin #1375 I had to special-caseteamsso the generator wouldn't expand it into 9 new pages for a removed feature. Removing the command is the cleaner answer.What
Delete
cmd/src/teams*.goandcmd/src/team_members_list.go(9 files,teamsCommands+teamMembersCommands, theteamalias,checkTeamsAvailability).Drop the
teams,team manages teamsline from thesrcusage text inmain.go.doc_test.go: removeteams.mdfromexpectedDocFiles;legacyGroupsWithoutSubcommandPagesis now empty, so every remaining legacy group is expanded into subcommand pages.CHANGELOG entry under Unreleased → Removed.
Remove the
Sourcegraph70feature flag frominternal/features/features.go; the teams gate was its only user.Also drop
extensions,extandgatewayfrom thesrcusage text — those commands were removed long ago (chore: Remove deprecated extensions commands #1173 etc.) but were still listed.Downstream
The generated
teams.mddisappears fromsrc docoutput, so after the next release:"teams.md"removed fromOUTPUT_FILESanddoc/cli/references/teams.mddeleted (I'll update that PR).docs/cli/references/teams.mdx(the sync never deletes) — done in docs/cli: Add missing doc pages for src-cli commands docs#1889.Test plan
rg -i '\bteams?\b' cmd internalfinds no remaining references outside search test fixtures (where "team" is repository content).rg 'Sourcegraph70|extensions|gateway' cmd internalis empty.src(no args) now lists only commands that exist.