Closed Bug 913740 Opened 11 years ago Closed 11 years ago

[monolith] Missing values for a given date should return 'null'

Categories

(Marketplace Graveyard :: Statistics, defect)

x86
macOS
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED
2013-09-17

People

(Reporter: spasovski, Assigned: robhudson)

Details

(Whiteboard: [qa-])

It seems right now a returned response will do 0's for missing data which is misleading. What we get for example is:

{
    "free": [
        {
            "count": 0,
            "date": "2013-08-01"
        },
        {
            "count": 0,
            "date": "2013-08-02"
        },
        ...
    ]
}

If on '08-01' the data is missing the proper response would be:

{
    "free": [
        {
            "count": null,
            "date": "2013-08-01"
        },
        {
            "count": 0,
            "date": "2013-08-02"
        },
        ...
    ]
}
PR: https://github.com/mozilla/monolith-client/pull/4
Assignee: nobody → robhudson.mozbugs
Target Milestone: --- → 2013-09-17
https://github.com/mozilla/monolith-client/commit/57413bac2b49cc745d390a823f446b84f8a18334
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Can you please add some STRs to this bug or mark it as [qa-] ?
Whiteboard: [qa-]
You need to log in before you can comment on or make changes to this bug.