fix(members): hint at re-run init when legacy pre-0.25 roster is ignored - #742
Closed
Parithosh-Varma wants to merge 1 commit into
Closed
Parithosh-Varma wants to merge 1 commit into
Parithosh-Varma wants to merge 1 commit into
Conversation
0.25 moved the roster to the teamai-reports branch, so teams upgrading with members/ on the default branch see a bare 'No team members registered' (issue Tencent#735). When the reports worktree is empty but legacy member files exist, point at recovery: each member re-runs 'teamai init' once to re-register. Read-only: no new commands, no data-path changes. Signed-off-by: Parithosh-Varma <demgufever@gmail.com>
Collaborator
|
Thanks for your attention. This issue has been assigned. |
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.
Fixes #735 (symptom-level: silent empty roster after 0.25 upgrade).
Problem
0.25 moved the member roster to the
teamai-reportsorphan branch. Teams upgrading withmembers/still on the default branch get a bareNo team members registeredwith no explanation, although their roster exists.Fix
In
listMembers, when the reports worktree yields zero members in branch-worktree mode and legacymembers/*.yamlfiles exist in the clone, print an actionable warning naming the count, path, and recovery (teamai initre-registers each member on teamai-reports). Deliberately read-only: no new commands, no data-path changes, legacy files still ignored per existing tests.Test plan
npx tsc --noEmit: clean.npx vitest runon members/membership/single-repo-mode/git-kind-reports/reports-branch-readonly: 5 files, 92 tests pass (incl. 1 new: legacy hint).npm run build, isolated HOME, local bare remote, omitted-kindconfig = reporter's case):members/present ->No team members registered+ warn pointing atteamai init;members/absent -> message only, no warn.