Create indexing-restrictions component
What does this MR do and why?
This creates the indexing-restrictions component which will replace
the current select2-based selector in the admin ElasticSearch indexing
restrictions settings.
This new component leverages GlCollapsibleListbox to fetch and present
available index entities. Selected entities are displayed in a
scrollable list below the selector and can be removed from there. A
hidden input is kept in sync with the selection.
For the sake of keeping the changes small, this only introduces the components and their tests. We'll actually use them in a follow-up.
Screenshots or screen recordings
Screenshots taken from !108624 (merged).
| Before | After |
|---|---|
![]() |
![]() |
| With many items selected |
|---|
![]() |
| With long entity names |
|---|
![]() |
How to set up and validate locally
- Checkout
374018-indexing-restrictions-select2(!108624 (merged)). - Navigate to Admin Area > Settings > Advanced Search > Elasticsearch indexing restrictions (http://gdk.test:3000/admin/application_settings/advanced_search#js-elasticsearch-settings)
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 #374018 (closed)



