-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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 sidebar teams order #8281
Fix sidebar teams order #8281
Conversation
@enahum Is this this ticket? https://mattermost.atlassian.net/browse/MM-60723 |
@larkox seems to be the case |
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.
It looks fine, but one question before approving.
Are we positive o
will always contain all teams? If not, we may "lose" teams with this change.
It should contain all of them. @hmhealey can you confirm? |
I don't believe we keep that preference in sync with the user's teams. If I remember right, the preference is only updated when a user reoreders their teams, so:
The web app function for handling this is here: https://github.com/mattermost/mattermost/blob/master/webapp/channels/src/utils/team_utils.tsx#L18 |
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.
Tested on server v10.2.0 with 20+ teams. Reaggranging teams on Webapp will display same sequence on mobile app
@enahum Did we address the case where the items in that array don't match the users' current teams? It doesn't seem like that was handled, so I don't think that the mobile app will show new teams that the user is added to now unless the user reorders their teams from the web app |
@hmhealey you are saying that if:
The order preference is not updated and thus the team won't appear in the UI? Please confirm this is the case, cause then is not handled and is also affecting other work I'm doing |
@hmhealey additionally can you confirm if these newly added teams would show above or below the ones you already ordered manually. If above that would be better I think, specially when you are in a looooooooooot of teams already. |
I'm a bit late to reply, but yeah, that's correct.
The logic for that is in here. The order is:
|
Changes for that here #8306 |
Summary
The code to sort the teams based on the order established by the preferences wasn't working, the preferences are already sorted and if no preferences set we sort by the display name of the team.
Noticed this issue since we started to add more teams on Hub.
Ticket Link
https://mattermost.atlassian.net/browse/MM-60723
Release Note