mirror of https://github.com/zulip/zulip.git
ca2ca030d2
Backfill subscription realm audit log SUBSCRIPTION_CREATED events for users which are currently subscribed but don't have any subscription events, presumably due to some historical bug. This is important because those rows are necessary when reactivating a user who is currently soft-deactivated. For each stream, we find the subscribed users who have no subscription-related realm audit log entries, and create a `backfill=True` subscription audit log entry which is the latest it could have been, based on UserMessage rows. We then optionally insert a `DEACTIVATION` if the current subscription is not active. |
||
---|---|---|
.. | ||
actions | ||
data_import | ||
integration_fixtures/nagios | ||
lib | ||
management | ||
migrations | ||
openapi | ||
tests | ||
tornado | ||
views | ||
webhooks | ||
worker | ||
__init__.py | ||
apps.py | ||
context_processors.py | ||
decorator.py | ||
filters.py | ||
forms.py | ||
logging_handlers.py | ||
middleware.py | ||
models.py | ||
signals.py |