Repository navigation
[Visibility Elasticsearch] Return empty page token when result size is less than page size - #11829
Merged
Merged
Conversation
…s less than page size
yycptt
approved these changes
Aug 28, 2026
yiminc
approved these changes
Aug 31, 2026
thestephenstanton
pushed a commit
that referenced
this pull request
Sep 2, 2026
…s less than page size (#11829) ## What changed? Return empty page token when result size is less than page size in Visibility with Elasticsearch. This is a partial revert of #10540. ## Why? Since we disabled partial results in search queries, always returning page token is unnecessary. ## How did you test it? - [x] built - [ ] run locally and tested manually - [x] covered by existing tests - [x] added new unit test(s) - [ ] added new functional test(s) ## Potential risks
3 tasks done
awln-temporal
added a commit
that referenced
this pull request
Sep 3, 2026
## What changed? Backports the remaining merged PRs labeled [release/1.32.0](https://github.com/temporalio/temporal/issues?q=state%3Aclosed%20label%3Arelease%2F1.32.0) onto release/v1.32.x, in main merge order: - [#11599](#11599) Optimize Visibility PostgreSQL upgrade schema v1.14 - [#11723](#11723) Validate history pagination branch token against mutable state - [#11800](#11800) Capture panics in Visibility query converter - [#11813](#11813) Capture panic in ServiceErrorInterceptor - [#11829](#11829) Return empty Elasticsearch page token when the result is smaller than the page - [#11839](#11839) Fix FirstWorkflowTaskBackoff accumulation upon Continue-As-New - [#11801](#11801) Fix Visibility SQL query conversion [#11265](#11265) and [#11564](#11564) were already present on release/v1.32.x and are not duplicated here. ## Testing - Targeted unit tests for Visibility query conversion, RPC interception, History branch-token validation, and Continue-As-New backoff - make GOLANGCI_LINT_FIX=false GOLANGCI_LINT_BASE_REV=origin/release/v1.32.x lint-code --------- Co-authored-by: Rodrigo Zhou <[email protected]> Co-authored-by: Prathyush PV <[email protected]> Co-authored-by: Yichao Yang <[email protected]>
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.
What changed?
Return empty page token when result size is less than page size in Visibility with Elasticsearch.
This is a partial revert of #10540.
Why?
Since we disabled partial results in search queries, always returning page token is unnecessary.
How did you test it?
Potential risks