Skip to content

Patch proxygenerator for oneof#252

Merged
stephanos merged 1 commit intomasterfrom
stephanos/sano
Apr 23, 2026
Merged

Patch proxygenerator for oneof#252
stephanos merged 1 commit intomasterfrom
stephanos/sano

Conversation

@stephanos
Copy link
Copy Markdown
Contributor

@stephanos stephanos commented Apr 23, 2026

What changed?

Patching cmd/proxygenerator/interceptor.go to generate valid code for DescribeNexusOperationExecutionResponse and PollNexusOperationExecution.

Why?

Fails otherwise.

How did you test it?

Builds.

Potential risks

Limited to new Nexus APIs.

@CLAassistant
Copy link
Copy Markdown

CLAassistant commented Apr 23, 2026

CLA assistant check
All committers have signed the CLA.

Signed-off-by: Stephan Behnke <stephanos@users.noreply.github.com>
Comment on lines +541 to +553
{{if and (eq $type "*workflowservice.DescribeNexusOperationExecutionResponse") (eq . "Result")}}
if o.GetResult() != nil {
result := o.GetResult()
if err := visitPayload(ctx, options, o, concState, &result); err != nil { return err }
o.Outcome = &workflowservice.DescribeNexusOperationExecutionResponse_Result{Result: result}
}
{{else if and (eq $type "*workflowservice.PollNexusOperationExecutionResponse") (eq . "Result")}}
if o.GetResult() != nil {
result := o.GetResult()
if err := visitPayload(ctx, options, o, concState, &result); err != nil { return err }
o.Outcome = &workflowservice.PollNexusOperationExecutionResponse_Result{Result: result}
}
{{else}}
Copy link
Copy Markdown
Contributor Author

@stephanos stephanos Apr 23, 2026

Choose a reason for hiding this comment

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

This manual change; everything else is generated.

We have a follow-up ticket filed to find a non-stopgap solution for this.

@stephanos stephanos marked this pull request as ready for review April 23, 2026 18:42
@stephanos stephanos requested review from a team as code owners April 23, 2026 18:42
@stephanos stephanos enabled auto-merge (squash) April 23, 2026 18:56
Comment thread proto/api
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Updated to latest api

@stephanos stephanos merged commit eb08295 into master Apr 23, 2026
4 checks passed
@stephanos stephanos deleted the stephanos/sano branch April 23, 2026 19:36
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.

4 participants