Skip to content

Commit

Permalink
TASK: Introduce NeosSubtreeTag::disabled
Browse files Browse the repository at this point in the history
And deprecate `SubtreeTag::disabled`

see discussion in neos/neos-development-collection#5463 (comment)

The only behavioural change is that with that the content repository does not know any subtree tag by default and thus the new default of the `StaticAuthProvider::getVisibilityConstraints` is to have nothing excluded!
  • Loading branch information
mhsdesign committed Mar 5, 2025
1 parent bcc4060 commit 608d4a7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Classes/Processors/EventExportProcessor.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@
use Neos\ContentRepository\Core\Feature\NodeVariation\Event\NodePeerVariantWasCreated;
use Neos\ContentRepository\Core\Feature\NodeVariation\Event\NodeSpecializationVariantWasCreated;
use Neos\ContentRepository\Core\Feature\RootNodeCreation\Event\RootNodeAggregateWithNodeWasCreated;
use Neos\ContentRepository\Core\Feature\SubtreeTagging\Dto\SubtreeTag;
use Neos\ContentRepository\Core\Feature\SubtreeTagging\Event\SubtreeWasTagged;
use Neos\ContentRepository\Core\Infrastructure\Property\PropertyConverter;
use Neos\ContentRepository\Core\NodeType\NodeType;
Expand All @@ -53,6 +52,7 @@
use Neos\ContentRepository\LegacyNodeMigration\RootNodeTypeMapping;
use Neos\Flow\Persistence\Doctrine\DataTypes\JsonArrayType;
use Neos\Flow\Property\PropertyMapper;
use Neos\Neos\Domain\Service\NeosSubtreeTag;
use Neos\Neos\Domain\Service\NodeTypeNameFactory;
use Webmozart\Assert\Assert;

Expand Down Expand Up @@ -274,7 +274,7 @@ public function processNodeDataWithoutFallbackToEmptyDimension(ProcessingContext
}
// nodes are hidden via SubtreeWasTagged event
if ($this->isNodeHidden($nodeDataRow)) {
$this->exportEvent(new SubtreeWasTagged($this->workspaceName, $this->contentStreamId, $nodeAggregateId, $this->interDimensionalVariationGraph->getSpecializationSet($originDimensionSpacePoint->toDimensionSpacePoint(), true, $this->visitedNodes->alreadyVisitedOriginDimensionSpacePoints($nodeAggregateId)->toDimensionSpacePointSet()), SubtreeTag::disabled()));
$this->exportEvent(new SubtreeWasTagged($this->workspaceName, $this->contentStreamId, $nodeAggregateId, $this->interDimensionalVariationGraph->getSpecializationSet($originDimensionSpacePoint->toDimensionSpacePoint(), true, $this->visitedNodes->alreadyVisitedOriginDimensionSpacePoints($nodeAggregateId)->toDimensionSpacePointSet()), NeosSubtreeTag::disabled()));
}

if (!$serializedPropertyValuesAndReferences->references->isEmpty()) {
Expand Down

0 comments on commit 608d4a7

Please sign in to comment.