Better handling for template changes needed
Is your feature request related to a problem? Please describe. When parameters are not needed anymore in a configuration template, removing them will lead to errors on startup after update. For Users still using YAML config, this is enough, as they can then just remove these from the YAML. Users using the GUI config are not able to solve this on their own (or only by editing the db manually). The problematic config part is even not included in the YAML generated from the db when using 'Need help?' -> 'Report a problem'. To avoid this, currently developers have to mark parameters as deprecated instead of removing them.
Describe the solution you'd like
- YAML generated from db for support should contain all config parts, also the ones producing errors
- Parameters that where removed, should not break parsing/rendering the template. They only should produce Error-Messages in the Log and should be removed automatically for GUI-Config, when the config part gets manually saved the next time.
- Deprecated Parameters should produce Warn-Messages in the Log and should be removed automatically for GUI-Config, when the config part gets manually saved the next time.
Additional context see #31291 and #31301
Proposal to extend no.2 and no3: add a sentence in the log file recommending the user to open the GUI-config and save so that obsolete parameters will be wiped and the user can help to keep the config clean.
@andig the idea of this was to fix it in a generic way, not only for these two parameters.
@andig #31962 showed again, that this should be fixed in a generic way -> IMO this should be reopened!
If you have any idea how to do this please open PR. I donβt π’