temporalio / cli

Command-line interface for running Temporal Server and interacting with Workflows, Activities, Namespaces, and other parts of Temporal
https://docs.temporal.io/cli
MIT License
247 stars 34 forks source link

Add `temporal workflow fix-history-json` subcommand. #504

Closed chronos-tachyon closed 5 months ago

chronos-tachyon commented 5 months ago

What was changed

Why?

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

  1. Closes internal JIRA tickets SDK-1570 and OSS-1658, which do not seem to have equivalent issues in the public GitHub.

  2. How was this tested: I downloaded a sample event history JSON from my dev server, then ran it through a few conversions.

  3. Any docs updates needed? If there's a manual step in publishing changes to commands.md, then it will need to be run.

CLAassistant commented 5 months ago

CLA assistant check
All committers have signed the CLA.