Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Handle pagination_depth when from =0 #1132

Merged
merged 4 commits into from
Jan 22, 2025

Conversation

vibrantvarun
Copy link
Member

@vibrantvarun vibrantvarun commented Jan 22, 2025

Description

This PR contains following changes

  1. Remove default value of pagination_depth as it creates issues during multiple permutations and combinations of from, size and pagination_depth
  2. Handle pagination_depth when from =0 to make to hold of the search reference.

Related Issues

1131

Check List

  • New functionality includes testing.
  • New functionality has been documented.
  • API changes companion pull request created.
  • Commits are signed per the DCO using --signoff.
  • Public documentation issue/PR created.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

Signed-off-by: Varun Jain <[email protected]>
Signed-off-by: Varun Jain <[email protected]>
Copy link
Member

@martin-gaievski martin-gaievski left a comment

Choose a reason for hiding this comment

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

looks good, please mention this in the upcoming documentation PR

@vibrantvarun vibrantvarun merged commit 3dbdcba into opensearch-project:main Jan 22, 2025
41 checks passed
@vibrantvarun vibrantvarun added the backport 2.x Label will add auto workflow to backport PR to 2.x branch label Jan 22, 2025
opensearch-trigger-bot bot pushed a commit that referenced this pull request Jan 22, 2025
* Handle pagination_depth when from =0

Signed-off-by: Varun Jain <[email protected]>

* Add changelog

Signed-off-by: Varun Jain <[email protected]>

* Remove unecessary logs

Signed-off-by: Varun Jain <[email protected]>

---------

Signed-off-by: Varun Jain <[email protected]>
(cherry picked from commit 3dbdcba)
vibrantvarun added a commit that referenced this pull request Jan 22, 2025
* Handle pagination_depth when from =0

Signed-off-by: Varun Jain <[email protected]>

* Add changelog

Signed-off-by: Varun Jain <[email protected]>

* Remove unecessary logs

Signed-off-by: Varun Jain <[email protected]>

---------

Signed-off-by: Varun Jain <[email protected]>
(cherry picked from commit 3dbdcba)

Co-authored-by: Varun Jain <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport 2.x Label will add auto workflow to backport PR to 2.x branch
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants