Merge pull request #335 from grafana/iskhakov/fix-resolution-notes
Fix resolution notes bug
This commit is contained in:
commit
a50cdb3be4
2 changed files with 4 additions and 6 deletions
|
|
@ -79,10 +79,10 @@ lt --port 8080 -s pretty-turkey-83 --print-requests
|
|||
type: message
|
||||
callback_id: incident_create
|
||||
description: Creates a new OnCall incident
|
||||
- name: Add to postmortem
|
||||
- name: Add to resolution note
|
||||
type: message
|
||||
callback_id: add_postmortem
|
||||
description: Add this message to postmortem
|
||||
callback_id: add_resolution_note
|
||||
description: Add this message to resolution note
|
||||
slash_commands:
|
||||
- command: /oncall
|
||||
url: <ONCALL_ENGINE_PUBLIC_URL>/slack/interactive_api_endpoint/
|
||||
|
|
|
|||
|
|
@ -133,8 +133,6 @@ class AddToResolutionNoteStep(CheckAlertIsUnarchivedMixin, scenario_step.Scenari
|
|||
).save()
|
||||
else:
|
||||
resolution_note.recreate()
|
||||
alert_group.drop_cached_after_resolve_report_json()
|
||||
alert_group.schedule_cache_for_web()
|
||||
try:
|
||||
self._slack_client.api_call(
|
||||
"reactions.add",
|
||||
|
|
@ -704,7 +702,7 @@ class AddRemoveThreadMessageStep(UpdateResolutionNoteStep, scenario_step.Scenari
|
|||
# Show error message
|
||||
resolution_note_data = json.loads(payload["actions"][0]["value"])
|
||||
resolution_note_data["resolution_note_window_action"] = "edit_update_error"
|
||||
return ResolutionNoteModalStep(slack_team_identity).process_scenario(
|
||||
return ResolutionNoteModalStep(slack_team_identity, self.organization, self.user).process_scenario(
|
||||
slack_user_identity,
|
||||
slack_team_identity,
|
||||
payload,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue