Univention Bugzilla – Bug 55467
App version pinning
Last modified: 2023-02-01 17:24:17 CET
Customers sometimes want to stop at specific app versions. Currently, this is not possible selectively. Either disable updates for all apps or allow them for all apps. We need a mechanism to point apps to a specific version.
Background: * Requirements and customizations It is not automatically every new app version compatible with the current requirements or customizations. e.g. Nextcloud 24 -> 25 or U@S * Update to a specific version We can install a specific app version, but not update to a specific version. Workaround: * Block app installation by removing variable "repository/app_center/server: appcenter.software-univention.de" Problem: all commands with "univention-app" are broken! * Uninstall app -> install with desired version Problem: automatic app updates must be disabled Problem: you could lose your app configuration
Two new actions: univention-app pin $appid univention-app unpin $appid One idea would be: Simply add a UCRV appcenter/apps/$appid/pinned=true and an install_check.py class MustNotBePinned(SingleRequirement, HardRequirement): def test_upgrade(self, app): ... We should also give a hint in the frontend (umc/js/appcenter/requirements.js)
We should also not allow uninstalling the App. A new action can be created by the new file python/appcenter/actions/pin.py
Implementation of pin/unpin command is: univention-app pin $appid univention-app pin --unpin $appid
15915e8ac1 Bug #55467: Added action allowing to pin and unpin Apps and prohibit update and removal of pinned Apps 9388ebafef Bug #55467: Message added to App Center when trying to update or delete a pinned app 22f1b811c9 Bug #55467: Added advisory YAML MR: https://git.knut.univention.de/univention/ucs/-/merge_requests/630 Package: univention-appcenter Version: 9.0.3-8A~5.0.0.202301261250 Branch: ucs_5.0-0 Scope: errata5.0-2
(In reply to Peter Stoll from comment #6) Some updates: 15915e8ac1 Bug #55467: Added action allowing to pin and unpin Apps and prohibit update and removal of pinned Apps 9388ebafef Bug #55467: Message added to App Center when trying to update or delete a pinned app 22f1b811c9 Bug #55467: Added advisory YAML 184a3a3a54 Bug #55467: Updated advisory YAML 1339e8a85e Bug #55467: Updated advisory YAML d1ee777337 Bug #55467: Wording 1bc176ea5d Bug #55467: Added solution in appcenter if App is pinned Package: univention-appcenter Version: 9.0.3-9A~5.0.0.202301301532 Branch: ucs_5.0-0 Scope: errata5.0-2
Pinning / unpinning: OK UMC error messages: OK YAML: OK
<https://errata.software-univention.de/#/?erratum=5.0x561>