diff --git a/docs/sources/open-source.md b/docs/sources/open-source.md index e6032929..c485e810 100644 --- a/docs/sources/open-source.md +++ b/docs/sources/open-source.md @@ -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: /slack/interactive_api_endpoint/ diff --git a/engine/apps/slack/scenarios/resolution_note.py b/engine/apps/slack/scenarios/resolution_note.py index f6c78305..cec692c6 100644 --- a/engine/apps/slack/scenarios/resolution_note.py +++ b/engine/apps/slack/scenarios/resolution_note.py @@ -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,