Skip to content

Commit

Permalink
TASK: Remove removed state from ContentStream model and database
Browse files Browse the repository at this point in the history
Followup to

neos/neos-development-collection@f73d818

By diffing `findAllContentStreamEventNames` with the `$transitiveUsedStreams` we can remove the `removed` flag from content streams, which would just introduce to much complexity.
  • Loading branch information
mhsdesign committed Oct 17, 2024
1 parent f73d818 commit 3df502c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Classes/Command/ContentStreamCommandController.php
Original file line number Diff line number Diff line change
Expand Up @@ -60,10 +60,10 @@ public function pruneRemovedFromEventStreamCommand(string $contentRepository = '
$contentRepositoryId = ContentRepositoryId::fromString($contentRepository);
$contentStreamPruner = $this->contentRepositoryRegistry->buildService($contentRepositoryId, new ContentStreamPrunerFactory());

$unusedContentStreams = $contentStreamPruner->pruneRemovedFromEventStream();
$unusedContentStreamNames = $contentStreamPruner->pruneRemovedFromEventStream();
$unusedContentStreamsPresent = false;
foreach ($unusedContentStreams as $contentStreamId) {
$this->outputFormatted('Removed events for %s', [$contentStreamId->id->value]);
foreach ($unusedContentStreamNames as $contentStreamName) {
$this->outputFormatted('Removed events for %s', [$contentStreamName->value]);
$unusedContentStreamsPresent = true;
}
if (!$unusedContentStreamsPresent) {
Expand Down

0 comments on commit 3df502c

Please sign in to comment.