Dapr bulk publish - edit Dapr Cloudevent envelope via publish_metadata
In what area(s)?
/area docs
Describe the feature
The feature already exists via the single event publish. You can override certain CE fields using the publish_metadata object. In the bulk publish documentation it does not state that you can achieve the same things, but you can, via adding the Metadata map for each entry. Needs to be documented
Release Note
RELEASE NOTE: ADD override Cloudevent fields in bulk publish using the publish_metadata object documentation
Would you be open to creating docs PR for the content change you suggest? Thanks
Hey, I actually found out in the end that it actually didn't work. You cannot set publish metadata for a single cloud event in the bulk publish but rather to give the whole bulk the same metadata (it's got it's pros and cons but personally I need them metadata to differ for each event in some cases, especially the Kafka partition key) . I actually just found it out yesterday that we messed up the testing, and was planning on opening a new issue for that today 😳. Currently I don't have much spare time but in about 2 weeks time I wouldn't mind sparing some time to edit the documentation and state there that currently only metadata for the whole bulk of messages is supported.
Thanks