Skip to content

Use static list for dependency list licenses

Brian Williams requested to merge bwill/use-static-list-for-licenses into master

What does this MR do and why?

The current implementation of the licenses list gets all of the unique licenses in the group hierarchy, which potentially means scanning hundreds of thousands of rows in order to find the unique licenses, which is very slow. This change improves the performance by loading the licenses from a static list instead.

Fixes: #438768 (closed)

MR acceptance checklist

Please evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.

Screenshots or screen recordings

Screenshots are required for UI changes, and strongly recommended for all other merge requests.

Before After
Screenshot_2024-01-25_at_9.41.12_AM

How to set up and validate locally

Numbered steps to set up and validate the change are strongly suggested.

  1. For a group which has dependencies, go to <gdk_url>/groups/<group_path>/-/dependencies.
  2. Click in the search field and begin searching by license
  3. Picklist should load quickly, and have a list of all possible licenses.
Edited by Brian Williams

Merge request reports