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)
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)