Skip to content

Fix totally broken AppStore code... - #14722

Merged
LukasReschke merged 1 commit into
masterfrom
master-14711
Mar 6, 2015
Merged

LukasReschke merged 1 commit into
masterfrom
master-14711

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

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
@LukasReschke LukasReschke added this to the 8.1-current milestone Mar 5, 2015
@LukasReschke

Copy link
Copy Markdown
Contributor Author

@PVince81 @nickvergessen THX.

@LukasReschke

Copy link
Copy Markdown
Contributor Author

To test this you probably need to decrement the ownCloud version to 8.0.0 in version.php

@scrutinizer-notifier

Copy link
Copy Markdown

The inspection completed: 2 new issues, 2 updated code elements

@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/10241/
Test PASSed.

@PVince81

PVince81 commented Mar 6, 2015

Copy link
Copy Markdown
Contributor

👍

Tested as follows:

  1. Checkout 8.0.0
  2. Install contacts from apps page (downloaded from app store)
  3. Upgrade to 8.0.1, run the upgrade
  4. Go to apps page, click "Recommended", see empty list
  5. Switch version.php to 8.0.0 to make it download a list
  6. Go back to apps page, enable "Contacts" app

@karlitschek

Copy link
Copy Markdown
Contributor

👍

LukasReschke added a commit that referenced this pull request Mar 6, 2015
Fix totally broken AppStore code...
@LukasReschke
LukasReschke merged commit 60c507c into master Mar 6, 2015
@LukasReschke
LukasReschke deleted the master-14711 branch March 6, 2015 17:52
@lock lock Bot locked as resolved and limited conversation to collaborators Aug 11, 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.

install an app if directory is still there.

5 participants