-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat!: Only accept metadata object in `send_event_with_custom_metadat…
…a` (#179) This changes `send_event_with_custom_metadata` to accept a single `metadata` object rather than all the fields that go into one. It turns out that in practice, the event-bus-kafka consumer already needs to build an EventsMetadata object or something equivalent to it as it reconstructs the metadata from Kafka message headers, since that's where the parsing and validation logic already is. It then has to splat the object back out when calling this method. This leads to a possible collision risk in the method's kwargs, but it's also just awkward. It is likely that the same issue would arise in any other consumer. Addresses #178
- Loading branch information
Showing
5 changed files
with
31 additions
and
45 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,4 +5,4 @@ | |
more information about the project. | ||
""" | ||
|
||
__version__ = "4.2.0" | ||
__version__ = "5.0.0" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
[bumpversion] | ||
current_version = 4.1.1 | ||
current_version = 5.0.0 | ||
commit = True | ||
tag = True | ||
|
||
|