Support searching agents based on multiple parameters
MR: Pending <!-- NOTE: For context on MR heading, see: https://handbook.gitlab.com/handbook/engineering/development/dev/create/remote-development/index.html#relationship-of-issues-to-mrs --> ## Description [The proposed UI](https://gitlab.com/gitlab-org/gitlab/-/issues/513370) (see design section) has a search bar functionality that we have decided not to implement as part of the first iteration, see thread: https://gitlab.com/gitlab-org/gitlab/-/issues/536924#note_2478178472. We might need to improve the UX based on user feedback to provide search functionality in the future. This would entail backend changes and frontend changes to support searches ## Backend The current Query and associated finder only filter on `Availability` (mapped/unmapped); we would need to provide input that allows filtering on the following as well(subject to change on more discussion/feedback): 1. Group. 2. Project. 3. Cluster agent status. 4. Cluster agent name. ## Frontend Changes here would center around adding the search bar and using the search autocomplete APIs to support valid parameters that the backend query can use. group search API call (from monitoring browser traffic) : ``` http://gdk.test:3000/api/v4/groups.json?search=gitlab&per_page=20&order_by=similarity ``` Project search API call after group selection (from monitoring browser traffic) : ``` http://gdk.test:3000/api/v4/groups/33/projects.json?search=flig&per_page=20&order_by=similarity&with_shared=false&include_subgroups=true ``` Project search API call (from monitoring browser traffic) : ``` http://gdk.test:3000/api/v4/projects.json?search=flig&per_page=20&simple=true&membership=true&order_by=similarity ``` API endpoints doc: https://docs.gitlab.com/api/api_resources/ <!-- TODO: What kind of issue is this? Please uncomment and include one of the following: /label ~"type::feature" /label ~"type::bug" /label ~"type::maintenance" --> <!-- OPTIONAL: Is this a feature/enhancement? - Please describe the impact this feature/enhancement will have on the user experience and/or the product as a whole. - Provide a user story to illustrate the use case for this feature/enhancement. Include examples to help communicate the intended functionality. --> <!-- OPTIONAL: Is this a bug? Please uncomment and include the following: - **Current behavior:** - **Expected behavior:** - **Steps to reproduce:** - **Additional information:** please include VSCode version, browser dev tool logs, etc that might be helpful to debug the issue! --> ## Acceptance criteria - [ ] Users can search for organization cluster agent mappings with the filters passed as arguments ## Implementation plan <!-- NOTE: Feel free to expand with more sections and headers as needed --> <!-- DO NOT TOUCH BELOW -->
issue