zulip/analytics
Tim Abbott e603237010 email: Convert accounts code to use delivery_email.
A key part of this is the new helper, get_user_by_delivery_email.  Its
verbose name is important for clarity; it should help avoid blind
copy-pasting of get_user (which we'll also want to rename).
Unfortunately, it requires detailed understanding of the context to
figure out which one to use; each is used in about half of call sites.

Another important note is that this PR doesn't migrate get_user calls
in the tests except where not doing so would cause the tests to fail.
This probably deserves a follow-up refactor to avoid bugs here.
2018-12-06 16:21:38 -08:00
..
lib analytics: Remove unused RealmAuditLog import. 2018-07-10 15:42:26 +05:30
management populate_analytics_db: Make shylock an organization admin. 2018-08-31 15:26:15 -07:00
migrations python: Fix unnecessary uses of str_utils library. 2018-11-27 11:44:09 -08:00
tests analytics: Set delivery_email in hacky test user creation code. 2018-12-06 15:33:28 -08:00
__init__.py Create "analytics" app with activity reports. 2013-11-06 12:07:32 -05:00
models.py analytics: Change use of typing.Text to str. 2018-05-10 14:19:49 -07:00
urls.py stats: Add /stats/installation. 2018-05-18 15:12:36 -07:00
views.py email: Convert accounts code to use delivery_email. 2018-12-06 16:21:38 -08:00