Skip to content

Option to ignore unknown events #849

@fritz-gerneth

Description

@fritz-gerneth

On my dev env, I sometimes have events in the store that are not mapped on the current branch (e.g. switching feature branches / ... ). Right now I have to clean up the store everytime is switch.

What do you think of an option to just log this as a warning instead of throwing an exception?

My take: provide an Upcaster that converts unknown events into a Dummy UnknownEvent class and logs a warning. Then the symfony bundle could conditionally register it based on a flag

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions