Add denied licenses bool to widget info
What does this MR do and why?
Add field to indicate to {project, namespace}-/merge_requests/{id}/license_scanning_reports_collapsed
endpoint if denied licenses are found. Note: this endpoint isn't used yet in or MR widget, it's needed for the License Compliance MR widget migration to new components &7763 (closed)
Issue #362635 (closed)
How to test locally:
- Create a project, and enable the License compliance feature
- In Security&Compliance -> License compliance -> Policies deny one license (MIT for example)
- Create MR where a component with MIT license is added to the codebase.
- When license scanning is finished on MR, observe the response of GET
{host}{project, namespace}-/merge_requests/{id}/license_scanning_reports_collapsed
- Observe field
has_denied_licenses
added to the response.
Screenshots or screen recordings
These are strongly recommended to assist reviewers and reduce the time to merge your change.
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 #362635 (closed)
Edited by Tetiana Chupryna