Update license classification names in merge request UI
UPDATE: Moved details to #14061 (closed), since these items need to be completed at the same time.
Problem
License compliance classification names have changed, per this issue: #12937 (closed). In %12.5 we are updating/adding the license management/policy section #14061 (closed), which will also update the new classification names in that section. However, the classification names need to be updated in the UI seen in the MR widget.
Solution
Update license names that are seen in the MR. This issue is closely related to #12530 (closed)
| Current | New |
|---|---|
![]() |
![]() |
![]() |
![]() |
Classification names that require change:
- Uncategorized, newly detected or admin has not selected classification
- Approve => Allowed, admin has classified license as acceptable
- Approve => Allow, used in the call-to-action seen in the MR (admin view) to classify license as Allowed
- Blacklist => Denied, project participant views this classification when admin classified license as not allowed
- Blacklist => Deny, used in the call-to-action seen in the MR (admin view) to classify license as unacceptable
Proposed Backend Tasks
These tasks need to be split off as a sub-issue when work begins on them.
-
Rename approval_statuscolumn toclassification. -
Rename blacklistedenum name todenied. -
Rename approvedenum name toallowed.
The following are non-essential tasks but are recommended for maintaining consistency and for maintaining a ubiquitous language.
-
Add classificationattribute toManagedLicenseEntity. -
Deprecate approval_statusattribute fromManagedLicenseEntity. -
Update API documentation for JSON entity changes. doc/api/managed_licenses.md. -
Add classificationto list of permitted params inManagedLicensesController. -
Deprecate approval_statusfrom permitted params inManagedLicensesController. -
Add classificationparameter toee/lib/api/managed_licenses. -
Deprecate approval_statusparameter fromee/lib/api/managed_licenses. -
Add feature flag to toggle between approval_statusandclassificationat API boundaries. -
Add spdx_idattribute to JSON entities. (Need to confirm which JSON serializers)
Edited by Kyle Mann



