Add search and sort support to organization groups view
requested to merge 420777-group-dashboard-swap-mock-graphql-query-for-real-graphql-query-3 into master
What does this MR do and why?
Related to #420777 (closed)
The grouptenant scale team is starting to build out an Organization MVC. For more information about what an "Organization" will be see https://docs.gitlab.com/ee/architecture/blueprints/organization/
In !142614 (merged) we swapped a mock GraphQL query for the real one but opted to add hook up search and sort to the GraphQL query in a follow-up MR (this MR
Notes for reviewer
- The API for the project dashboard does not yet support search and sort. When they are added in #437681 (closed) and #409312 (closed) we will hook up project search and sort to the GraphQL query.
- The API does not yet support the access level that the current user has so the role badge will not yet be shown. That will be shown after implementing #437683 (closed)
- Mock data is now only used for specs, we are planning on moving to frontend fixtures in #439147 (closed)
MR acceptance checklist
Please evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.
Screenshots or screen recordings
Screen_Recording_2024-01-30_at_12.44.21_PM
How to set up and validate locally
- Open Rails console
bin/rails console
- Enable the feature flag
Feature.enable(:ui_for_organizations)
- If you have less than 20 groups you can set app/assets/javascripts/api.js#L6 to a lower number to force pagination.
- Navigate to
/-/organizations/default/groups_and_projects
, use search and sort.
Edited by Peter Hegman