Skip to content

Enable aggregated Requests#31

Open
klappradla wants to merge 2 commits intomasterfrom
add-batch-requests
Open

Enable aggregated Requests#31
klappradla wants to merge 2 commits intomasterfrom
add-batch-requests

Conversation

@klappradla
Copy link
Contributor

A small leftover from today: this enables aggregated responses for requests to the Wikimedia / Wikipedia API where the titles parameter exceeds the maximum allowed number of titles one is allowed to query for via the API - 50.
In this case, we're now doing multiple requests and then aggregate the pages from them so that what the Client returns still says transparent for the services.

There are still some things to take care of though:

  • adjust the return value for request which want more than just the pages object
  • remove the check for pages in the services (it's now done in the client)

If the number of titles (for the titles) parameter in a request exceeds
the maximum allowed one of 50, the client not transparently does
multiple requests and aggregates the results.

This may come into play when retrieving the 'imageInfo' for all files
from an article.
Since we're now combining pages in the client already, we need to make
sure pages are actually available.
@klappradla klappradla added the work in progress This is currently being worked on label Jan 22, 2019
@klappradla klappradla requested review from juffel and tessi January 22, 2019 23:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

work in progress This is currently being worked on

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant