Rename Incident to Alert Group (#1512)

# What this PR does

## Which issue(s) this PR fixes

## Checklist

- [ ] Tests updated
- [ ] Documentation added
- [ ] `CHANGELOG.md` updated
This commit is contained in:
Ildar Iskhakov 2023-03-09 16:57:13 +08:00 committed by GitHub
parent 89017bd874
commit 6614d50427
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions

View file

@ -194,7 +194,7 @@ class OpenAlertAppearanceDialogStep(
"type": "modal",
"title": {
"type": "plain_text",
"text": "Incident template",
"text": "Alert group template",
},
"submit": {
"type": "plain_text",

View file

@ -302,7 +302,7 @@ class SelectAttachGroupStep(
scenario_step.ScenarioStep,
):
REQUIRED_PERMISSIONS = [RBACPermission.Permissions.CHATOPS_WRITE]
ACTION_VERBOSE = "Select Incident for Attaching to"
ACTION_VERBOSE = "Select Alert Group for Attaching to"
def process_scenario(self, slack_user_identity, slack_team_identity, payload):
AlertGroup = apps.get_model("alerts", "AlertGroup")
@ -319,7 +319,7 @@ class SelectAttachGroupStep(
"type": "modal",
"title": {
"type": "plain_text",
"text": "Attach to Incident",
"text": "Attach to Alert Group",
},
"private_metadata": json.dumps(
{
@ -715,7 +715,7 @@ class UnAcknowledgeGroupStep(
]
text = (
f"{user_verbal} hasn't responded to an acknowledge timeout reminder."
f" Incident is unacknowledged automatically"
f" Alert Group is unacknowledged automatically"
)
if alert_group.slack_message.ack_reminder_message_ts:
try: