This command reads an event history JSON object using the client.HistoryFromJSON API, then serializes it back out using the protojson API. HistoryFromJSON is backward compatible with both the standard protobuf JSON format and with GoGoProto's format, which differ in their handling of enum values.
Checklist
Closes internal JIRA tickets SDK-1570 and OSS-1658, which do not seem to have equivalent issues in the public GitHub.
How was this tested:
I downloaded a sample event history JSON from my dev server, then ran it through a few conversions.
Any docs updates needed?
If there's a manual step in publishing changes to commands.md, then it will need to be run.
What was changed
temporal workflow fix-history-json
Why?
This command reads an event history JSON object using the
client.HistoryFromJSON
API, then serializes it back out using theprotojson
API.HistoryFromJSON
is backward compatible with both the standard protobuf JSON format and with GoGoProto's format, which differ in their handling of enum values.Checklist
Closes internal JIRA tickets SDK-1570 and OSS-1658, which do not seem to have equivalent issues in the public GitHub.
How was this tested: I downloaded a sample event history JSON from my dev server, then ran it through a few conversions.
Any docs updates needed? If there's a manual step in publishing changes to
commands.md
, then it will need to be run.