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

PaginationTrait Support #234

Merged
merged 6 commits into from
Nov 24, 2020
Merged

PaginationTrait Support #234

merged 6 commits into from
Nov 24, 2020

Conversation

skmcgrail
Copy link
Member

Copy link
Contributor

@jasdel jasdel left a comment

Choose a reason for hiding this comment

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

Changes look good, but had two main comments:

1.) We probably want the nextToken member to be the member symbol of the API model. This complicates checking for empty string, but that's solvable by special casing string to check for empty string, and nil for everything else. My work with the dense list map change uses a helper, that regretfully isn't available here yet that would simplify this.

2.) The done member being able to reactivate is odd, i think. If the SDK detects end of pagination, for any reason, the paginator should forcibly stop there. Arguably it probably should also return an error if it is called when it is known that there are no more pages.

Copy link
Contributor

@jasdel jasdel left a comment

Choose a reason for hiding this comment

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

change looks good. Looks like just waiting on updated smithy change.

@skmcgrail skmcgrail merged commit 58ee3c2 into aws:master Nov 24, 2020
@skmcgrail skmcgrail deleted the paginators branch November 24, 2020 21:45
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.

2 participants