sam-goodwin / eventual

Build scalable and durable micro-services with APIs, Messaging and Workflows
https://docs.eventual.ai
MIT License
179 stars 4 forks source link

fix: entity remove missing attributes #441

Closed thantos closed 1 year ago

thantos commented 1 year ago

When calling Entity.put in a workflow with undefined values or calling Entity.put anywhere with missing attributes, if that attribute previously was set, it would not be removed.

This is because we use update to compute the version for Entity.put.

Updated Entity.put to remove any attributes not in the object instead.