Uh oh!
There was an error while loading. Please reload this page.
feat(updater): hide overwrites from disabled apps list on upgrade - #29988
Conversation
6867b9e to
9a86907Compare9a86907 to
9dc53c3Compare9dc53c3 to
4d909a3Compareszaimen
commented
Jan 27, 2022
Hiding app overwrite on minor updates is fine, imo. |
This actually makes sense. Hmm, this would need to be done as an additional migration step, I guess? The array would then not be updated yet when this code runs, so we'd need to additionally check for a major upgrade and then change this code like: if ($isMajorUpgrade || !in_array($appInfo['name'], $incompatibleOverwrites)) {with |
4d909a3 to
4744ce8Compare4744ce8 to
a5e8fb3Compareskjnldsv
commented
Apr 12, 2022
This is very important, can you raise that today at the server call @szaimen ? :) |
szaimen
commented
Apr 12, 2022
I can try :) |
a5e8fb3 to
d9c5524Compared9c5524 to
cf76077Compareec05b2a to
4ecc956Compare| }); | ||
| $updater->listen('\OC\Updater', 'incompatibleAppDisabled', function ($app) use ($output) { | ||
| $output->writeln('<comment>Disabled incompatible app: ' . $app . '</comment>'); | ||
| $updater->listen('\OC\Updater', 'incompatibleAppDisabled', function ($app) use ($output, &$incompatibleOverwrites) { |
Check notice
Code scanning / Psalm
DeprecatedMethod
| }); | ||
| $updater->listen('\OC\Updater', 'incompatibleAppDisabled', function ($app) use ($output) { | ||
| $output->writeln('<comment>Disabled incompatible app: ' . $app . '</comment>'); | ||
| $updater->listen('\OC\Updater', 'incompatibleAppDisabled', function ($app) use ($output, &$incompatibleOverwrites) { |
Check notice
Code scanning / Psalm
MissingClosureParamType
| }); | ||
| $updater->listen('\OC\Updater', 'incompatibleAppDisabled', function ($app) use (&$incompatibleApps) { | ||
| $incompatibleApps[] = $app; | ||
| $updater->listen('\OC\Updater', 'incompatibleAppDisabled', function ($app) use (&$incompatibleApps, &$incompatibleOverwrites) { |
Check notice
Code scanning / Psalm
DeprecatedMethod
| }); | ||
| $updater->listen('\OC\Updater', 'incompatibleAppDisabled', function ($app) use (&$incompatibleApps) { | ||
| $incompatibleApps[] = $app; | ||
| $updater->listen('\OC\Updater', 'incompatibleAppDisabled', function ($app) use (&$incompatibleApps, &$incompatibleOverwrites) { |
Check notice
Code scanning / Psalm
MissingClosureParamType
4ecc956 to
d98e29aCompared98e29a to
2d5a6cfCompare2d5a6cf to
ab6c32eCompareMichaIng
commented
Feb 27, 2024
Any idea what "Conventional Commits" does not like about the commits text? I added type and scope, so that should be fine: https://www.conventionalcommits.org/en/v1.0.0/ Probably something for the |
skjnldsv
commented
Feb 27, 2024
|
Ah, it says "types other than This PR is not really a (new) feature, I'd say, but there is no better matching type indeed 🙂. |
If an incompatible app is enabled manually, it is added to the "app_install_overwrite" array in config.php. Nextcloud upgrades won't disable any app in this array, but they were still shown on the upgrade page and logs as being disabled. This commit assures that only apps which are really disabled, i.e. which are not in the "app_install_overwrite" array, are shown and logged as disabled during upgrades. Signed-off-by: MichaIng <micha@dietpi.com>
ab6c32e to
7b137ddCompare
If an incompatible app is enabled manually, it is added to the
app_install_overwritearray inconfig.php. Nextcloud upgrades won't disable any app in this array, but they were still shown on the upgrade page as being disabled.This commit assures that only apps are shown as "These incompatible apps will be disabled:" which are really disabled, i.e. which are not in the
app_install_overwritearray.