Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@spkane31
Copy link
Contributor

@spkane31 spkane31 commented Jul 17, 2025

What was changed

  • The temporal activity {pause,update-options} support batch operations through --query
  • Consistently passing the --identity parameter to server requests

Why?

Improved developer experience, can batch these requests through a visibility query instead of sending multiple requests

Checklist

  1. Closes: N/A

  2. How was this tested:
    New unit tests

  3. Any docs updates needed?
    Documentation updates are automatically generated with releases.

@spkane31 spkane31 marked this pull request as ready for review July 18, 2025 22:06
@spkane31 spkane31 requested review from a team as code owners July 18, 2025 22:06
go.mod Outdated
go.temporal.io/sdk/contrib/envconfig v0.1.0
go.temporal.io/server v1.28.0
google.golang.org/grpc v1.71.0
go.temporal.io/server v1.29.0-135.0.0.20250718192231-215876cb9fec
Copy link
Member

@cretz cretz Jul 21, 2025

Choose a reason for hiding this comment

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

Cannot merge with untagged server/API. Also, if the tag is not a server OSS release, this PR should go to next-server branch instead.

@spkane31 spkane31 changed the base branch from main to next-server July 21, 2025 16:33
@spkane31 spkane31 requested a review from cretz July 21, 2025 16:34
Copy link
Member

@cretz cretz left a comment

Choose a reason for hiding this comment

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

LGTM, nothing blocking. Will approve if/when server and API dependencies are on tags (but doesn't have to be server OSS release since it's going to next-server not main).

Copy link
Member

@bergundy bergundy left a comment

Choose a reason for hiding this comment

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

Only reviewed the commands yaml not the implementation. Had some comments.

Copy link
Member

@cretz cretz left a comment

Choose a reason for hiding this comment

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

Nothing blocking, but would like this PR to not include things added in main since last next-server merge (i.e. need a main merge into next-server outside of this PR IMO or this branch needs to be based off the next-server branch head instead of main head bringing in extra things).

@spkane31 spkane31 requested a review from bergundy July 23, 2025 20:41
@bergundy
Copy link
Member

Please make sure you don't merge all of nexus-server..main as part of this PR, select only the commits that you worked on.

spkane31 and others added 13 commits July 23, 2025 15:26
…#824)

<!--- Note to EXTERNAL Contributors -->
<!-- Thanks for opening a PR!
If it is a significant code change, please **make sure there is an open
issue** for this.
We work best with you when we have accepted the idea first before you
code. -->

<!--- For ALL Contributors 👇 -->

`temporal activity {pause,unpause,reset}` commands take either an
`--activity-id` or `activity-type` argument but not both. If both are
provided the command will fail

We want to fail when both are provided, the user doesn't need to provide
activity type and id as type can be inferred from type.

<!--- add/delete as needed --->

1. Closes no issue

2. How was this tested:
* new unit test showing failure

3. Any docs updates needed?
documentation updates will be needed, @drewhoskins-temporal or
@ychebotarev can share where and I will update
@spkane31 spkane31 force-pushed the spk/batch-reset-update-op branch from 0903823 to 23ee272 Compare July 23, 2025 21:32
return nil, fmt.Errorf("root command unexpectedly missing when dialing client")
}

if c.Identity == "" {
Copy link
Member

Choose a reason for hiding this comment

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

I wonder why this is in your PR, it seems unrelated.

Copy link
Member

Choose a reason for hiding this comment

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

See #831 (comment). I think the issue is we apparently have a need for an --identity arg for all client uses not just this one, so it was added. So this code changed from clientOptions.Identity = clientIdentity() to clientOptions.Identity = <user-provided-or-default> and the clientIdentity() helper was removed since people should rely on the options value.

Copy link
Member

@bergundy bergundy left a comment

Choose a reason for hiding this comment

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

Please see my suggestions and apply to the reset command as well.

@spkane31 spkane31 merged commit 9786ca4 into next-server Jul 29, 2025
7 checks passed
@spkane31 spkane31 deleted the spk/batch-reset-update-op branch July 29, 2025 20:25
bergundy pushed a commit that referenced this pull request Oct 3, 2025
* The `temporal activity {pause,update-options}` support batch
operations through `--query`
* Consistently passing the `--identity` parameter to server requests

Improved developer experience, can batch these requests through a
visibility query instead of sending multiple requests

2. How was this tested:
New unit tests

3. Any docs updates needed?
Documentation updates are automatically generated with releases.
bergundy pushed a commit that referenced this pull request Oct 6, 2025
* The `temporal activity {pause,update-options}` support batch
operations through `--query`
* Consistently passing the `--identity` parameter to server requests

Improved developer experience, can batch these requests through a
visibility query instead of sending multiple requests

2. How was this tested:
New unit tests

3. Any docs updates needed?
Documentation updates are automatically generated with releases.
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.

5 participants