Skip to content

Fix upgrade process when apps enabled for specific groups - #10818

Merged
LukasReschke merged 3 commits into
masterfrom
enableappforgroupfix
Sep 4, 2014
Merged

LukasReschke merged 3 commits into
masterfrom
enableappforgroupfix

Conversation

@PVince81

@PVince81 PVince81 commented Sep 2, 2014

Copy link
Copy Markdown
Contributor

Fix issue where the currently logged user was causing side-effects when
upgrading.
Now setting incognito mode (no user) on update to make sure the whole
apps list is taken into account with getEnabledApps() or isEnabled().

Fixes #10762
Fixes #10650

TODO:

  • unit test for getEnabledApps()
  • unit test for needsUpgrade()
  • acceptance test (if possible) to verify whether an app enabled with group correctly appears

Fix issue where the currently logged user was causing side-effects when
upgrading.
Now setting incognito mode (no user) on update to make sure the whole
apps list is taken into account with getEnabledApps() or isEnabled().
@PVince81
PVince81 force-pushed the enableappforgroupfix branch from 47ea18c to e05b956 Compare September 2, 2014 15:17
@PVince81

PVince81 commented Sep 2, 2014

Copy link
Copy Markdown
Contributor Author

I've added unit tests for getEnabledApps().

@PVince81

PVince81 commented Sep 2, 2014

Copy link
Copy Markdown
Contributor Author

@DeepDiver1975 Jenkins dead?

@ghost

ghost commented Sep 2, 2014

Copy link
Copy Markdown

@ghost

ghost commented Sep 2, 2014

Copy link
Copy Markdown

@ghost

ghost commented Sep 2, 2014

Copy link
Copy Markdown

@scrutinizer-notifier

Copy link
Copy Markdown

A new inspection was created.

@ghost

ghost commented Sep 3, 2014

Copy link
Copy Markdown

@PVince81

PVince81 commented Sep 3, 2014

Copy link
Copy Markdown
Contributor Author

Acceptance test submitted separately: #10844

@PVince81

PVince81 commented Sep 3, 2014

Copy link
Copy Markdown
Contributor Author

@icewind1991 @DeepDiver1975 @th3fallen please review

@icewind1991

Copy link
Copy Markdown
Contributor

Looks good 👍

@PVince81

PVince81 commented Sep 4, 2014

Copy link
Copy Markdown
Contributor Author

@LukasReschke up for a review ? 😉

@LukasReschke

Copy link
Copy Markdown
Contributor

👍

LukasReschke added a commit that referenced this pull request Sep 4, 2014
Fix upgrade process when apps enabled for specific groups
@LukasReschke
LukasReschke merged commit 1a7df33 into master Sep 4, 2014
@LukasReschke
LukasReschke deleted the enableappforgroupfix branch September 4, 2014 11:56
@LukasReschke

Copy link
Copy Markdown
Contributor

This issue was reported against stable7 - backport necessary @PVince81?

@PVince81

PVince81 commented Sep 4, 2014

Copy link
Copy Markdown
Contributor Author

@karlitschek backport to stable7 ?
This an important regression, we need it. Else "enable apps for groups" will not work and update will break in such cases.

@karlitschek

Copy link
Copy Markdown
Contributor

Yes. Please backport. This is important

@PVince81

PVince81 commented Sep 4, 2014

Copy link
Copy Markdown
Contributor Author

On it.

@PVince81

PVince81 commented Sep 4, 2014

Copy link
Copy Markdown
Contributor Author

Backported to stable7 in order:
81c4043
28e1480
f268eee

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

Projects

None yet

5 participants