zulip/analytics
Siddharth Asthana 6c888977a6 change_subdomain: Create a deactivated realm on updating subdomain.
When changing the subdomain of a realm, create a deactivated realm with
the old subdomain of the realm, and set its deactivated_redirect to the
new subdomain.
Doing this will help us to do the following:
- When a user visits the old subdomain of a realm, we can tell the user
that the realm has been moved.
- During the registration process, we can assure that the old subdomain
of the realm is not used to create a new realm.

If the subdomain is changed multiple times, the deactivated_redirect
fields of all the deactivated realms are updated to point to the new
uri.
2021-01-07 14:15:22 -08:00
..
lib analytics: Make last_successful_fill handle FillState.STARTED case properly. 2020-12-22 16:44:31 -08:00
management analytics: Move last_successful_fill to CountStat. 2020-12-22 16:44:31 -08:00
migrations migrations: Upgrade migrations to remove duplicates in all Count tables. 2020-07-30 15:18:00 -07:00
tests change_subdomain: Create a deactivated realm on updating subdomain. 2021-01-07 14:15:22 -08:00
__init__.py
models.py analytics: Move last_successful_fill to CountStat. 2020-12-22 16:44:31 -08:00
urls.py rest: Add rest_path shortcut for path with rest_dispatch. 2020-09-22 10:51:00 -07:00
views.py analytics: Specify exact end_time in realm summary query. 2020-12-22 16:44:31 -08:00