zulip/zerver
Prakhar Pratyush c4e4737cc6 notification_trigger: Rename `private_message` to `direct_message`.
This commit renames the 'PRIVATE_MESSAGE' attribute of the
'NotificationTriggers' class to 'DIRECT_MESSAGE'.

Custom migration to update the existing value in the database.

It includes 'TODO/compatibility' code to support the old
notification trigger value 'private_message' in the
push notification queue during the Zulip server upgrades.

Earlier 'private_message' was one of the possible values for the
'trigger' property of the '[`POST /zulip-outgoing-webhook`]' response;
Update the docs to reflect the change in the above-mentioned trigger
value.
2023-08-10 17:41:49 -07:00
..
actions notification_trigger: Rename `private_message` to `direct_message`. 2023-08-10 17:41:49 -07:00
data_import ruff: Fix PERF102 Using only the keys/values of a dict. 2023-08-07 17:23:55 -07:00
integration_fixtures/nagios
lib notification_trigger: Rename `private_message` to `direct_message`. 2023-08-10 17:41:49 -07:00
management send_custom_email: Add a mode which reads data from JSON. 2023-08-09 15:49:49 -07:00
migrations notification_trigger: Rename `private_message` to `direct_message`. 2023-08-10 17:41:49 -07:00
openapi notification_trigger: Rename `private_message` to `direct_message`. 2023-08-10 17:41:49 -07:00
tests notification_trigger: Rename `private_message` to `direct_message`. 2023-08-10 17:41:49 -07:00
tornado mention: Send notifications for @topic wildcard mentions. 2023-07-17 09:39:24 -07:00
transaction_tests test_classes: Do not necessary wrap test cases in a transaction. 2023-07-06 11:44:50 -07:00
views stream_settings: Add 'Default stream' option in create stream UI. 2023-08-09 15:20:09 -07:00
webhooks ruff: Fix PERF401 Use a list comprehension to create a transformed list. 2023-08-07 17:23:55 -07:00
worker missed-message: Add a try-catch to prevent killing background thread. 2023-07-25 10:01:00 -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 logging_util: Remove dependence on get_current_request. 2023-07-11 22:23:47 -07:00
filters.py error_notify: Remove custom email error reporting handler. 2023-07-20 11:00:09 -07:00
forms.py python: Convert translated positional {} fields to {named} fields. 2023-07-18 15:19:07 -07:00
logging_handlers.py error_notify: Remove custom email error reporting handler. 2023-07-20 11:00:09 -07:00
middleware.py logging_util: Remove dependence on get_current_request. 2023-07-11 22:23:47 -07:00
models.py notification_trigger: Rename `private_message` to `direct_message`. 2023-08-10 17:41:49 -07:00
signals.py requirements: Upgrade to Django 4.0. 2022-07-13 16:07:17 -07:00