Add `&component_names[]=` query string parameter to filter by one or more component names from `<group>/-/dependencies.json`
Why are we doing this work
Adding a way to filter the list of components on the group level dependency list will make it easier to search for a specific component that may require immediate attention due to a security event.
The frontend will be able to filter by multiple component names by appending a component_names[]=
query string parameter. e.g. http://gdk.test:3000/groups/gitlab-examples/-/dependencies.json?component_names[]=activerecord&component_names[]=activesupport
.
Relevant links
Non-functional requirements
-
Documentation: -
Feature flag: group_level_dependencies_filtering -
Performance: -
Testing:
Implementation plan
-
Parse the component_names[]
query string parameter in the controller and forward it to the service layer.
Verification steps
- Visit the Group Dependency List JSON endpoint.
- Change the
component_names[]=
query string parameter to search for different component names. .e.g.?component_names[]=activerecord&component_names[]=actioncable
- Verify that the correct results are returned.
Edited by mo khan