Skip to content

Add filter and sort to organization project view

What does this MR do and why?

Related to #409030 (closed)
Designs: #406613 (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/user/organization/

This MR continues to build the Groups and projects page by adding filter and sorting to the page.

A few notes:

  • The projects view is currently using a mock GraphQL resolver with mock data.
  • The groups view will be built in #409029 (closed)
  • The search and sort do not currently change how the GraphQL query is called. This will be implemented in a future MR.

Screenshots or screen recordings

Desktop

Groups

Screenshot_2023-07-28_at_9.57.05_AM

Projects

Screenshot_2023-07-28_at_9.57.26_AM

Mobile

Groups

Screenshot_2023-07-28_at_9.58.37_AM

Projects

Screenshot_2023-07-28_at_9.58.23_AM

How to set up and validate locally

  1. Open Rails console
    • bin/rails console
  2. Enable the feature flag
    • Feature.enable(:ui_for_organizations)
  3. Create an organization
    • FactoryBot.create(:organization, name: 'GitLab', path: 'gitlab')
  4. Navigate to /-/organizations/gitlab/groups_and_projects

MR acceptance checklist

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

Edited by Peter Hegman

Merge request reports

Loading