Skip to content

Commit

Permalink
WIP: FEATURE: Node Attributes
Browse files Browse the repository at this point in the history
Resolves: #4550
Related: #3732
  • Loading branch information
bwaidelich committed Sep 24, 2023
1 parent fee1867 commit cb3f15e
Show file tree
Hide file tree
Showing 39 changed files with 1,026 additions and 578 deletions.
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

0 comments on commit cb3f15e

Please sign in to comment.