Skip to content

Draft: Use dynamic select dropdown on forks form

Igor Drozdov requested to merge id-dropdown-for-forks into master

What does this MR do and why?

In order to select a namespace for a fork, this MR reuses the dropdown component from the project creation form.


Before

Screenshot_2022-03-24_at_11.46.47


After

Screenshot_2022-03-24_at_11.46.14


It performs a GraphQL request that returns a limited number of results. It will save us from 500 errors that happen due to the database timeout.

The backend code for fetching the groups is the same:

So we can safely interchange the components.

If this MR gets merged, then we can cleanup the backend code as a follow-up.

Related issue: #290717 (closed)

Edited by Igor Drozdov

Merge request reports