Page MenuHomePhabricator

Pageviews top endpoint in descending order as of 2018-11-20
Closed, ResolvedPublic

Description

The daily top pageviews endpoint is in descending order on November 11, 2018:
https://wikimedia.org/api/rest_v1/metrics/pageviews/top/en.wikipedia/all-access/2018/11/20

All previous days are in ascending, as expected:
https://wikimedia.org/api/rest_v1/metrics/pageviews/top/en.wikipedia/all-access/2018/11/19
https://wikimedia.org/api/rest_v1/metrics/pageviews/top/en.wikipedia/all-access/2018/11/18
etc.

Is this intentional? If so, could we change it so that all endpoints are consistent? Though I would argue ascending order makes the most sense.

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald Transcript
Milimetric triaged this task as High priority.
Milimetric added a project: Analytics-Kanban.
Milimetric moved this task from Next Up to In Progress on the Analytics-Kanban board.

Problem found, was due to a deployment we did yesterday that changed one of our dependencies, we will file bug to services team for that but should be easy to fix this issue on our end.

Change 475131 had a related patch set uploaded (by Milimetric; owner: Milimetric):
[analytics/aqs@master] Sort articles by rank in top endpoint

https://gerrit.wikimedia.org/r/475131

Change 475131 merged by Nuria:
[analytics/aqs@master] Sort articles by rank in top endpoint

https://gerrit.wikimedia.org/r/475131

The fix for this has been deployed, but it'll take a while to clear the cache. Sorry for the inconvenience.

Just to follow up to put this issue to rest, the caches are all cleared and the responses are all consistent, going from rank 1 to rank 1000 in order. This is a sort at the service level so it won't be affected by underlying libraries anymore.