Skip to content

Add \OC\App\Manager to handle enabling/disabling apps - #12031

Merged
icewind1991 merged 1 commit into
masterfrom
app-manager
Nov 17, 2014
Merged

icewind1991 merged 1 commit into
masterfrom
app-manager

Conversation

@icewind1991

Copy link
Copy Markdown
Contributor

Add a proper public interface for enabling/disabling apps.

I would like to expend this in the future and refactor all off OC_App in a proper public interface later.

cc @DeepDiver1975 @PVince81

@PVince81

PVince81 commented Nov 7, 2014

Copy link
Copy Markdown
Contributor

Do we also need getEnabledApps() ?
Do you intend to replace the old OC_App class ?

If I understand well this PR is only the public layer for it ?

@icewind1991

Copy link
Copy Markdown
Contributor Author

Do we also need getEnabledApps() ?
Do you intend to replace the old OC_App class ?

"Yes, but not in this PR" for both, for getEnabledApps I would like to return an \OC\App\App object or something similar, which requires a bit more work.

@ghost

ghost commented Nov 7, 2014

Copy link
Copy Markdown

🚀 Test PASSed. 🚀
Refer to this link for build results (access rights to CI server needed):
https://ci.owncloud.org//job/pull-request-analyser-ng-simple/2377/
🚀 Test PASSed. 🚀

Comment thread lib/public/app/imanager.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 we still call it IAppsManager ?
I'm worried that we'll have a thousand IManager classes all over the place but with different namespaces... easy to be confused or trigger unwanted frustration.

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.

Was wondering the same while making it originally, will rename

@PVince81

Copy link
Copy Markdown
Contributor

Can you raise an issue or WIP PR for the second part ? (replacing OC_App and the duplicate code) I just want to make sure it doesn't get forgotten. 😄

Comment thread lib/private/app/manager.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.

This duplicates the logic from OC_App::getEnabledApps(), expecting this to disappear in your follow up PR.

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.

Yes OC_App::getEnabledApps() will reuse the logic from here

@PVince81

Copy link
Copy Markdown
Contributor

Code looks good, just a bit worried about all the different cases we had to cover, like:

  • session app needs to be loaded (ex: LDAP) before we get access to the user's group
  • incognito move when reading enabled apps / apps enabled for groups from public.php

Kudos for the thorough unit tests.

@scrutinizer-notifier

Copy link
Copy Markdown

The inspection completed: 23 new issues, 28 updated code elements

@ghost

ghost commented Nov 10, 2014

Copy link
Copy Markdown

🚀 Test PASSed. 🚀
Refer to this link for build results (access rights to CI server needed):
https://ci.owncloud.org//job/pull-request-analyser-ng-simple/2430/
🚀 Test PASSed. 🚀

@PVince81

Copy link
Copy Markdown
Contributor

Please raise a ticket for the next task, then this is good to go.

Someone else to review ? @th3fallen @LukasReschke

@LukasReschke

Copy link
Copy Markdown
Contributor

I will review this later. Currently busy with another task.

@georgehrke

Copy link
Copy Markdown
Contributor

looks good to me 👍

@icewind1991 icewind1991 mentioned this pull request Nov 17, 2014
1 of 5 tasks
@icewind1991

Copy link
Copy Markdown
Contributor Author

Raised #12230 to keep track of the overall progress, counting

Please raise a ticket for the next task, then this is good to go.

As a 👍, merging

icewind1991 added a commit that referenced this pull request Nov 17, 2014
Add \OC\App\Manager to handle enabling/disabling apps
@icewind1991
icewind1991 merged commit 36528c6 into master Nov 17, 2014
@icewind1991
icewind1991 deleted the app-manager branch November 17, 2014 14:49
@PVince81

Copy link
Copy Markdown
Contributor

Thanks for the ticket, nice overview!

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants