Skip to content

Add denied licenses bool to widget info

Tetiana Chupryna requested to merge 362635-denied-licenses-to-widget into master

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:

  1. Create a project, and enable the License compliance feature
  2. In Security&Compliance -> License compliance -> Policies deny one license (MIT for example)
  3. Create MR where a component with MIT license is added to the codebase.
  4. When license scanning is finished on MR, observe the response of GET {host}{project, namespace}-/merge_requests/{id}/license_scanning_reports_collapsed
  5. 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.

Related to #362635 (closed)

Edited by Tetiana Chupryna

Merge request reports