Connect options helper in container expiration settings
What does this MR do?
In the container registry expiration settings this MR:
- wires the options helper to generate the options for the input select
- disable the form elements if the toggle
enabled
is set to false - provide a default value for the select form elements when no value is specified from the user
This MR picks up the work after !21240 (merged) and continues the work by conecting frontend with backend
Please see #15398 (closed) for the bird eye view issue and &2270 (closed) for the epic containing all the work around this feature
Screenshots
Screencapture
Caveats
- the api is not yet returning the
default
property in the options list, the screenshot are taken by patching the backend manually - saving and retrieving the value from the API is not yet functional (if the API is updated while this MR is still being worked on it will be added )
Does this MR meet the acceptance criteria?
Conformity
- [-] Changelog entry
-
Documentation (if required) -
Code review guidelines -
Merge request performance guidelines -
Style guides -
Database guides -
Separation of EE specific content
Availability and Testing
-
Review and add/update tests for this feature/bug. Consider all test levels. See the Test Planning Process. -
Tested in all supported browsers
Security
If this MR contains changes to processing or storing of credentials or tokens, authorization and authentication methods and other items described in the security review guidelines:
- [-] Label as security and @ mention
@gitlab-com/gl-security/appsec
- [-] The MR includes necessary changes to maintain consistency between UI, API, email, or other methods
- [-] Security reports checked/validated by a reviewer from the AppSec team
part of #15398 (closed)
Edited by Nicolò Maria Mezzopera