aboutsummaryrefslogtreecommitdiffstats
path: root/webui/src/components
diff options
context:
space:
mode:
authorMichael Muré <batolettre@gmail.com>2024-08-28 11:43:42 +0200
committerGitHub <noreply@github.com>2024-08-28 09:43:42 +0000
commit57e7147021e38b847213d4dc7f0e0bf0b022850d (patch)
tree882650697950003e2325f0815353032a8596ca1d /webui/src/components
parente45c3c5ee6dc5650fd8c3f480d9e09e5f3b221fd (diff)
downloadgit-bug-57e7147021e38b847213d4dc7f0e0bf0b022850d.tar.gz
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
Diffstat (limited to 'webui/src/components')
-rw-r--r--webui/src/components/BugTitleForm/SetTitle.graphql4
-rw-r--r--webui/src/components/CloseBugButton/CloseBug.graphql4
-rw-r--r--webui/src/components/CloseBugWithCommentButton/CloseBugWithComment.graphql4
-rw-r--r--webui/src/components/ReopenBugButton/OpenBug.graphql4
-rw-r--r--webui/src/components/ReopenBugWithCommentButton/ReopenBugWithComment.graphql4
5 files changed, 10 insertions, 10 deletions
diff --git a/webui/src/components/BugTitleForm/SetTitle.graphql b/webui/src/components/BugTitleForm/SetTitle.graphql
index 9dc2d096..8477b1e2 100644
--- a/webui/src/components/BugTitleForm/SetTitle.graphql
+++ b/webui/src/components/BugTitleForm/SetTitle.graphql
@@ -1,5 +1,5 @@
-mutation setTitle($input: SetTitleInput!) {
- setTitle(input: $input) {
+mutation setTitle($input: BugSetTitleInput!) {
+ bugSetTitle(input: $input) {
bug {
id
}
diff --git a/webui/src/components/CloseBugButton/CloseBug.graphql b/webui/src/components/CloseBugButton/CloseBug.graphql
index fc03d1f3..bfcb1a60 100644
--- a/webui/src/components/CloseBugButton/CloseBug.graphql
+++ b/webui/src/components/CloseBugButton/CloseBug.graphql
@@ -1,6 +1,6 @@
# Write your query or mutation here
-mutation closeBug($input: CloseBugInput!) {
- closeBug(input: $input) {
+mutation closeBug($input: BugStatusCloseInput!) {
+ bugStatusClose(input: $input) {
bug {
id
}
diff --git a/webui/src/components/CloseBugWithCommentButton/CloseBugWithComment.graphql b/webui/src/components/CloseBugWithCommentButton/CloseBugWithComment.graphql
index 66c84c35..aaa36184 100644
--- a/webui/src/components/CloseBugWithCommentButton/CloseBugWithComment.graphql
+++ b/webui/src/components/CloseBugWithCommentButton/CloseBugWithComment.graphql
@@ -1,5 +1,5 @@
-mutation AddCommentAndCloseBug($input: AddCommentAndCloseBugInput!) {
- addCommentAndClose(input: $input) {
+mutation AddCommentAndCloseBug($input: BugAddCommentAndCloseInput!) {
+ bugAddCommentAndClose(input: $input) {
statusOperation {
status
}
diff --git a/webui/src/components/ReopenBugButton/OpenBug.graphql b/webui/src/components/ReopenBugButton/OpenBug.graphql
index 12673e65..69f39058 100644
--- a/webui/src/components/ReopenBugButton/OpenBug.graphql
+++ b/webui/src/components/ReopenBugButton/OpenBug.graphql
@@ -1,5 +1,5 @@
-mutation openBug($input: OpenBugInput!) {
- openBug(input: $input) {
+mutation openBug($input: BugStatusOpenInput!) {
+ bugStatusOpen(input: $input) {
bug {
id
}
diff --git a/webui/src/components/ReopenBugWithCommentButton/ReopenBugWithComment.graphql b/webui/src/components/ReopenBugWithCommentButton/ReopenBugWithComment.graphql
index 5258a1aa..30e0d206 100644
--- a/webui/src/components/ReopenBugWithCommentButton/ReopenBugWithComment.graphql
+++ b/webui/src/components/ReopenBugWithCommentButton/ReopenBugWithComment.graphql
@@ -1,5 +1,5 @@
-mutation AddCommentAndReopenBug($input: AddCommentAndReopenBugInput!) {
- addCommentAndReopen(input: $input) {
+mutation AddCommentAndReopenBug($input: BugAddCommentAndReopenInput!) {
+ bugAddCommentAndReopen(input: $input) {
statusOperation {
status
}