Skip to content

Make it possible to remove Header classes without crashes #818

@DanielBadura

Description

@DanielBadura

Right now, if a header landed in the eventstore, you need to keep the code in place, even if you don't use the header anymore. If you remove the Header class currently the serialization process crashes.

Why is this important? There are cases where maybe a 3rd party bundle adds a header to you events and later on you remove the bundle from your dependencies. This will lead to a crash, as the header class could not be found in the header registry. This would rightnow force the user to one of the following solutions:

  • Keep the bundle as a dep
  • Copy the headers from the bundle and register them
  • re-create the eventstore with a translator which removes the headers

I think it would be best to handle these cases more gracefully, as headers are mostly only metadata.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions