oncall-engine/engine/apps/slack/models
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
..
__init__.py World, meet OnCall! 2022-06-03 08:09:47 -06:00
slack_action_record.py World, meet OnCall! 2022-06-03 08:09:47 -06:00
slack_channel.py World, meet OnCall! 2022-06-03 08:09:47 -06:00
slack_message.py Send a Slack DM when user is not in channel (#1144) 2023-01-18 16:08:15 +00:00
slack_team_identity.py Add RBAC Support (#777) 2022-11-29 09:41:56 +01:00
slack_user_identity.py Send a Slack DM when user is not in channel (#1144) 2023-01-18 16:08:15 +00:00
slack_usergroup.py Add RBAC Support (#777) 2022-11-29 09:41:56 +01:00