Page MenuHomePhabricator

Make AQS return 0 instead of no values {slug}
Open, LowPublic


When an article has no views for a given date, the API returns no data for that day.
This results in incomplete timeseries (with holes) which is very inconvenient for charting in js.

Event Timeline

mforns created this task.Nov 11 2015, 4:55 PM
mforns raised the priority of this task from to High.
mforns updated the task description. (Show Details)
mforns added a project: Analytics-Backlog.
mforns added a subscriber: mforns.
Restricted Application added a subscriber: Aklapper. · View Herald TranscriptNov 11 2015, 4:55 PM
Milimetric lowered the priority of this task from High to Normal.Nov 12 2015, 6:31 PM
Milimetric set Security to None.
Milimetric moved this task from Incoming to Prioritized on the Analytics-Backlog board.
Nuria added a subscriber: Nuria.EditedNov 12 2015, 6:34 PM

This needs careful consideration, what do we do in the following cases?

  • a project with pageviews every other day. Do "empty" days return zero?
  • querying for a non-existing project?
  • querying for a data rage we do not have because we are 2 days behind. Do we feel two days with zeros?
  • querying for a data range we do not have in the past (before we have any data)
  • querying for a data range further in feature.
  • asking for access type that doesn't exist like "tablet"


must find a way to differentiate between true 404 results and true 0 count results

The 404 comes from T102725.

Nuria lowered the priority of this task from Normal to Low.Apr 17 2017, 3:50 PM
Nuria moved this task from Wikistats Production to Backlog (Later) on the Analytics board.