-
-
Notifications
You must be signed in to change notification settings - Fork 224
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
BUGFIX: Don’t query for abstract nodetypes in nodedata repository #4501
Conversation
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 measured only the request time and I think it's not the reading time but the generation and looping. |
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.
+1 by reading
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.
Makes sense ;)
As abstract nodetypes don't (shouldn't) appear in the database it makes no sense to query them.
This is a regression that was introduced a long time ago, when the default parameter to include abstract nodetypes was added to the
getSubNodeTypes
method in theNodeTypeManager
without adjusting the call in theNodeDataRepository->getNodeTypeFilterConstraintsForDql
which relied on the previous behaviour.The call in the method
getNodeTypeFilterConstraints
was fixed some years ago, but that method seems unused.