Add `<group>/-/dependencies/licenses.json` to return list of detected licenses
Why are we doing this work
When a user filters to the list of software licenses on the group level dependency list they need to be able to choose one or more licenses that were detected. This endpoint provides the frontend with a way to provide that list of licenses.
Relevant links
Non-functional requirements
-
Documentation: -
Feature flag: group_level_dependencies_filtering
-
Performance: -
Testing:
Implementation plan
-
Add a new #licenses
action to theGroups::DependenciesController
that returns a JSON response that includes the SPDX ID of all software licenses that were detected. -
Create a service object to fetch and return the list of detected software licenses from any project within the group hierarchy. -
Parse a query string parameter (?search=
) to filter the results by. e.g.MI
should returnMIT
. etc
Verification steps
Edited by mo khan