-
-
Notifications
You must be signed in to change notification settings - Fork 223
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
Remove tetheredDescendantNodeAggregateIds
from CreateNodeAggregateWithNode
constructor
#4375
Comments
Mmh, I think I'd like to use explicit tethered IDs also in my userland code. I'll check whether the deterministic ones are enough first, though. |
We decided, that we first want to make it more explicit that this parameter is internal, e.g. by replacing public function __construct(
// ...
?NodeAggregateIdsByNodePaths $tetheredDescendantNodeAggregateIds = null
) { with public function __construct(
// ...
) {
/** @internal bla bla */
public function withTetheredDescendantNodeAggregateIds(NodeAggregateIdsByNodePaths $tetheredDescendantNodeAggregateIds): self {
// ...
} because a lot of tests currently rely on the custom tethered node ids. And the subtree for node aggregate "sir-david-nodenborough" with node types "" and 2 levels deep should be:
| Level | nodeAggregateId |
| 0 | sir-david-nodenborough |
| 1 | nodewyn-tetherton |
| 2 | nodimer-tetherton |
| 1 | nody-mc-nodeface | one could write something like And the subtree for node aggregate "sir-david-nodenborough" with node types "" and 2 levels deep should be:
| Level | nodeAggregateId |
| 0 | sir-david-nodenborough |
| 1 | tetheredNodeId{sir-david-nodenborough.tethered-node} |
| 2 | tetheredNodeId{tetheredNodeId{sir-david-nodenborough.tethered-node}.tethered-leaf} |
| 1 | nody-mc-nodeface | But we'll have to wait for #4313 anyways |
As discussed in the weekly @nezaniel will always prefer to have an option to set the nodeIds so we should definitely keep a way like |
Resolved with #4489 |
The
$tetheredDescendantNodeAggregateIds
argument is currently used in order to create deterministic tethered node ids (mostly for tests).With #4313 ids of tethered nodes will be deterministic so that we can remove that argument for good.
But for this, quite some tests have to be adjusted.
For Behat tests that rely on the child node ids, we could introduce some "makro" in the form
tetheredNodeId(<parentNodeId>, <name>)
and change tests fromto
As a first step we should at least remove the
tetheredDescendantNodeAggregateIds
argument from the constructor to communicate that this is purely there for internal use.The text was updated successfully, but these errors were encountered: