Skip to content
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

Merged
merged 1 commit into from
Oct 12, 2023

Conversation

Sebobo
Copy link
Member

@Sebobo Sebobo commented Sep 12, 2023

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 the NodeTypeManager without adjusting the call in the NodeDataRepository->getNodeTypeFilterConstraintsForDql which relied on the previous behaviour.

The call in the method getNodeTypeFilterConstraints was fixed some years ago, but that method seems unused.

Copy link
Member

@mhsdesign mhsdesign left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you that makes absolutely sense!

But for some reason, we willingly include the abstract nodetypes in findDescendantNodes in neos 9:

I dont know why, but i think the behavior should align.

see #4532

@mhsdesign
Copy link
Member

I forgot if you measured this but I spoke with @nezaniel about this and he said this NodeTypeName in array query shouldn’t get measurable slower if the list is longer.

but he said this about the new 9.0 implementation #4532 - I don’t know if we have a more complex query in neos 8?

@Sebobo
Copy link
Member Author

Sebobo commented Sep 23, 2023

I measured only the request time and I think it's not the reading time but the generation and looping.

Copy link
Member

@bwaidelich bwaidelich left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1 by reading

Copy link
Member

@mhsdesign mhsdesign left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Makes sense ;)

@Sebobo Sebobo merged commit 4d2ca6f into 7.3 Oct 12, 2023
@Sebobo Sebobo deleted the bugfix/dont-query-abstract-nodetypes branch October 12, 2023 07:44
@Sebobo Sebobo restored the bugfix/dont-query-abstract-nodetypes branch October 12, 2023 07:44
@Sebobo Sebobo deleted the bugfix/dont-query-abstract-nodetypes branch October 12, 2023 07:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants