-
-
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
feat(profile): Add public interface for profile manager so apps can check config #41055
Conversation
…heck config Signed-off-by: Joas Schilling <coding@schilljs.com>
Signed-off-by: Joas Schilling <coding@schilljs.com>
e353eee
to
fd9f7a7
Compare
use function Safe\usort; | ||
use OCP\Profile\IProfileManager; | ||
use function array_flip; | ||
use function usort; |
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.
Would you please educate me on the reason for this change?
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.
It was never intended to use functions of an indirect dependency of server 3rdparty (web-auth/webauthn-lib
)
The problem is if you import the function using PHPStorm, it will always import them from the library, ignoring the fact it's an indirect dependency of the project, so any update of the library using it would drop it and break this usage by accident.
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.
Got it. Thank you for the explanation.
@@ -29,7 +29,6 @@ | |||
use function Safe\json_decode; | |||
use function Safe\json_encode; |
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 want to know whether there is a standard in place for using safe functions in the codebase.
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.
Will send a follow up adjusting all of them
Summary
Checklist