-
Notifications
You must be signed in to change notification settings - Fork 14
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
IBX-5817: Exposed UserService::getUserContentTypeIdentifiers public API #238
Conversation
Kudos, SonarCloud Quality Gate passed! 0 Bugs No Coverage information |
If yes, then there is already dedicated criterion for this use case: |
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 #238 (comment)
@adamwojs It's also worth to notice that WHERE content_type.identifier IN ('user') is more performant than WHERE c.id IN (SELECT contentobject_id FROM ezuser) We can of course decide that for the purpose of https://github.com/ibexa/corporate-account/pull/194 we should use This PR itself without extra context should give value. Additionally we could introduce IsUserContentType Criterion, but that requires more work. |
After a bit of discussion within PHP Team, we've decided not to expose content type related information further in UserService, at least for now. I'll update https://github.com/ibexa/corporate-account/pull/194 to use |
v4.6
This PR exposes pre-existing private
UserService::getUserContentTypeIdentifiers
as public API. It could be helpful when implementing IBX-5817 to build proper query from within the package. The package should have no knowledge which configuration setting returns that information. Exposing dedicated API was quick and made more sense.Checklist:
$ composer fix-cs
).@ibexa/engineering
).