Repository navigation
Conversation
workflow list, activity list and nexus operation list only lowered the page size to --limit when --page-size was larger than it. --page-size defaults to 0, so a plain --limit N still fetched (and codec-decoded) a full server-default page before truncating. Fixes temporalio#1283
|
|
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Related issues
Fixes #1283
What changed?
workflow list,activity listandnexus operation listonly lowered the page size to--limitwhen--page-sizewas larger.--page-sizedefaults to 0, so--limit 3on its own sentPageSize: 0and got the server default page. With a remote codec, every payload in that page was decoded before the limit was applied.Now the page size is set to
--limitwhen--page-sizeis unset or larger than the limit. Passing--page-sizebelow the limit still works as before.The codec concurrency part of the issue (sdk-go interceptor) is not touched here.
Checklist
Stability
Tests
SharedServerSuite) for all three commands. They capture the first list request with a client interceptor and check itsPageSizefor: no flags (0),--limit 1(1),--limit 2 --page-size 5(2),--limit 5 --page-size 2(2),--page-size 3(3).Manual tests
Before the fix, the new tests fail on
--limit 1withexpected: 1, actual: 0for all three commands. After the fix: