-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Refactor app loading #36591
Refactor app loading #36591
Conversation
This is not bringing the expected performance boost, but it does cleanup things and move away from legacy OC_App, so I think it’s still worth to be merged. |
Clean code > fast code 😉 |
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.
Looks good
Nit: clean up the git history. Either in the three steps described in the PR or one atomic change. Future bisectors will thank you :) |
99d9f22
to
ecb3c8b
Compare
Squashed and rebased on master |
Conflicts ;) |
😞 These are not easy to fix, the loadApp method modifications from @icewind1991 about event logging need to be transposed in the appmanager instead |
@come-nc would you mind having another look at this and fixing the conflicts and tests? Thanks a lot! :) |
Signed-off-by: Côme Chilliet <[email protected]>
Signed-off-by: Côme Chilliet <[email protected]>
Signed-off-by: Côme Chilliet <[email protected]>
Signed-off-by: Côme Chilliet <[email protected]>
Signed-off-by: Côme Chilliet <[email protected]>
Signed-off-by: Côme Chilliet <[email protected]>
Signed-off-by: Côme Chilliet <[email protected]>
Signed-off-by: Côme Chilliet <[email protected]>
ecb3c8b
to
13c71ed
Compare
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.
Please document in #37039
|
||
/** | ||
* Check if an app is of a specific type | ||
* @since 26.0.0 |
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.
* @since 26.0.0 | |
* @since 27.0.0 |
* exists. | ||
* | ||
* if $types is set to non-empty array, only apps of those types will be loaded | ||
* @since 26.0.0 |
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.
* @since 26.0.0 | |
* @since 27.0.0 |
/** | ||
* Check if an app is loaded | ||
* @param string $app app id | ||
* @since 26.0.0 |
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.
* @since 26.0.0 | |
* @since 27.0.0 |
/** | ||
* Load an app, if not already loaded | ||
* @param string $app app id | ||
* @since 26.0.0 |
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.
* @since 26.0.0 | |
* @since 27.0.0 |
/** | ||
* check if an app is of a specific type | ||
* | ||
* @param string $app | ||
* @param array $types | ||
* @return bool | ||
* @deprecated 26.0.0 use IAppManager::isType |
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.
* @deprecated 26.0.0 use IAppManager::isType | |
* @deprecated 27.0.0 use IAppManager::isType |
} | ||
|
||
/** | ||
* load a single app | ||
* | ||
* @param string $app | ||
* @throws Exception | ||
* @deprecated 26.0.0 use IAppManager::loadApp |
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.
27 (and for the others too)
TODO
Checklist