Commit 32aa5df8 authored by Denys Mishunov's avatar Denys Mishunov

Merge branch 'tr-alert-assignee-performance' into 'master'

Fetch system notes when changing assignee

See merge request gitlab-org/gitlab!35575
parents 1233f212 dfd188b3
......@@ -177,9 +177,6 @@ export default {
const { category, action } = trackAlertsDetailsViewsOptions;
Tracking.event(category, action);
},
alertRefresh() {
this.$apollo.queries.alert.refetch();
},
},
};
</script>
......@@ -335,7 +332,6 @@ export default {
</gl-tabs>
<alert-sidebar
:alert="alert"
@alert-refresh="alertRefresh"
@toggle-sidebar="toggleSidebar"
@alert-error="handleAlertSidebarError"
/>
......
......@@ -65,7 +65,6 @@ export default {
:project-id="projectId"
:alert="alert"
:sidebar-collapsed="sidebarStatus"
@alert-refresh="$emit('alert-refresh')"
@toggle-sidebar="$emit('toggle-sidebar')"
@alert-error="$emit('alert-error', $event)"
/>
......
......@@ -166,13 +166,11 @@ export default {
this.hideDropdown();
if (errors[0]) {
return this.$emit(
this.$emit(
'alert-sidebar-error',
`${this.$options.i18n.UPDATE_ALERT_ASSIGNEES_GRAPHQL_ERROR} ${errors[0]}.`,
);
}
return this.$emit('alert-refresh');
})
.catch(() => {
this.$emit('alert-error', this.$options.i18n.UPDATE_ALERT_ASSIGNEES_ERROR);
......
#import "../fragments/alert_note.fragment.graphql"
mutation alertSetAssignees($projectPath: ID!, $assigneeUsernames: [String!]!, $iid: String!) {
alertSetAssignees(
input: { iid: $iid, assigneeUsernames: $assigneeUsernames, projectPath: $projectPath }
......@@ -10,6 +12,11 @@ mutation alertSetAssignees($projectPath: ID!, $assigneeUsernames: [String!]!, $i
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