feat: show actual teams/users in team alignment #24
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.
It struck me as odd that I saw a team "unknown", whereas the users were all collected in appropriate teams, also I saw teams that did not contribute to the selected branch in the tree; this PR fixes that, by always returning the actual teams that are resulting from a team alignment analysis. The team/user names are sorted alfabetically to have a more or less predictable outcome, and by chance separate the most active users somewhat, making the colored donut charts slightly easier to analyse.
BEFORE:
When 'By user' is not selected, all teams are shown, including a artificial team 'unknown', even when a team or 'unknown' was actually not part of the analysis.
AFTER:
Only teams that occur in the analysis are shown.
Checklist for PR