Skip to content

Add pagination support to backend #183

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

Merged
merged 9 commits into from
Jun 28, 2019

Conversation

ASankaran
Copy link
Contributor

Closes #22

The backend's Client interface's List method is modified to add an addition parameter ListOptions. These parameters control pagination and potentially more settings in the future. List also returns an additional value, which is the continuation token. This will be an empty string if there is no more entries to list.

The s3backend has been modified to return a page of results and the continuation token if pagination was enabled. If pagination is not enabled the behavior of the backend does not change. Other backends will return an error if pagination is attempted to be used on them. The behavior of these backends has not been modified if pagination is not enabled.

Currently nothing has been modified to take advantage of s3's pagination support.

@CLAassistant
Copy link

CLAassistant commented Jun 26, 2019

CLA assistant check
All committers have signed the CLA.

@evelynl94 evelynl94 requested a review from rmalpani-uber June 26, 2019 22:58
Copy link
Collaborator

@evelynl94 evelynl94 left a comment

Choose a reason for hiding this comment

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

thanks!

Copy link
Contributor

@rmalpani-uber rmalpani-uber left a comment

Choose a reason for hiding this comment

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

LGTM otherwise

@yiranwang52 yiranwang52 merged commit e8b8fd6 into uber:master Jun 28, 2019
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.

Implement List pagination in S3 backend
6 participants