Commit dfd188b3 authored by Tristan Read's avatar Tristan Read Committed by Denys Mishunov

Fetch system notes when changing assignee

parent ef2ce0f3
...@@ -177,9 +177,6 @@ export default { ...@@ -177,9 +177,6 @@ export default {
const { category, action } = trackAlertsDetailsViewsOptions; const { category, action } = trackAlertsDetailsViewsOptions;
Tracking.event(category, action); Tracking.event(category, action);
}, },
alertRefresh() {
this.$apollo.queries.alert.refetch();
},
}, },
}; };
</script> </script>
...@@ -335,7 +332,6 @@ export default { ...@@ -335,7 +332,6 @@ export default {
</gl-tabs> </gl-tabs>
<alert-sidebar <alert-sidebar
:alert="alert" :alert="alert"
@alert-refresh="alertRefresh"
@toggle-sidebar="toggleSidebar" @toggle-sidebar="toggleSidebar"
@alert-error="handleAlertSidebarError" @alert-error="handleAlertSidebarError"
/> />
......
...@@ -65,7 +65,6 @@ export default { ...@@ -65,7 +65,6 @@ export default {
:project-id="projectId" :project-id="projectId"
:alert="alert" :alert="alert"
:sidebar-collapsed="sidebarStatus" :sidebar-collapsed="sidebarStatus"
@alert-refresh="$emit('alert-refresh')"
@toggle-sidebar="$emit('toggle-sidebar')" @toggle-sidebar="$emit('toggle-sidebar')"
@alert-error="$emit('alert-error', $event)" @alert-error="$emit('alert-error', $event)"
/> />
......
...@@ -163,13 +163,11 @@ export default { ...@@ -163,13 +163,11 @@ export default {
this.hideDropdown(); this.hideDropdown();
if (errors[0]) { if (errors[0]) {
return this.$emit( this.$emit(
'alert-sidebar-error', 'alert-sidebar-error',
`${this.$options.UPDATE_ALERT_ASSIGNEES_GRAPHQL_ERROR} ${errors[0]}.`, `${this.$options.UPDATE_ALERT_ASSIGNEES_GRAPHQL_ERROR} ${errors[0]}.`,
); );
} }
return this.$emit('alert-refresh');
}) })
.catch(() => { .catch(() => {
this.$emit('alert-error', this.$options.UPDATE_ALERT_ASSIGNEES_ERROR); this.$emit('alert-error', this.$options.UPDATE_ALERT_ASSIGNEES_ERROR);
......
#import "../fragments/alert_note.fragment.graphql"
mutation alertSetAssignees($projectPath: ID!, $assigneeUsernames: [String!]!, $iid: String!) { mutation alertSetAssignees($projectPath: ID!, $assigneeUsernames: [String!]!, $iid: String!) {
alertSetAssignees( alertSetAssignees(
input: { iid: $iid, assigneeUsernames: $assigneeUsernames, projectPath: $projectPath } input: { iid: $iid, assigneeUsernames: $assigneeUsernames, projectPath: $projectPath }
...@@ -10,6 +12,11 @@ mutation alertSetAssignees($projectPath: ID!, $assigneeUsernames: [String!]!, $i ...@@ -10,6 +12,11 @@ mutation alertSetAssignees($projectPath: ID!, $assigneeUsernames: [String!]!, $i
username username
} }
} }
notes {
nodes {
...AlertNote
}
}
} }
} }
} }
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment