-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Pass an additional parameter on the core update #32491
Conversation
Codecov Report
@@ Coverage Diff @@
## master #32491 +/- ##
============================================
- Coverage 64.22% 63.48% -0.75%
- Complexity 18269 18274 +5
============================================
Files 1193 1193
Lines 69077 69078 +1
Branches 1277 1277
============================================
- Hits 44364 43852 -512
- Misses 24341 24854 +513
Partials 372 372
Continue to review full report at Codecov.
|
Documentation relevant! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code looks good. Please add unit test for the event
@PVince81 this part is still under development. |
89dc3ef
to
9715514
Compare
@PVince81 rebased, squashed, added test |
11efcb0
to
b5c82d0
Compare
@ownclouders rebase |
Hey! I'm GitMate.io! This pull request is being rebased automatically. Please DO NOT push while rebase is in progress or your changes would be lost permanently |
b5c82d0
to
ca0a8c7
Compare
Automated rebase with GitMate.io was successful! 🎉 |
9da1e75
to
cfa6f19
Compare
$updater = new Updater( | ||
$this->config, | ||
\OC::$server->getIntegrityCodeChecker(), | ||
$this->logger | ||
); | ||
|
||
if ($input->getOption('major')) { | ||
$updater->setForceMajorUpgrade(true); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
as discussed 👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍 see comment
* Check if we have empty app folders or incompatible apps enabled | ||
*/ | ||
private function checkAppsCompatibility() { | ||
$dispatcher = \OC::$server->getEventDispatcher(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
not injectable I guess ? I seem to remember the potential for infinite loops
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
TBH, I haven't checked the possibility as I found EventDispatcher already used 3 times like this in this class.
please backport |
Stable10: #33641 |
Description
pass the additional argument that shows whether major core update in progress
Related Issue
Motivation and Context
Minor ownCloud upgrades should not trigger minor app updates
How Has This Been Tested?
Types of changes
Checklist:
Open tasks:
--major
CLI option into the repair step