Skip to content

[stable8] Fix totally broken AppStore code… - #14719

Merged
karlitschek merged 2 commits into
stable8from
fix-totally-broken-appstore
Mar 5, 2015
Merged

karlitschek merged 2 commits into
stable8from
fix-totally-broken-appstore

Conversation

@LukasReschke

Copy link
Copy Markdown
Contributor

As it turned out the AppStore code was completely broken when it came from apps delivered from the appstore, this meant:

  1. You could not disable and then re-enable an application that was installed from the AppStore. It simply failed hard.
  2. You could not disable apps from the categories but only from the "Activated" page
  3. It did not show the activation state from any category page

This code is completely static and thus testing it is impossible. We really have to stop with "let's add yet another feature in already existing static code". Such stuff has to get refactored first.

That said, this code works from what I can say when clicking around in the AppStore page GUI. However, it may easily be that it does not work with updates or whatsever as I have no chance to test that since the AppStore code is not open-source and it is impossible to write unit-tests for that.

Fixes #14711


Disclaimer: All the fame belongs to @PVince81 and @nickvergessen . I only fixed the bug, they pointed out the actual problem… So this goes to their 🍺-count.

As it turned out the AppStore code was completely broken when it came from apps delivered from the appstore, this meant:

1. You could not disable and then re-enable an application that was installed from the AppStore. It simply failed hard.
2. You could not disable apps from the categories but only from the "Activated" page
3. It did not show the activation state from any category page

This code is completely static and thus testing it is impossible. We really have to stop with "let's add yet another feature in already existing static code". Such stuff has to get refactored first.

That said, this code works from what I can say when clicking around in the AppStore page GUI. However, it may easily be that it does not work with updates or whatsever as I have no chance to test that since the AppStore code is not open-source and it is impossible to write unit-tests for that.

Fixes #14711
Comment thread lib/private/allconfig.php

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Remark: No idea if that works on OCI or not. Let's see…

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

(has unit-tests below)

@PVince81 PVince81 changed the title Fix totally broken AppStore code… [stable8] Fix totally broken AppStore code… Mar 5, 2015
@PVince81

PVince81 commented Mar 5, 2015

Copy link
Copy Markdown
Contributor

@PVince81 PVince81 added this to the 8.0.1-current-maintenance milestone Mar 5, 2015
@PVince81

PVince81 commented Mar 5, 2015

Copy link
Copy Markdown
Contributor

Steps I tried:

  1. Setup OC 8.0.0
  2. Install calendar/contact from the apps page (they will be downloaded to "apps")
  3. Switch to this branch and run the upgrade
  4. Go to the "Recommended" page and re-enable the apps
  5. Apps are enabled properly, no download.
  6. Now disable the apps again (this is also covered by this PR)
  7. Refresh the page
  8. Enable again

Works.

@ghost

ghost commented Mar 5, 2015

Copy link
Copy Markdown

Refer to this link for build results (access rights to CI server needed):
https://ci.owncloud.org//job/pull-request-analyser-ng-simple/10237/
Test PASSed.

@PVince81

PVince81 commented Mar 5, 2015

Copy link
Copy Markdown
Contributor

👍

@karlitschek

Copy link
Copy Markdown
Contributor

looks fine and seems to be the right fix. 👍

karlitschek added a commit that referenced this pull request Mar 5, 2015
[stable8] Fix totally broken AppStore code…
@karlitschek
karlitschek merged commit a7fc0fc into stable8 Mar 5, 2015
@karlitschek
karlitschek deleted the fix-totally-broken-appstore branch March 5, 2015 21:06
@LukasReschke

Copy link
Copy Markdown
Contributor Author

Found some way to not pollute the public API. Refining PR coming…

@LukasReschke

Copy link
Copy Markdown
Contributor Author

Removes the public API parts: #14721

@LukasReschke

Copy link
Copy Markdown
Contributor Author

This will also fix OCI which is broken atm due to the awesome fact that the PRs are not tested against OCI…

@lock lock Bot locked as resolved and limited conversation to collaborators Aug 13, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants