Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(apps-store): Remove apps from force-enabled state when uninstalled #48855

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

susnux
Copy link
Contributor

@susnux susnux commented Oct 23, 2024

Summary

If an app is force-enabled and then uninstalled the force-enabled state was kept. This is now removed, so when the app should be re-installed the compatibility should be reevaluated.

Checklist

@susnux susnux added this to the Nextcloud 31 milestone Oct 23, 2024
@susnux susnux requested review from a team, icewind1991, nfebe, sorbaugh and artonge and removed request for a team October 23, 2024 11:41
@susnux susnux force-pushed the fix/app-store-remove-force-enable branch from d7fcbc2 to cb45a3b Compare October 23, 2024 13:27
@susnux susnux requested review from provokateurin and come-nc and removed request for icewind1991 and sorbaugh October 23, 2024 15:42
@susnux susnux force-pushed the fix/app-store-remove-force-enable branch from cb45a3b to 430bdc7 Compare October 29, 2024 12:44
@susnux susnux force-pushed the fix/app-store-remove-force-enable branch from 430bdc7 to 64bd769 Compare November 11, 2024 20:15
@susnux susnux requested a review from come-nc November 11, 2024 20:15
@susnux susnux force-pushed the fix/app-store-remove-force-enable branch from 64bd769 to f185c67 Compare November 11, 2024 20:51
If an app is force-enabled and then uninstalled the force-enabled state was kept.
This is now removed, so when the app should be re-installed the compatibility should be reevaluated.

Signed-off-by: Ferdinand Thiessen <[email protected]>
@susnux susnux force-pushed the fix/app-store-remove-force-enable branch from f185c67 to 1cf2bbc Compare November 11, 2024 20:52
Comment on lines +595 to +598
$appManager = $this->appManager;
// If this app was force enabled, remove the force-enabled-state
$appManager->removeOverwriteNextcloudRequirement($appId);
$appManager->clearAppsCache();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
$appManager = $this->appManager;
// If this app was force enabled, remove the force-enabled-state
$appManager->removeOverwriteNextcloudRequirement($appId);
$appManager->clearAppsCache();
// If this app was force enabled, remove the force-enabled-state
$this->appManager->removeOverwriteNextcloudRequirement($appId);
$this->appManager->clearAppsCache();

Comment on lines +636 to +640
/** @var \OC\App\AppManager $appManager */
$appManager = $this->appManager;

$appId = $appManager->cleanAppId($appId);
$appManager->overwriteNextcloudRequirement($appId);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
/** @var \OC\App\AppManager $appManager */
$appManager = $this->appManager;
$appId = $appManager->cleanAppId($appId);
$appManager->overwriteNextcloudRequirement($appId);
$appId = $this->appManager->cleanAppId($appId);
$this->appManager->overwriteNextcloudRequirement($appId);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants