zulip/analytics/tests
arpit551 f299f31340 analytics: Fix missing unique constraint when subgroup is null.
Replaced unique_together with UniqueConstraint in models that
covered nullable fields as in unique_together database indexes
don't work where subgroup=None. So added conditional unique
index handling invalid duplicate Count data.

Added 0015_clear_duplicate_counts migration to handle existing
data that violates the constraints.

Also corrected a test case in test_counts.py which didn't clear its
state properly and thus was accidentally taking advantage of this
database schema bug.
2020-03-06 11:10:04 -08:00
..
__init__.py Add a new statistics/analytics framework. 2016-10-04 17:18:54 -07:00
test_counts.py analytics: Fix missing unique constraint when subgroup is null. 2020-03-06 11:10:04 -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