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 appstoreenabled check #29256

Merged
merged 2 commits into from
Oct 21, 2021
Merged

Conversation

julien-nc
Copy link
Member

The appstoreenabled check is inconsistent between lib/private/App/AppStore/Fetcher/Fetcher.php and

$params['appstoreEnabled'] = $this->config->getSystemValue('appstoreenabled', true) === true;

So if appstoreenabled is a string, for example, the appstore is considered as enabled in Fetcher.php and the apps are fetched. The app settings page then receives a combined list of local apps and appstore ones.
But as the check is different in AppSettingsController.php, the appstore is considered as disabled there and the category list is not displayed in app settings.

Check is now the same in both places.

This can be backported to stable20, stable21 and stable22.

@julien-nc julien-nc added this to the Nextcloud 23 milestone Oct 15, 2021
@julien-nc julien-nc requested review from a team, nickvergessen, PVince81 and skjnldsv and removed request for a team October 15, 2021 09:20
lib/private/App/AppStore/Fetcher/Fetcher.php Outdated Show resolved Hide resolved
@julien-nc julien-nc force-pushed the fix/noid/harmonize-appstoreenabled-check branch from 70379ab to 50c690b Compare October 18, 2021 09:37
@julien-nc
Copy link
Member Author

@nickvergessen

  • Rebased on master
  • Use getSystemValueBool instead of getSystemValue

It still seems a bit strange that string values are all considered as true but at least checks are now consistent between the fetcher and the controller.

@julien-nc julien-nc force-pushed the fix/noid/harmonize-appstoreenabled-check branch from 50c690b to 8f7dfc7 Compare October 18, 2021 10:19
…sController

Signed-off-by: Julien Veyssier <eneiluj@posteo.net>
@julien-nc julien-nc force-pushed the fix/noid/harmonize-appstoreenabled-check branch from 8f7dfc7 to facb50e Compare October 18, 2021 10:40
Copy link
Contributor

@szaimen szaimen left a comment

Choose a reason for hiding this comment

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

lgtm

@skjnldsv

This comment has been minimized.

@skjnldsv skjnldsv added 2. developing Work in progress and removed 3. to review Waiting for reviews labels Oct 21, 2021
Signed-off-by: Joas Schilling <coding@schilljs.com>
@nickvergessen nickvergessen added 3. to review Waiting for reviews and removed 2. developing Work in progress labels Oct 21, 2021
@nickvergessen
Copy link
Member

Fixed the tests

@skjnldsv skjnldsv added 4. to release Ready to be released and/or waiting for tests to finish and removed 3. to review Waiting for reviews labels Oct 21, 2021
@julien-nc julien-nc merged commit 0bef570 into master Oct 21, 2021
@julien-nc julien-nc deleted the fix/noid/harmonize-appstoreenabled-check branch October 21, 2021 10:42
@julien-nc
Copy link
Member Author

Fixed the tests

@nickvergessen Thanks!

@skjnldsv skjnldsv mentioned this pull request Oct 25, 2021
25 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
4. to release Ready to be released and/or waiting for tests to finish bug feature: apps management
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants