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

Avoid request 'stitching' when span-reqs is not specified #143

Merged
merged 1 commit into from Nov 26, 2019
Merged

Conversation

joelittlejohn
Copy link
Collaborator

@joelittlejohn joelittlejohn commented Nov 25, 2019

Until now, the default 'span-reqs' configuration stitched up to 5 requests together if last-prim-kvs implied it was necessary. This caused confusion because it's not getting all results but it's also not limited to just one page. The limit parameter also then became confusing, because the number of items returned by a request would be somewhere between '5' and '5 x limit'.

After this commit the various 'get items' functions will return only one page by default and if subsequent pages are needed then span-reqs must be used.

Closes #74

Until now, the default 'span-reqs' configuration stitched up to 5
requests together if last-prim-kvs implied it was necessary. This caused
confusion because it's not getting all results but it's also not
limited to just one page. The limit parameter also then became
confusing, because the number of items returned by a request would be
somewhere between '5' and '5 x limit'.

After this commit the various 'get items' functions will return only one
page by default and if subsequent pages are needed then span-reqs must
be used.

Closes #74
@joelittlejohn joelittlejohn added this to the 1.11.0-alpha1 milestone Nov 25, 2019
@joelittlejohn
Copy link
Collaborator Author

This is the kind of minor breaking change that Faraday has typically accepted via break versioning. We'll move from 0.10.x to 0.11.x to do this.

Copy link
Collaborator

@kipz kipz left a comment

Choose a reason for hiding this comment

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

LGTM - fully support this change!

@kipz kipz merged commit 9e3201a into master Nov 26, 2019
@kipz kipz deleted the span-reqs-0 branch November 26, 2019 11:14
joelittlejohn added a commit that referenced this pull request Jul 19, 2020
Looks like I missed this one. See #74, #143 and commit 9b4cb80.
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.

:limit not working with query function
2 participants