zulip/zerver
Lauryn Menard 3a03e14938 integrations: Update Slack webhook to use check_send_webhook_message.
Due to the channel_map_to_topics URL parameter in the Slack webhook,
it was not migrated to use the check_send_webhook_message.

By using check_send_webhook_message, any topic parameter in the
webhook URL will be prioritized over mapping Slack channels to
topics, e.g. when channel_map_to_topics is true. This is because
the default behaviour for incoming webhooks is to send a default
topic as a parameter to check_send_webhook_message in case there
is no topic specified in the URL.

In contrast, we can override the stream passed in the URL when
channel_map_to_topics is false by passing the Slack channel name
to check_send_webhook_message. The default behaviour for incoming
webhooks is to send a direct message if there is no specified
stream in the URL, so a default stream is not generally passed
to check_send_webhook_message.

Fixes #27601.
2024-02-25 16:47:34 -08:00
..
actions settings: Add realm-level setting 'zulip_update_announcements_stream'. 2024-02-25 09:33:00 -08:00
data_import ruff: Fix SIM113 Use `enumerate()` for index variable in `for` loop. 2024-02-02 10:30:45 -08:00
integration_fixtures/nagios
lib settings: Add realm-level setting 'zulip_update_announcements_stream'. 2024-02-25 09:33:00 -08:00
management export_search: Support exporting DMs or huddles. 2024-02-25 09:34:17 -08:00
migrations settings: Add realm-level setting 'zulip_update_announcements_stream'. 2024-02-25 09:33:00 -08:00
models settings: Add realm-level setting 'zulip_update_announcements_stream'. 2024-02-25 09:33:00 -08:00
openapi settings: Add realm-level setting 'zulip_update_announcements_stream'. 2024-02-25 09:33:00 -08:00
tests settings: Add realm-level setting 'zulip_update_announcements_stream'. 2024-02-25 09:33:00 -08:00
tornado tornado: Fix GC of old queues. 2024-02-20 22:07:25 -08:00
transaction_tests models: Extract zerver.models.realms. 2023-12-16 22:08:44 -08:00
views settings: Add realm-level setting 'zulip_update_announcements_stream'. 2024-02-25 09:33:00 -08:00
webhooks integrations: Update Slack webhook to use check_send_webhook_message. 2024-02-25 16:47:34 -08:00
worker queue_processors: Process user_activity in one query. 2024-01-22 16:25:13 -08:00
__init__.py
apps.py mypy: Enable new error explicit-override. 2023-10-12 12:28:41 -07:00
context_processors.py page_params: Parse page_params and state_data with Zod. 2024-02-17 00:02:38 -08:00
decorator.py decorator: Rename internal_notify_view. 2024-02-15 15:42:50 -08:00
filters.py mypy: Enable new error explicit-override. 2023-10-12 12:28:41 -07:00
forms.py models: Extract zerver.models.realms. 2023-12-16 22:08:44 -08:00
logging_handlers.py error_notify: Remove custom email error reporting handler. 2023-07-20 11:00:09 -07:00
middleware.py Revert "zproject: Prevent having exactly 17/18 middlewares, for Python 3.11 bug." 2024-02-05 19:57:21 -05:00
signals.py email: Add a space after the time and AM/PM in the login email. 2023-11-27 09:47:30 -08:00