Skip to content

BUGFIX: Find child node aggregate with multiple parents #5489

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

Draft
wants to merge 2 commits into
base: 9.0
Choose a base branch
from

Conversation

mhsdesign
Copy link
Member

@mhsdesign mhsdesign commented Feb 28, 2025

While working #5480 i also wanted to test the child node aggregates query.
Now it seems it was also optimised by #5268 to remove a join which was really not used!.

But i found that the query has problems with multiple parents in multiple dimensions.

Now moving b only in the specialisation to a from home and querying all childnodes of a, will only result the node row b from the specialisation to be queried.
But to build the whole node aggregate we need also the noderow where b is in the source dimension.

Now it seems that the intention of find child node aggregates and the node aggregate itself contradict. As when being interested in children from a, well the node row b is only that for the specialisation.
A node aggregate should in my opinion be node a question from the perspective of how it was retrieved but should always contain the same node rows - as find by id would return.

Either we introduce a new object here to only really shown the affected node rows or attempt to fix the original query which i did - but im not sure if that is correct yet. Thought the test says yes.

@kitsunet and @dlubitz also discussed it might be worth to just return the node identifiers and have a separate query to turn them into aggregates or let the node factory do that.

Upgrade instructions

Review instructions

Checklist

  • Code follows the PSR-2 coding style
  • Tests have been created, run and adjusted as needed
  • The PR is created against the lowest maintained branch
  • Reviewer - PR Title is brief but complete and starts with FEATURE|TASK|BUGFIX
  • Reviewer - The first section explains the change briefly for change-logs
  • Reviewer - Breaking Changes are marked with !!! and have upgrade-instructions

…ct coverage

With a join on ph was removed which was previously also not used: neos#5268

Now the join is reintroduced and used to determine the covereddimensionspacepoint
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.

1 participant