In the id broker setup we set "ucr set ucsschool/username/max_length=50" in the KELVIN container. Now if there is an update for the KELVIN app this setting is lost in the new container (base.conf is not copied during app upgrade). We should add an app setting for ucsschool/username/max_length.
At customers that use the UCS@school import, that setting should be kept equal in both the host and in Kelvin. Another use case for the Distributed Configuration DB.
As an intermediate step, backup the base.conf before app updates and restore it afterwards. Appcenter documentation: https://wiki.univention.de/index.php?title=Docker_Apps/Image_Based&oldid=13408#Upgrading_an_image_based_Docker_App
What I learned: - To actually run the appcenter scripts, We have to adjust https://appcenter-test.software-univention.de/meta-inf/4.4/ucsschool-kelvin-rest-api/ucsschool-kelvin-rest-api_20220706163242.ini DockerScriptRestoreDataAfterSetup = /usr/share/univention-docker-container-mode/restore_data_after_setup_custom DockerScriptStoreData = /usr/share/univention-docker-container-mode/store_data_custom or set it in the Provider Portal (which is what I did). - As far as I understood, the button to enable this is greyed out for released versions. We can of course upload the ini file. This seems a little bit messy which is the reason I chose not to do it. Instead I added a paragraph to the readme update, which will do essentially the same as the `store_script`. The restore will then happen automatically. If you (QA) thinks we should do it, we can change it of course :smile: How did I test this? Before fix univention-app install ucsschool-kelvin-rest-api=1.6.0 univention-app shell ucsschool-kelvin-rest-api sh -c "ucr set test=value" univention-app upgrade ucsschool-kelvin-rest-api # -> 1.7.0 -> test-ucr value not set After fix univention-app install ucsschool-kelvin-rest-api=1.6.0 univention-app shell ucsschool-kelvin-rest-api sh -c "ucr set test=value" univention-app upgrade ucsschool-kelvin-rest-api # -> 1.7.0 -> test-ucr value set This has already been qa't + the changes for 1.5.6 + 1.6.0 have been updated to the production app center. The release for 1.7.0 will be - well - part of 1.7.0.
OK - 1.5.6 modified and released OK - 1.6.0 modified and released OK - 1.7.0 modified
Released with UCS@school Kelvin REST API 1.7.0.