Fix MR analytics label search for large groups
What does this MR do and why?
For large groups (such as gitlab-org
) the label search on MR analytics has issues when rendering due to the number of labels rendered at once. Apply the maxSuggestions
option on the FilteredSearchBar
label search to reduce the number of components rendered. Search is already implemented, so they will still have access to the labels not rendered initially.
Screenshots or screen recordings
With a maxSuggestions: 2
applied, the changes actually suggest a max of 100 labels
How to set up and validate locally
- Visit the MR analytics page for a project: http://gdk.test:3000/flightjs/Flight/-/analytics/merge_request_analytics
- In the filter bar, select Label and view the list of available labels
- Reduce
MAX_LABEL_SUGGESTIONS
constant or seed new labels for the project - Validate that the number of labels rendered matches
MAX_LABEL_SUGGESTIONS
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.
Related to #415820 (closed)