Skip to content

Conversation

@djeer
Copy link

@djeer djeer commented Dec 5, 2025

Implements #2084 in Go SDK. It is already implemented in Java SDK here temporalio/sdk-java#2699

What was changed

  • Adds SideEffectOptions and MutableSideEffectOptions structs with a Summary field
  • Adds SideEffectWithOptions and MutableSideEffectWithOptions functions to the workflow API
  • Wires summary through to UserMetadata on marker commands so it appears in UI/CLI
    Very similar to what's already exists in Activities and LocalActivities.

Why?

The justification is in #2076 , it's difficult to read a timeline with 20 SideEffect's in a row.
image

Checklist

  1. Closes Add support for static summary for side effects and mutable side effects #2084

  2. How was this tested:
    Local run of our application with Options parameter provided in the code

image
  1. Any docs updates needed?
    Current behaviour is not changed, just a new experimental feature, so I guess no?

Copy link
Contributor

@yuandrew yuandrew left a comment

Choose a reason for hiding this comment

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

Overall looks good! Left some minor feedback. Also looks like you'll need to add the new interceptor methods to the TestInterceptorCalls test

@djeer djeer force-pushed the add-summary-to-side-effect-and-mutable-side-effect branch from a6a9316 to 7ed502c Compare December 8, 2025 08:30
@djeer
Copy link
Author

djeer commented Dec 8, 2025

@yuandrew Thanks for a thorough review! I've updated the PR according to your comments

@djeer djeer requested a review from yuandrew December 8, 2025 08:33
@djeer
Copy link
Author

djeer commented Dec 12, 2025

@yuandrew sorry for pinging, but could you please re-review after minor fixes? It would be a great Christmas miracle for our team 😄

@yuandrew
Copy link
Contributor

@djeer thanks for the ping, changes look good! Looks like CI is still failing, once you fix up the test we should be good to merge

@djeer
Copy link
Author

djeer commented Dec 15, 2025

@yuandrew fixed, the tests passed locally on my machine, let's try again, please

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.

Add support for static summary for side effects and mutable side effects

2 participants