Skip to content

Update Project URL dropdown on New Project page

Coung Ngo requested to merge 26732-update-new-project-page-dropdown into master

What does this MR do?

The Project URL dropdown on the New Project page currently renders all groups. When there are thousands of groups, the page can take seconds to load.

This MR updates the dropdown to avoid rendering all groups. Filtering from user search is done on the backend instead of the frontend.

This change is behind the feature flag paginatable_namespace_drop_down_for_project_creation, which was recently introduced in the associated backend MR !66112 (merged)

Issue: #26732 (closed)

Screenshots or Screencasts (strongly suggested)

Screen_Recording_2021-08-23_at_4.17.21_pm

How to setup and validate locally (strongly suggested)

  1. In rails console enable the paginatable_namespace_drop_down_for_project_creation feature flag
    Feature.enable(:paginatable_namespace_drop_down_for_project_creation)
  2. Visit the new project page such as http://127.0.0.1:3000/projects/new
  3. Test the changes

Does this MR meet the acceptance criteria?

Conformity

Availability and Testing

Security

Does this MR contain changes to processing or storing of credentials or tokens, authorization and authentication methods or other items described in the security review guidelines? If not, then delete this Security section.

  • Label as security and @ mention @gitlab-com/gl-security/appsec
  • The MR includes necessary changes to maintain consistency between UI, API, email, or other methods
  • Security reports checked/validated by a reviewer from the AppSec team

Related to #26732 (closed)

Edited by Coung Ngo

Merge request reports

Loading