Is there a way to alphabeticaly order teams in the left panel? #5412
-
A pipeline admin maybe in a lot of teams, it's hard to locate a team given there is a long team list in the left panel. So is there a way to show teams in alphabetical order in the left panel on the GUI? |
Beta Was this translation helpful? Give feedback.
Replies: 6 comments 3 replies
-
Yup, this is so helpful when you logged in as admin. |
Beta Was this translation helpful? Give feedback.
-
Hmm, we'll be working on a 'favoriting pipelines' feature soon. Don't know if that would help though. Ordering alphabetically seems sensible - perhaps with teams you're actually a member of listed first. I'm actually not sure what the current ordering is based on. @matthewpereira Any thoughts on this? |
Beta Was this translation helpful? Give feedback.
-
I can comment what currently determines the team order. We can see here: concourse/web/elm/src/SideBar/SideBar.elm Line 147 in 3b487b5 that the view function makes use of So the real source of truth is however the backend is sorting the items in the which, in the case of a super-admin, is concourse/atc/db/pipeline_factory.go Line 75 in 3b487b5 so the ordering is by team id, and then by the to an auto-incrementing ID field: concourse/atc/db/migration/migrations/1510262030_initial_schema.up.sql Lines 549 to 570 in 3b487b5 This really means that teams in the sidebar will appear in the order they were created. |
Beta Was this translation helpful? Give feedback.
-
I just checked on my end and it's exactly how the teams are displayed. |
Beta Was this translation helpful? Give feedback.
-
@vito Should this be converted to an issue? |
Beta Was this translation helpful? Give feedback.
-
My PR #5622 has been merged. |
Beta Was this translation helpful? Give feedback.
My PR #5622 has been merged.