Fix classification label default behaviour
What does this MR do and why?
As noted in issue #508590 (closed), the behaviour of classification labels currently goes against what we'd expect based on the UI text. This MR adds functionality to ensure that when no value is provided for a classification label, it will use the global value.
References
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
Behaviour with this implemented. When the value has been cleared, it will automatically set it back to the global value.
How to set up and validate locally
- Enable and enforce a classification label via the Admin Area, using a value such as
SECURED. On a new project, the label should be applied. - In Settings > General, modify the Classification label to an 'empty' value by clearing the field. Click
Save changes. - Confirm the value is set back to
SECURED.