zulip/analytics/tests
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
test_counts.py analytics: Add realm argument to analytics. 2020-01-23 17:36:13 -08:00
test_fixtures.py analytics: Use python 3 syntax for typing. 2017-11-17 13:16:49 -08:00
test_views.py support: Send confirmation email on realm activation. 2019-12-02 09:51:45 -08:00