Skip to content

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

Implementation plan

Verification steps

  1. Visit the Group Dependency List JSON endpoint.
  2. Change the component_names[]= query string parameter to search for different component names. .e.g. ?component_names[]=activerecord&component_names[]=actioncable
  3. Verify that the correct results are returned.

image

Edited by mo khan