Skip to content

3rd-party apps are disabled on upgrade - #14282

Merged
DeepDiver1975 merged 4 commits into
masterfrom
disable-non-shipped-apps-master
Feb 24, 2015
Merged

DeepDiver1975 merged 4 commits into
masterfrom
disable-non-shipped-apps-master

Conversation

@DeepDiver1975

Copy link
Copy Markdown
Contributor

refs #14026

@PVince81 @karlitschek @icewind1991 please review - THX

I'll come up with a second pr to fix this in stable8 as well - as soon as we agree on this approach - THX

Web update:
bildschirmfoto von 2015-02-17 11 58 43

console print out:

$ ./occ upgrade
Turned on maintenance mode
Checked database schema update
Updated database
Disabled 3rd-party app: bookmarks
Disabled 3rd-party app: calendar
Turned off maintenance mode
Update successful

Process finished with exit code 0

@DeepDiver1975 DeepDiver1975 added this to the 8.1-next milestone Feb 17, 2015
@DeepDiver1975 DeepDiver1975 changed the title 3rd-party apps are disabled on upgrade - refs #14026 3rd-party apps are disabled on upgrade Feb 17, 2015
Comment thread lib/private/updater.php Outdated

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Should this be \OC_App with backslash ? Seems the current namespace is OC so it would look for \OC\OC_App here (unless I misunderstand that part)

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.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Then you can remove it below :-O \OC_App::disable($app); line 316

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.

sure - one day

@PVince81

Copy link
Copy Markdown
Contributor

Approach looks fine.

@ghost

ghost commented Feb 17, 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/9605/
Test PASSed.

@icewind1991

Copy link
Copy Markdown
Contributor

What happens if there's a 3rdparty filesystem/user app that could be needed during upgrades

@DeepDiver1975

Copy link
Copy Markdown
Contributor Author

What happens if there's a 3rdparty filesystem/user app that could be needed during upgrades

hmmmm - user backend is indeed a valid thought. We cannot enumerate users if that app is disabled.

👿

shall we disabled these apps after upgrade? This will allow them to be available during upgrade (if necessary) and will not cause issues due to incompatibility.

But what happens if the app code snippets used during upgrade are already incompatible?

@DeepDiver1975

Copy link
Copy Markdown
Contributor Author

@karlitschek @PVince81 @icewind1991 what shall we do here now?

This change needs to be backported to 8.0.1.

@blizzz FYI as this PR collides with #13865

@PVince81

Copy link
Copy Markdown
Contributor

As discussed before, the idea would be to do disable 3rd party apps except the authentication/session ones. Then the auth/session ones shall update first (as per @blizzz's PR).

If someone is using a third party app for auth/session/user management, then either:

  • if we disable these apps, users might not be updated properly => unusable OC
  • if we do not disable them, but they fail => unusable OC

So I think it makes sense to never disable them.

@DeepDiver1975

Copy link
Copy Markdown
Contributor Author

@PVince81 agreed - will add this ....

@DeepDiver1975
DeepDiver1975 force-pushed the disable-non-shipped-apps-master branch from eb08d20 to 025b9f1 Compare February 19, 2015 15:00
@ghost

ghost commented Feb 19, 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/9778/
Test PASSed.

@karlitschek

Copy link
Copy Markdown
Contributor

Yes. I agree too with @PVince81 3rdparty authentication app can still kill upgrade but what else can we do.

@DeepDiver1975
DeepDiver1975 force-pushed the disable-non-shipped-apps-master branch from 025b9f1 to 04f15e5 Compare February 23, 2015 21:01
@DeepDiver1975

Copy link
Copy Markdown
Contributor Author

@karlitschek @PVince81 @icewind1991 merge? THX

@ghost

ghost commented Feb 23, 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/9875/
Test PASSed.

@karlitschek

Copy link
Copy Markdown
Contributor

👍 from my side. @PVince81 What do you think?

@PVince81

Copy link
Copy Markdown
Contributor

Tested upgrading from stable7 to this branch with music app, svg editor enabled.
The apps were disabled successfully.

Then I bumped up the version of the music app, and reenabled it. After reenabling it, the update dialog appeared again, but it re-disabled the app. 👎

We need to distinguish between a "system" upgrade and "apps" upgrade.
If no system upgrade is performed, we should not disable 3rd party apps when an upgrade for those is pending.

@DeepDiver1975

Copy link
Copy Markdown
Contributor Author

Oh - nice catch @PVince81 - I'll have a look - THX

@DeepDiver1975

Copy link
Copy Markdown
Contributor Author

hmm - @PVince81 should we disable apps only on major updates? Or on minor as well?

@PVince81

Copy link
Copy Markdown
Contributor

I'd say only disable 3rd party apps on major updates (aka core update)

@DeepDiver1975
DeepDiver1975 force-pushed the disable-non-shipped-apps-master branch from 04f15e5 to 58cedc0 Compare February 24, 2015 11:52
@DeepDiver1975

Copy link
Copy Markdown
Contributor Author

@PVince81 please have a look - THX

@scrutinizer-notifier

Copy link
Copy Markdown

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

@nickvergessen

Copy link
Copy Markdown
Contributor

@owncloud-bot retest this please

@PVince81

Copy link
Copy Markdown
Contributor

Redid the same test but this time I thrown in LDAP + encryption + gallery in the mix.

After the update I re-enabled the music app and it prompted for app upgrade, which I ran. After that the music app was still enabled with the new version.

👍

I get we still don't have a good way to write unit tests for such changes ? (without needing the refactor the whole thing)

@DeepDiver1975

Copy link
Copy Markdown
Contributor Author

I get we still don't have a good way to write unit tests for such changes ?

yes - this is true for the time being ....

@ghost

ghost commented Feb 24, 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/9896/
Test PASSed.

DeepDiver1975 added a commit that referenced this pull request Feb 24, 2015
@DeepDiver1975
DeepDiver1975 merged commit 7325414 into master Feb 24, 2015
@DeepDiver1975
DeepDiver1975 deleted the disable-non-shipped-apps-master branch February 24, 2015 13:39
@DeepDiver1975

Copy link
Copy Markdown
Contributor Author

@karlitschek we should backport this - THX

@karlitschek

Copy link
Copy Markdown
Contributor

definitely. please backport

@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.

7 participants