mirror of https://github.com/zulip/zulip.git
29799d93c6
Makes a number of simplications to the analytics views code. The main one is that we now return the entire data series, even if the data is eventually going to go into a pie chart. This was prompted by us wanting several different pie charts for each stat (one for last 30 days, one for all time, etc), but I think it is also a more natural API. The total amount of data being sent for the pie charts now is maybe half of what is being sent for our single 'hourly' stat, or maybe up to 10,000 ints per year the organization has been around. The other big change is that the data being sent back is now always explicit about whether it is data about the realm (stored in data['realm'], or data about the user (stored in data['user']). |
||
---|---|---|
.. | ||
lib | ||
management | ||
migrations | ||
tests | ||
__init__.py | ||
models.py | ||
urls.py | ||
views.py |