zulip/analytics/lib
arpit551 b23a5431cd analytics: Add realm argument to analytics.
This changeset is prepartory work for doing something reasonable with
analytics data during the zulip -> zulip data import process (and
potentially e.g. slack -> Zulip as well).

To support that, we need to make it possible to do our analytics
calculations for a single realm.

We do this while maintaining backwards compatibility and avoiding
massive duplicated code by adding an optional `realm` argument to the
entrypoints to the analytics system, especially process_count_stat.

More work involving restructuring FillState will be required for this
to be actually usable for its intented purpose, but this commit is a
nice checkpoint along the way.

Tweaked by tabbott to adjust comments and disable InstallationCount
updates when a realm argument is specified.
2020-01-23 17:36:13 -08:00
..
__init__.py Add a new statistics/analytics framework. 2016-10-04 17:18:54 -07:00
counts.py analytics: Add realm argument to analytics. 2020-01-23 17:36:13 -08:00
fixtures.py analytics: Use Python 3 syntax for typing (final). 2017-11-22 12:16:59 -08:00
time_utils.py analytics: Wrap some longer lines. 2017-11-17 13:19:48 -08:00