-
Notifications
You must be signed in to change notification settings - Fork 300
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update Slack "invite" feature to use direct paging #2562
Changes from all commits
749ed16
778cea8
651d03c
612462b
1ea9357
c3c151d
eb6cf0e
9717f2f
089f33c
5b3bb34
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -28,7 +28,7 @@ | |
|
||
def _trigger_alert( | ||
organization: Organization, | ||
team: Team, | ||
team: Team | None, | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. team is |
||
title: str, | ||
message: str, | ||
from_user: User, | ||
|
@@ -133,7 +133,7 @@ def check_user_availability(user: User) -> list[dict[str, Any]]: | |
|
||
def direct_paging( | ||
organization: Organization, | ||
team: Team, | ||
team: Team | None, | ||
from_user: User, | ||
title: str = None, | ||
message: str = None, | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -212,6 +212,11 @@ def process_scenario(self, slack_user_identity, slack_team_identity, payload): | |
|
||
|
||
class InviteOtherPersonToIncident(AlertGroupActionsMixin, scenario_step.ScenarioStep): | ||
""" | ||
THIS SCENARIO STEP IS DEPRECATED AND WILL BE REMOVED IN THE FUTURE. | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. These are now deprecated, since new messages are rendered without the "Invite..." dropdown. |
||
Check out apps/slack/scenarios/manage_responders.py for the new version that uses direct paging. | ||
""" | ||
|
||
REQUIRED_PERMISSIONS = [RBACPermission.Permissions.CHATOPS_WRITE] | ||
|
||
def process_scenario(self, slack_user_identity, slack_team_identity, payload): | ||
|
@@ -490,6 +495,11 @@ def process_signal(self, log_record): | |
|
||
|
||
class StopInvitationProcess(AlertGroupActionsMixin, scenario_step.ScenarioStep): | ||
""" | ||
THIS SCENARIO STEP IS DEPRECATED AND WILL BE REMOVED IN THE FUTURE. | ||
Check out apps/slack/scenarios/manage_responders.py for the new version that uses direct paging. | ||
""" | ||
|
||
REQUIRED_PERMISSIONS = [RBACPermission.Permissions.CHATOPS_WRITE] | ||
|
||
def process_scenario(self, slack_user_identity, slack_team_identity, payload): | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
moving from here to make it reusable