Skip to content

Add sort by members option to the admin groups page

What does this MR do and why?

Add the ability to sort admin groups by member count.

Screenshots or screen recordings

Screenshots are required for UI changes, and strongly recommended for all other merge requests.

Before After
Screenshot 2023-09-20 at 23.37.49.png Screen Recording 2023-09-20 at 23.52.57.mov

How to set up and validate locally

Numbered steps to set up and validate the change are strongly suggested.

  1. Go to Admin Area -> Groups (http://localhost:3000/admin/groups)
  2. Click on sorting dropdown -> Observe the options
  3. Apply changes from this MR
  4. Reload the page
  5. Click on the sorting dropdown -> Observe the options -> Two new options to sort by members should be visible
  6. Select Members option -> Observe the result -> The group list is sorted by member count ascending
  7. Select Members, descending option -> Observe the result -> The group list is sorted by member count descending

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Related to #423891

Merge request reports