-
-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Run repair steps on uninstall in all cases #5833
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
Conversation
|
@LEDfan, thanks for your PR! By analyzing the history of the files in this pull request, we identified @bartv2, @icewind1991 and @blizzz to be potential reviewers. |
023c01b to
d1fcdc7
Compare
|
BTW it looks like the server/core/Command/App/Enable.php Line 78 in 8d83e23
And another interesting thing is that the |
d1fcdc7 to
f694c6c
Compare
Codecov Report
@@ Coverage Diff @@
## master #5833 +/- ##
============================================
+ Coverage 51.81% 51.88% +0.07%
+ Complexity 25354 25352 -2
============================================
Files 1606 1606
Lines 95077 95070 -7
Branches 1378 1378
============================================
+ Hits 49260 49325 +65
+ Misses 45817 45745 -72
|
Yes, let's get rid of that. Can you add that and check for other usages in the server code?
Maybe that is more something for the Installer class. We should keep the install code separated from the app management.
Good catch, although it has already been removed by a68895e 😉 |
f694c6c to
82ddfa1
Compare
Done, I removed the method because it's a private API. I also removed the |
👍
Looks good and I also didn't found any other apps using it. |
|
Let me rebase and review this one here. |
Signed-off-by: Tobia De Koninck <tobia@ledfan.be>
Signed-off-by: Tobia De Koninck <tobia@ledfan.be>
Signed-off-by: Tobia De Koninck <tobia@ledfan.be>
82ddfa1 to
96a5752
Compare
MorrisJobke
left a comment
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.
Tested and works 👍
|
@nickvergessen @rullzer Please review as this is some crucial cleanup. |
lib/private/App/AppManager.php
Outdated
| } | ||
|
|
||
| // emit disable hook - needed anymore ? | ||
| \OC_Hook::emit('OC_App', 'pre_disable', array('app' => $appId)); |
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.
I'm also fine with removing this, because I couldn't find any reference to this in any app or in the server itself. Also there is a new proper event dispatched just two lines below.
nickvergessen
left a comment
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.
Don't see any issues and +1 for removing the trap (calling appmanager directly skips uninstall repair steps)
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
Fixes #5832
Maybe it's a good idea to mark
\OC_app::disableas deprecated?