Skip to content

Consider disallowing duplicate Tag keys for a single event. #4735

Description

@hjohn

Currently, Axon Framework allows having multiple tags with the same key on an event (like course=1 and course=2). This is unusual usage, and we may want to investigate whether this is desirable. At a minimum, we could disallow this until there is a valid use case.

Related to this: tag keys are currently unrestricted, aside from disallowing null keys. We could reserve or disallow certain keys:

  • The empty string (or any blank string)
  • Keys with leading or trailing spaces
  • Keys with a reserved prefix (_EVENT_NAME is reserved in Axon Server, we could consider reserving all keys starting with an underscore).

For values:

  • The empty string (or any blank string)
  • Values with leading or trailing spaces
  • Values with an asterix (*) as this could be used to allow limited wild card matches (or glob patterns) as most engines can easily support this.
    • This could allow you to create criteria for events that simply are marked with a specific key (ie. key=*) or even partial matches (like location=Europe/*)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Status: Under DiscussionUse to signal that the issue in question is being discussed.

    Fields

    No fields configured for Enhancement.

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions