zulip/zerver
Ujjawal Modi fd0434a052 realm_emoji: Refactor code for flushing realm_emoji cache.
Subsequent commits will add "on_delete=models.RESTRICT"
relationships, which will result in the RealmEmoji
objects being deleted after Realm has been deleted from
the database.

In order to handle this, we update get_realm_emoji_dicts,
get_realm_emoji_cache_key, get_active_realm_emoji_cache_key,
get_realm_emoji_uncached and get_active_realm_emoji_uncached
functions to accept realm_id as parameter instead of realm
object, so that the code for flushing the cache works even
after the realm is deleted. This change is fine because
eventually only realm_id is used by these functions and
there is no need of the complete realm object.
2023-06-28 18:03:32 -07:00
..
actions zerver: Update comments with "private message" or "PM". 2023-06-23 11:24:13 -07:00
data_import slack: Handle the special case of permissions denied on team.info call. 2023-06-27 11:04:41 -07:00
integration_fixtures/nagios
lib import_realm: Create Stream, UserGroup and Realm in a transaction. 2023-06-28 18:03:32 -07:00
management delete-user: Update management command help doc-string. 2023-06-23 11:24:13 -07:00
migrations settings: Add wildcard mention notifications for the followed topics. 2023-06-13 18:01:41 -07:00
openapi docs: Add documentation for delete emoji endpoint. 2023-06-28 10:23:47 -07:00
tests tests: Use check_add_user_group to create groups. 2023-06-28 18:03:32 -07:00
tornado zerver: Update comments with "private message" or "PM". 2023-06-23 11:24:13 -07:00
views types: Add default_group_name field to GroupPermissionSetting type. 2023-06-28 18:03:32 -07:00
webhooks stripe: Nicknames are optional on plans. 2023-06-27 18:02:50 -07:00
worker queue_processors: Avoid queue worker timeouts in tests. 2023-06-28 11:06:24 -07:00
__init__.py
apps.py requirements: Upgrade Python requirements. 2023-04-03 22:39:21 -07:00
context_processors.py emails: Add corporate_enabled to context for emails. 2023-05-01 10:32:43 -07:00
decorator.py codespell: Correct “requestor” to “requester”. 2023-06-20 16:17:55 -07:00
filters.py
forms.py accounts: Allow user to change email visibility during first login. 2023-05-16 13:52:56 -07:00
logging_handlers.py python: Use Python 3.8 typing.{Protocol,TypedDict}. 2022-04-27 12:57:49 -07:00
middleware.py codespell: Correct “requestor” to “requester”. 2023-06-20 16:17:55 -07:00
models.py realm_emoji: Refactor code for flushing realm_emoji cache. 2023-06-28 18:03:32 -07:00
signals.py requirements: Upgrade to Django 4.0. 2022-07-13 16:07:17 -07:00