From 57e7147021e38b847213d4dc7f0e0bf0b022850d Mon Sep 17 00:00:00 2001 From: Michael Muré Date: Wed, 28 Aug 2024 11:43:42 +0200 Subject: graphql: properly namespace Bug to make space for other entities (#1254) Also: use gqlgen directives to help the type auto-binding Missing: - namespace mutations - adapt the webUI queries --- webui/src/pages/bug/TimelineQuery.graphql | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'webui/src/pages/bug/TimelineQuery.graphql') diff --git a/webui/src/pages/bug/TimelineQuery.graphql b/webui/src/pages/bug/TimelineQuery.graphql index 7c9badfd..057b798a 100644 --- a/webui/src/pages/bug/TimelineQuery.graphql +++ b/webui/src/pages/bug/TimelineQuery.graphql @@ -21,20 +21,20 @@ query Timeline($id: String!, $first: Int = 10, $after: String) { } } -fragment TimelineItem on TimelineItem { - ... on LabelChangeTimelineItem { +fragment TimelineItem on BugTimelineItem { + ... on BugLabelChangeTimelineItem { ...LabelChange } - ... on SetStatusTimelineItem { + ... on BugSetStatusTimelineItem { ...SetStatus } - ... on SetTitleTimelineItem { + ... on BugSetTitleTimelineItem { ...SetTitle } - ... on AddCommentTimelineItem { + ... on BugAddCommentTimelineItem { ...AddComment } - ... on CreateTimelineItem { + ... on BugCreateTimelineItem { ...Create } } -- cgit