Closed Bug 1085660 Opened 10 years ago Closed 10 years ago

Dashboard numbers without deltas

Categories

(Webtools Graveyard :: Air Mozilla, defect)

x86
macOS
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: peterbe, Assigned: lfresh)

Details

Attachments

(1 file)

The management Dashboard shows the numbers for various things for various "time slots". That's great. 
But what it also does is showing the delta. E.g. the difference between number of new users today compared to yesterday. This is not good. 

It's not good because it's never a fair comparison to compare "this week" with "last week" if "this week" hasn't fully finished yet. It makes "this week" look bad. 

Instead of the deltas, replace them with last time slot's number. The screenshot, look at "This week" for "New Events". It says "8 (-13)" (where the bracket means smaller font). That means, 8 new events this week and 21 last week. Thus, what it should say is "8 (21)".
I think the server-side code does something like this::

    counts['today'] = qs.filter(**make_filter(gte=today)).count()
    counts['today_delta'] = (
        counts['today'] -
        qs.filter(**make_filter(gte=yesterday, lt=today)).count()
    )

Instead it could do this::

    counts['today'] = qs.filter(**make_filter(gte=today)).count()
    counts['yesterday'] = qs.filter(**make_filter(gte=yesterday, lt=today)).count()

And the angularjs template would need to be updated accordingly.
Note, a lot of code was added to make it possible to set css classes called "negative" and "positive". Those would need to be deleted from the angular app and from the CSS.
Assignee: nobody → bugz42
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Product: Webtools → Webtools Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: