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

Enable aggregated Requests #31

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Enable aggregated Requests #31

wants to merge 2 commits into from

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 tessi and juffel 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