Skip to content

Enable Filter groups by name in the Usage quota groups/projects table

What does this MR do?

It adds a search box to the projects' table to filter projects by name.

It does that by sending the input from the search box to the graphql query as a new variable $searchTerm.

This MR doesn't add a loading indicator, it's being added in !45854 (merged).

Related to #247840

Testing

  1. Enable needed feature flags and application settings in rails console:
Feature.enable(:buy_storage_link)
Feature.enable(:additional_repo_storage_by_namespace)
ApplicationSettings::UpdateService.new(Gitlab::CurrentSettings.current_application_settings, nil, { repository_size_limit: 10240, automatic_purchased_storage_allocation: true }).execute
  1. Add some test data, use this for a quick test data added to root user (you can change the user before running the script in rails console).
  2. Add some projects to one of the test groups added.
  3. Navigate to the test group from the previous step, go to the Usage Quota from sidebar then Storage Quota tab inside the page.

Screenshots

Kapture_2020-10-22_at_14.12.28

Also added some padding to enhance readability (added .gl-pr-5 to the project title).

before after
Screen_Shot_2020-10-22_at_14.19.57 Screen_Shot_2020-10-22_at_14.19.08

Does this MR meet the acceptance criteria?

Conformity

Edited by Ammar Alakkad

Merge request reports