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 |
---|---|
![]() |
![]() |
How to set up and validate locally
- Enable the related feature flags
echo "Feature.enable(:group_level_dependencies_filtering)" | rails c
- Apply the following patch: licenses.patch to add the needed endpoint with mock data
- Go to a group's dependency list: "Secure" -> "Dependency List"
- Verify that when focusing the "Search of filter dependencies ..." input the "License" option appears
- Verify that licenses can be selected/deselected
- 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.
-
I have evaluated the MR acceptance checklist for this MR.
Related to #422355 (closed)
Edited by David Pisek