diff --git a/src/dispatch/incident/service.py b/src/dispatch/incident/service.py index 9d02a2bedf83..1048dc0b5e3d 100644 --- a/src/dispatch/incident/service.py +++ b/src/dispatch/incident/service.py @@ -209,7 +209,6 @@ def create(*, db_session, incident_in: IncidentCreate) -> Incident: "visibility": incident.visibility, }, individual_id=incident_in.reporter.individual.id, - owner=incident_in.reporter.individual.name, incident_id=incident.id, owner=reporter_name, pinned=True, @@ -281,7 +280,9 @@ def create(*, db_session, incident_in: IncidentCreate) -> Incident: ) # add observer (if engage_next_oncall is enabled) - incident_role = resolve_role(db_session=db_session, role=ParticipantRoleType.incident_commander, incident=incident) + incident_role = resolve_role( + db_session=db_session, role=ParticipantRoleType.incident_commander, incident=incident + ) if incident_role and incident_role.engage_next_oncall: oncall_plugin = plugin_service.get_active_instance( db_session=db_session, project_id=incident.project.id, plugin_type="oncall" @@ -289,7 +290,9 @@ def create(*, db_session, incident_in: IncidentCreate) -> Incident: if not oncall_plugin: log.debug("Resolved observer role not available since oncall plugin is not active.") else: - oncall_email = oncall_plugin.instance.get_next_oncall(service_id=incident_role.service.external_id) + oncall_email = oncall_plugin.instance.get_next_oncall( + service_id=incident_role.service.external_id + ) if oncall_email: participant_flows.add_participant( oncall_email, diff --git a/src/dispatch/plugins/dispatch_google/docs/plugin.py b/src/dispatch/plugins/dispatch_google/docs/plugin.py index 797fadc26077..1d52a873e71e 100644 --- a/src/dispatch/plugins/dispatch_google/docs/plugin.py +++ b/src/dispatch/plugins/dispatch_google/docs/plugin.py @@ -87,7 +87,6 @@ def get_table_details(self, document_id: str, header: str): header_section = False table_exists = False table_indices = [] - log.debug(document_content) headingId = "" for i, element in enumerate(document_content): if "paragraph" in element and "elements" in element["paragraph"]: @@ -100,12 +99,7 @@ def get_table_details(self, document_id: str, header: str): elif header_section: # Gets the end index of any text below the header - if ( - header_section - and item["textRun"]["content"].strip() - and element["paragraph"].get("paragraphStyle")["headingId"] - != headingId - ): + if header_section and item["textRun"]["content"].strip(): header_index = item["endIndex"] # checking if we are past header in question if ( diff --git a/src/dispatch/static/dispatch/src/case/CaseStatusSelectGroup.vue b/src/dispatch/static/dispatch/src/case/CaseStatusSelectGroup.vue index 5859c3643bf6..f1b67632975c 100644 --- a/src/dispatch/static/dispatch/src/case/CaseStatusSelectGroup.vue +++ b/src/dispatch/static/dispatch/src/case/CaseStatusSelectGroup.vue @@ -5,13 +5,13 @@ Update Case Status Are you sure you want to change the case status from - {{ - modelValue.status - }} + + {{ modelValue.status }} + to - {{ - selectedStatus - }} + + {{ selectedStatus }} + ? @@ -27,9 +27,9 @@ Status Not Changed This case was moved to the status - {{ - selectedStatus - }} + + {{ selectedStatus }} + on