Skip to content

Replace ExpectedVersion::ANY() with proper version checks #5058

@bwaidelich

Description

@bwaidelich

In the current core code we have 21 occurrences of ExpectedVersion::ANY().
Some of them are desired, for example in EventsToPublish::empty().

But all content-stream related events should always be published with the actual version of the respective CS (for example in SubtreeTagging::handleTagSubtree().

For workspace related events we should consider adding the workspace version to the read model, too, once those are integrated to the Content Graph projection (see #5038)

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

Status

In Progress 🚧

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions