oncall-engine/engine/apps
Vadim Stepanov c93ee5c554
Send a Slack DM when user is not in channel (#1144)
# What this PR does

Currently, when a user gets mentioned in an alert group thread and the
user is not in the Slack channel, the Slack bot sends the following to
the channel:

> ⚠️ Tried to ask USER to look at incident. Unfortunately USER is
not in this channel. Please, invite.

This PR changes this behaviour to instead send a direct message to the
user. The message contains a link to the main alert group message in
Slack.

<img width="806" alt="Screenshot 2023-01-17 at 19 25 36"
src="https://user-images.githubusercontent.com/20116910/212996457-02db183f-2041-4998-b743-bd5b6c84b7b5.png">


## Checklist

- [ ] Tests updated (N/A)
- [ ] Documentation added (N/A)
- [x] `CHANGELOG.md` updated
2023-01-18 16:08:15 +00:00
..
alerts Add escalation chain option when creating a direct page alert group (#1143) 2023-01-18 12:58:26 -03:00
api Allow messaging backends to be enabled/disabled per organization (#1151) 2023-01-18 15:52:25 +00:00
api_for_grafana_incident World, meet OnCall! 2022-06-03 08:09:47 -06:00
auth_token Org soft-delete (#1073) 2023-01-05 12:42:55 +08:00
base Allow messaging backends to be enabled/disabled per organization (#1151) 2023-01-18 15:52:25 +00:00
email Allow no-auth SMTP connection for email notifications (#759) 2022-11-03 16:18:37 +00:00
grafana_plugin Integration with grafana incident (#1081) 2023-01-17 13:04:50 +01:00
heartbeat Insight logs (#348) 2022-08-24 12:04:44 +05:00
integrations Add escalation chain option when creating a direct page alert group (#1143) 2023-01-18 12:58:26 -03:00
mobile_app Allow messaging backends to be enabled/disabled per organization (#1151) 2023-01-18 15:52:25 +00:00
oss_installation Add RBAC Support (#777) 2022-11-29 09:41:56 +01:00
public_api Add alert groups state filter (#1133) 2023-01-17 10:28:29 +00:00
schedules Schedule score backend (#338) 2023-01-04 16:49:58 +00:00
slack Send a Slack DM when user is not in channel (#1144) 2023-01-18 16:08:15 +00:00
social_auth Support of oncall-gw (#741) 2022-11-08 14:43:22 +08:00
telegram remove send_link_to_channel_message_or_fallback_to_full_incident 2023-01-06 11:34:11 +00:00
twilioapp Add simple check if using API key instead of AUTH token 2022-11-09 21:52:42 -07:00
user_management Integration with grafana incident (#1081) 2023-01-17 13:04:50 +01:00
__init__.py World, meet OnCall! 2022-06-03 08:09:47 -06:00