Skip to content

Update license compliance extension to use collapsed endpoint

- requested to merge 356337-should-collapse-license-compliance into master

What does this MR do and why?

Describe in detail what your merge request does and why.

Screenshots or screen recordings

Expand Chevron hidden when success status

Screen_Shot_2022-06-01_at_1.15.02_AM

Expand chevron visible when we have content to show

Screen_Shot_2022-06-01_at_1.15.17_AM

How to set up and validate locally

  • In a rails console enable flag Feature.enable(:refactor_license_compliance_extension)
  • Reach out to me for a demo, or attempt steps below
  • Clone the https://gitlab.com/gitlab-examples/security/security-reports project locally
  • Manually trigger the pipeline to run for Master. This can be done by going to the CI/CD -> Pipelines tab on the left nav and then clicking the Run Pipeline button.
  • Create a new MR. I suggest changing something simple like a letter or two in the README.md file. We just need a pipeline to complete and run. The sample project uses test reports to generate the data so doesn't matter what you change just need a MR.
  • Set up Allowed/Denied licenses in https://<localhost>/<group>/<project>/-/licenses#policies
  • Create a new MR
  • See License compliance widget

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 #356337 (closed)

Edited by -

Merge request reports

Loading