Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Print encoding of workflow results #579

Merged
merged 5 commits into from
May 29, 2024
Merged

Conversation

Sushisource
Copy link
Member

DRAFT because it seems like tests are getting stuck but, nothing I changed should do that. Maybe just my machine.

What was changed

Print encoding of workflow results

Why?

To help the user understand what's going on in the event Result can't be decoded

Checklist

  1. Closes [Feature Request] Add ResultEncoding when printing workflow results that cannot be converted to shorthand JSON #547

  2. How was this tested:
    Added UT

  3. Any docs updates needed?

Comment on lines 141 to 142
// TODO: The below fails seemingly due to a marshalling bug in api-go. The conversion of the
// returned raw payload in to JSON bytes is invalid json, and breaks the printing on this
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm going to take a look at fixing this in api-go

Copy link
Member Author

@Sushisource Sushisource May 28, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

NM, apparently this is already fixed, by temporalio/api-go#159

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We just need to update versions when possible

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 Upon server release we will upgrade

@Sushisource Sushisource marked this pull request as ready for review May 28, 2024 23:08
@Sushisource Sushisource changed the title [DRAFT] Print encoding of workflow results Print encoding of workflow results May 28, 2024
Comment on lines 141 to 142
// TODO: The below fails seemingly due to a marshalling bug in api-go. The conversion of the
// returned raw payload in to JSON bytes is invalid json, and breaks the printing on this
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 Upon server release we will upgrade

@Sushisource Sushisource merged commit 231b456 into main May 29, 2024
7 checks passed
@Sushisource Sushisource deleted the friendly-encoding-print branch May 29, 2024 15:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Feature Request] Add ResultEncoding when printing workflow results that cannot be converted to shorthand JSON
2 participants