Suggested Solution - Settings for auto-fix - backend
This is a sub-issue for #216026 (closed)
We need to collect and save User preference for auto-fix solutions.
Implementation plan
- Create an API endpoint (
Projects::Security::ConfigurationController#auto_fix
) to toggle the new project settingAutomatically create MRs
for different report types.
POST namespace/project/-/security/configuration/auto_fix
params
{
feature: String, ['container_scanning', 'dependency_scanning', 'all']
enable: Boolean
}
- Those settings should be enabled by default.
Settings (ConfigurationPresenter#to_h
) hash will include a new key:
{
"auto_fix_enabled": {
"dependency_scanning": Boolean,
"container_scanning": Boolean
},
"auto_fix_user_path": String
}
Edited by Will Meek