Skip to content

Add "license" filter option to group-level dependencies app

What does this MR do and why?

Adds the "license" search-option to the group-level dependency report.

Note: The backend endpoints are not yet ready, so this can't be fully tested end-to-end yet.

Screenshots or screen recordings

Before After
Screenshot_2023-10-02_at_11.07.05_am Screenshot_2023-10-02_at_11.03.09_am

How to set up and validate locally

  1. Enable the related feature flags echo "Feature.enable(:group_level_dependencies_filtering)" | rails c
  2. Apply the following patch: licenses.patch to add the needed endpoint with mock data
  3. Go to a group's dependency list: "Secure" -> "Dependency List"
  4. Verify that when focusing the "Search of filter dependencies ..." input the "License" option appears
  5. Verify that licenses can be selected/deselected
  6. Verify that when the filters get submitted, the correct request is made - for example -/dependencies.json?sort_by=packager&sort=asc&page=1&filter=all&license[]=Apache-2.0&license[]=MIT

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Related to #422355 (closed)

Edited by David Pisek

Merge request reports