Skip to content

Conversation

bwaidelich
Copy link
Member

Resolves: #3874

@bwaidelich bwaidelich changed the title Draft: FEATURE: Put initiating user id and creation date into event metadata Draft: 9.0: FEATURE: Put initiating user id and creation date into event metadata Sep 2, 2022
@bwaidelich
Copy link
Member Author

FYI: I plan to adjust the remaining code and tests later today

Makes the `UserIdProvider` a concept of the core package so that
the user id can be determined "lazily".

In practice this means that we can use the CR instance for _reading_
already before the authenticated user can be determined.

When handling commands, an exception will be thrown if no user can
be determined at this point.

This also adjusts the event decoration in `\Neos\ContentRepository\Core\ContentRepository::handle()`
such that `initiatingUserId` and `initiatingTimestamp` is not overridden
once it is set (see #3887)
@bwaidelich bwaidelich marked this pull request as ready for review September 19, 2022 13:39
@bwaidelich bwaidelich changed the title Draft: 9.0: FEATURE: Put initiating user id and creation date into event metadata 9.0: FEATURE: Put initiating user id and creation date into event metadata Sep 19, 2022
bwaidelich and others added 4 commits September 19, 2022 17:17
…ring

A follow up to 5f80a56 adjusting further
Behat tests to the Identifier -> Id refactoring
…ifier-id-refactoring

9.0: BUGFIX: Adjust remaining Behat tests to Identifier -> Id refactoring
@skurfuerst skurfuerst merged commit fba1b46 into 9.0 Oct 5, 2022
@skurfuerst skurfuerst deleted the feature/3874-userId-and-date-in-event-metadata branch October 5, 2022 09:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants