-
-
Notifications
You must be signed in to change notification settings - Fork 39
Description
Feature request
Summary
Add an option that makes it impossible to edit configs eligible for exporting from the Admin panel.
Why is it needed?
I'm using the config-sync plugin as outlined in the Workflow section of its documentation. I.e. I alter the configs locally, check the changes into git, and then import them on remote (staging/prod) environments.
Since my deploys to remote envs are fully automated I'm taking advantage of the importOnBootstrap option to import the changes automatically with every deploy. This causes any changes in the DB to be overwritten. This is ultimately correct, as the developer's (and hence the imported) config version should be the source of truth. However it can still cause confusion and/or trouble as users using the Admin panel may not know/understand their changes will disappear with the next deploy.
Suggested solution(s)
The optimal solution is to have an option in the plugin's config that, when set to true, prevents any writes to configs eligible for exporting. This option can then be set depending on the environment.
Indicating that a config is locked in the Admin Panel GUI would be very nice, but simply returning an error after submit would work too, IMO.