-
-
Notifications
You must be signed in to change notification settings - Fork 4.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(ui): Fix incomplete list of member's teams #29134
Conversation
onAddTeam={this.handleAddTeam} | ||
onRemoveTeam={this.handleRemoveTeam} | ||
/> | ||
<Teams slugs={member.teams}> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
niceeeee
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looking gooood. Do we have any tests to update?
Had a look at the tests and it seems like everything is fine. I could make a test to ensure that it fetches members teams if they aren't part of the store already, but I feel like that is just testing the |
nah, lets go |
b32a45c
to
2f4c522
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
Before:

After:

Due to switching settings from heavyweight org -> lightweight org, we no longer have access to all teams within the
organizationMemberDetails.tsx
view. Shown in the above example as the first screenshot does not include the 200th team (team_199)In order to fetch a user's teams we must load them on the fly if they do not exist using the
Teams
utility. This also means we have to introduce a loading state for theTeamSelect
component.Note: The gif has an artificially long loading state of 2 seconds. Typically the user will not see the loading state for nearly this long