Extend License Compliance entity for Pipelines and MR view

Currently the License Compliance entity returns data of this format:

The Frontend needs more information to be able to render this, currently we match the data from the report and the Managed License API (License approval status). https://docs.gitlab.com/ee/api/managed_licenses.html

It would be good if the Backend could combine both in the new Backend endpoints introduced with https://gitlab.com/gitlab-org/gitlab-ee/merge_requests/8032 and https://gitlab.com/gitlab-org/gitlab-ee/merge_requests/14723:

Current Schema

{
  name: String,
  dependencies: Array[String],
  count: Integer,
};

Proposed Schema

{
  id: Integer || null, // ID from https://docs.gitlab.com/ee/api/managed_licenses.html. ID null for undecided licenses
  name: String,
  dependencies: Array[String],
  count: Integer,
  url: String || null, // Link to license link
  // Unclassified is for licenses where we haven't made a decision yet:
  status: "approved" || "blacklisted" || "unclassified", 
};

At the moment the Frontend sorts the found licenses alphabetically by name.

Frontend logic at the moment: https://gitlab.com/gitlab-org/gitlab-ee/blob/bd2a47abad79edd27ff42624/ee/app/assets/javascripts/vue_shared/license_management/store/utils.js#L80-125

Edited by Lukas Eipert