-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Implement fetchAllMiddleware to handle per_page=-1 through pagination #10762
Merged
youknowriad
merged 21 commits into
master
from
try/6694-paginate-large-collection-requests
Oct 21, 2018
Merged
Implement fetchAllMiddleware to handle per_page=-1 through pagination #10762
youknowriad
merged 21 commits into
master
from
try/6694-paginate-large-collection-requests
Oct 21, 2018
Commits on Oct 21, 2018
-
Implement fetchAllMiddleware to handle per_page=-1 through pagination
Introduce a new middleware function to iterate through all available pages for a large collection, replacing any encountered `per_page=-1` requests with a series of sequential requests which are assembled into a final merged array of all available results.
Configuration menu - View commit details
-
Copy full SHA for e24f311 - Browse repository at this point
Copy the full SHA e24f311View commit details -
Configuration menu - View commit details
-
Copy full SHA for a3f3517 - Browse repository at this point
Copy the full SHA a3f3517View commit details -
Configuration menu - View commit details
-
Copy full SHA for 0b13284 - Browse repository at this point
Copy the full SHA 0b13284View commit details -
Configuration menu - View commit details
-
Copy full SHA for c54aa57 - Browse repository at this point
Copy the full SHA c54aa57View commit details -
Configuration menu - View commit details
-
Copy full SHA for ed69cb5 - Browse repository at this point
Copy the full SHA ed69cb5View commit details -
Improve fetchAllMiddleware: use links for pagination.
- Remove unneeded modification to apiFetch parsing logic. - Utilize the links header to traverse collection pages. - Remove confusing try/catch behavior. - Add more escape hatches for cases where middleware should not apply.
Configuration menu - View commit details
-
Copy full SHA for 49d80cd - Browse repository at this point
Copy the full SHA 49d80cdView commit details -
Configuration menu - View commit details
-
Copy full SHA for c615efd - Browse repository at this point
Copy the full SHA c615efdView commit details -
Configuration menu - View commit details
-
Copy full SHA for d122d87 - Browse repository at this point
Copy the full SHA d122d87View commit details -
Configuration menu - View commit details
-
Copy full SHA for e11f34c - Browse repository at this point
Copy the full SHA e11f34cView commit details -
Configuration menu - View commit details
-
Copy full SHA for 7703ce2 - Browse repository at this point
Copy the full SHA 7703ce2View commit details -
Configuration menu - View commit details
-
Copy full SHA for c2c2f6c - Browse repository at this point
Copy the full SHA c2c2f6cView commit details -
Configuration menu - View commit details
-
Copy full SHA for 158f088 - Browse repository at this point
Copy the full SHA 158f088View commit details -
Configuration menu - View commit details
-
Copy full SHA for 5c7a2f2 - Browse repository at this point
Copy the full SHA 5c7a2f2View commit details -
Configuration menu - View commit details
-
Copy full SHA for b7bb2cd - Browse repository at this point
Copy the full SHA b7bb2cdView commit details -
Configuration menu - View commit details
-
Copy full SHA for 5436e18 - Browse repository at this point
Copy the full SHA 5436e18View commit details -
Configuration menu - View commit details
-
Copy full SHA for 8803b88 - Browse repository at this point
Copy the full SHA 8803b88View commit details -
Configuration menu - View commit details
-
Copy full SHA for 0a08388 - Browse repository at this point
Copy the full SHA 0a08388View commit details -
Configuration menu - View commit details
-
Copy full SHA for 1ce1f2b - Browse repository at this point
Copy the full SHA 1ce1f2bView commit details -
Configuration menu - View commit details
-
Copy full SHA for 93eeecc - Browse repository at this point
Copy the full SHA 93eeeccView commit details -
Configuration menu - View commit details
-
Copy full SHA for 08e8ca8 - Browse repository at this point
Copy the full SHA 08e8ca8View commit details -
Configuration menu - View commit details
-
Copy full SHA for 562250d - Browse repository at this point
Copy the full SHA 562250dView commit details
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.