[15:53:18]
<@chrichri:ween.de> Hey everybody :) ! If I want to add a new setting to an app, how would I handle that during upgrade of the app? Is there a way to ask for new values when upgrading? Or is the only way to integrate the new setting into a setting webgui for the app?
[15:53:48]
<Aleks (he/him/il/lui)> there's no way to ask for new values during upgrade, usually you set the new setting to some default value
[15:54:15]
<Aleks (he/him/il/lui)> cf for example: https://github.com/YunoHost-Apps/nextcloud_ynh/blob/master/scripts/upgrade#L16
[15:56:17]
<@chrichri:ween.de> O.k. - so if any default I could set is not sattisfying I'd need a webgui for the admin to change it after upgrade (if I do not want to expect them to edit some config files), right?
Is there a way to show upgrade messages (or send them via email to admin)? Like e.g. changelog?
[15:57:14]
<Aleks (he/him/il/lui)> if there's no obvious default and you can't really "choose" for the user, then the procedure should be to add a PRE_UPGRADE.md message telling people to manually run `yunohost app setting $appname key -v value`
[16:03:40]
<Aleks (he/him/il/lui)> cf for example https://github.com/YunoHost-Apps/domoticz\_ynh/blob/testing/doc/PRE\_UPGRADE.d/2024.2~ynh1.md