-
-
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: Fix and test tethered node structure adjustment #4969
BUGFIX: Fix and test tethered node structure adjustment #4969
Conversation
Currently fails with
this is due to the blocking in |
break; | ||
} | ||
/** @var Node $childNodeSource Node aggregates are never empty */ | ||
$occupiedDimensionSpacePoints = $childNodeAggregate->occupiedDimensionSpacePoints->getPoints(); |
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.
idk if we should guard here with this check ... the added tests will pass either way ;)
if (count($occupiedDimensionSpacePoints) !== 1) {
throw new \RuntimeException('TODO: The ChildNodeAggregate occupies multiple origins.', 1711897662);
}
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 don't see an issue with the child node aggregate occupying multiple DSPs, that's totally legit
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.
Needs to be synced with 9.0, looks otherwise fine so far
break; | ||
} | ||
/** @var Node $childNodeSource Node aggregates are never empty */ | ||
$occupiedDimensionSpacePoints = $childNodeAggregate->occupiedDimensionSpacePoints->getPoints(); |
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 don't see an issue with the child node aggregate occupying multiple DSPs, that's totally legit
✅ |
Neos.ContentRepository.Core/Classes/EventStore/EventsToPublish.php
Outdated
Show resolved
Hide resolved
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.
Just some initial thoughts on correlation and causation ids, happy to discuss this further!
Neos.ContentRepository.Core/Classes/EventStore/EventsToPublish.php
Outdated
Show resolved
Hide resolved
Neos.ContentRepository.StructureAdjustment/src/StructureAdjustmentService.php
Outdated
Show resolved
Hide resolved
Neos.ContentRepository.Core/Classes/EventStore/EventsToPublish.php
Outdated
Show resolved
Hide resolved
1e97147
to
07f429a
Compare
…events Applies suggestion originally posted in neos#4969 (comment) the resulting event log would be similar to: | event | correlation id | metadata | |---------------------------------|----------------|--------------------------------------------------------------------------------------------------------------------------------------------| | NodeAggregateWithNodeWasCreated | 123456 | `{structureAdjustment: 'Content Stream: %s; Dimension Space Point: %s, Node Aggregate: %s --- The tethered child node "bar" is missing.'}` | | NodePropertiesWereSet | 123456 | |
…eAggregate ... The behavior should be fully equivalent
07f429a
to
c0e759a
Compare
see `peerSucceedingSiblings` change
c0e759a
to
554a95e
Compare
…events Applies suggestion originally posted in neos#4969 (comment) the resulting event log would be similar to: | event | correlation id | metadata | |---------------------------------|----------------|--------------------------------------------------------------------------------------------------------------------------------------------| | NodeAggregateWithNodeWasCreated | 123456 | `{structureAdjustment: 'Content Stream: %s; Dimension Space Point: %s, Node Aggregate: %s --- The tethered child node "bar" is missing.'}` | | NodePropertiesWereSet | 123456 | |
…events Applies suggestion originally posted in neos/neos-development-collection#4969 (comment) the resulting event log would be similar to: | event | correlation id | metadata | |---------------------------------|----------------|--------------------------------------------------------------------------------------------------------------------------------------------| | NodeAggregateWithNodeWasCreated | 123456 | `{structureAdjustment: 'Content Stream: %s; Dimension Space Point: %s, Node Aggregate: %s --- The tethered child node "bar" is missing.'}` | | NodePropertiesWereSet | 123456 | |
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.
now up-to-date with 9.0 again and tests are green.
lgtm
I found out that this line
neos-development-collection/Neos.ContentRepository.Core/Classes/Feature/Common/TetheredNodeInternals.php
Line 128 in 1fcdec4
This pr also adds causation ids and meta data for changes made by structure adjustments to easier debug them. See also #3887-> Moved to a dedicated pr in #5451Related: #4966
Related: #4832 (comment)
Upgrade instructions
Review instructions
Checklist
FEATURE|TASK|BUGFIX
!!!
and have upgrade-instructions