mozilla/kitsune — pull request #1549 by mythmon (2013-08-07 17:38:41+00:00)
Title: [Bug 876912] Only show complete timeframe on chart

This excludes data that didn't happen within the last $WINDOW time, where $WINDOW is a day, a week, a month, or whatever else the bucketing is set to. It's a little finicky to test locally, since I don't have people constantly creating data, and I have a couple of weeks of no data since my last db dump, but I'm pretty sure this works. I tested it by adding some data of my own, and it seemed right.

To test: Make some votes on an article, then go that article's history graph at http://localhost:8080/en-US/kb/get-community-support/history. Before this change, your votes would appear on the graph as a sharp downward and/or upward trend at the end of the graph, depending on how the rest of your data looked. After this change, the new votes don't appear at all, since they were made in the last 1/7/30 days (depending on bucket settings).

r?