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

WIP: FEATURE: Node Attributes #4557

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ public function iRemoveTheFollowingRestrictionRelation(TableNode $payloadTable):
$record = $this->transformDatasetToRestrictionRelationRecord($dataset);

$this->dbalClient->getConnection()->delete(
$this->getTableNamePrefix() . '_restrictionrelation',
$this->getTableNamePrefix() . '_attribute',
$record
);
}
Expand All @@ -80,7 +80,7 @@ public function iDetachTheFollowingRestrictionRelationFromItsOrigin(TableNode $p
$dataset = $this->transformPayloadTableToDataset($payloadTable);
$record = $this->transformDatasetToRestrictionRelationRecord($dataset);
$this->dbalClient->getConnection()->update(
$this->getTableNamePrefix() . '_restrictionrelation',
$this->getTableNamePrefix() . '_attribute',
[
'originnodeaggregateid' => (string)TestingNodeAggregateId::nonExistent()
],
Expand All @@ -98,7 +98,7 @@ public function iDetachTheFollowingRestrictionRelationFromItsTarget(TableNode $p
$dataset = $this->transformPayloadTableToDataset($payloadTable);
$record = $this->transformDatasetToRestrictionRelationRecord($dataset);
$this->dbalClient->getConnection()->update(
$this->getTableNamePrefix() . '_restrictionrelation',
$this->getTableNamePrefix() . '_attribute',
[
'affectednodeaggregateid' => (string)TestingNodeAggregateId::nonExistent()
],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,10 @@ Feature: Run integrity violation detection regarding restriction relations
| newContentStreamId | "cs-identifier" |
And the graph projection is fully up to date
And the command CreateRootNodeAggregateWithNode is executed with payload:
| Key | Value |
| contentStreamId | "cs-identifier" |
| nodeAggregateId | "lady-eleonode-rootford" |
| nodeTypeName | "Neos.ContentRepository:Root" |
| Key | Value |
| contentStreamId | "cs-identifier" |
| nodeAggregateId | "lady-eleonode-rootford" |
| nodeTypeName | "Neos.ContentRepository:Root" |
And the event NodeAggregateWithNodeWasCreated was published with payload:
| Key | Value |
| contentStreamId | "cs-identifier" |
Expand All @@ -46,11 +46,12 @@ Feature: Run integrity violation detection regarding restriction relations
| parentNodeAggregateId | "sir-david-nodenborough" |
| nodeName | "child-document" |
| nodeAggregateClassification | "regular" |
And the event NodeAggregateWasDisabled was published with payload:
And the event NodeAggregateAttributeWasAdded was published with payload:
| Key | Value |
| contentStreamId | "cs-identifier" |
| nodeAggregateId | "sir-david-nodenborough" |
| affectedDimensionSpacePoints | [{"language":"de"},{"language":"gsw"},{"language":"fr"}] |
| attribute | "disabled" |
And the graph projection is fully up to date

Scenario: Detach a restriction relation from its origin
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,10 @@ Feature: Run integrity violation detection regarding restriction relations
| newContentStreamId | "cs-identifier" |
And the graph projection is fully up to date
And the command CreateRootNodeAggregateWithNode is executed with payload:
| Key | Value |
| contentStreamId | "cs-identifier" |
| nodeAggregateId | "lady-eleonode-rootford" |
| nodeTypeName | "Neos.ContentRepository:Root" |
| Key | Value |
| contentStreamId | "cs-identifier" |
| nodeAggregateId | "lady-eleonode-rootford" |
| nodeTypeName | "Neos.ContentRepository:Root" |
And the graph projection is fully up to date

Scenario: Create nodes, disable the topmost and remove some restriction edges manually
Expand Down Expand Up @@ -59,11 +59,12 @@ Feature: Run integrity violation detection regarding restriction relations
| parentNodeAggregateId | "sir-nodeward-nodington-iii" |
| nodeName | "child-document" |
| nodeAggregateClassification | "regular" |
And the event NodeAggregateWasDisabled was published with payload:
And the event NodeAggregateAttributeWasAdded was published with payload:
| Key | Value |
| contentStreamId | "cs-identifier" |
| nodeAggregateId | "sir-david-nodenborough" |
| affectedDimensionSpacePoints | [{"language":"de"},{"language":"gsw"},{"language":"fr"}] |
| attribute | "disabled" |
And the graph projection is fully up to date
And I remove the following restriction relation:
| Key | Value |
Expand Down
Loading