diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2023-07-19 17:16:28 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2023-07-19 17:16:28 +0300 |
commit | e4384360a16dd9a19d4d2d25d0ef1f2b862ed2a6 (patch) | |
tree | 2fcdfa7dcdb9db8f5208b2562f4b4e803d671243 /app/assets/javascripts/boards/constants.js | |
parent | ffda4e7bcac36987f936b4ba515995a6698698f0 (diff) |
Add latest changes from gitlab-org/gitlab@16-2-stable-eev16.2.0-rc42
Diffstat (limited to 'app/assets/javascripts/boards/constants.js')
-rw-r--r-- | app/assets/javascripts/boards/constants.js | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/app/assets/javascripts/boards/constants.js b/app/assets/javascripts/boards/constants.js index d4d1bc7804e..cb607e5220e 100644 --- a/app/assets/javascripts/boards/constants.js +++ b/app/assets/javascripts/boards/constants.js @@ -1,6 +1,7 @@ import boardListsQuery from 'ee_else_ce/boards/graphql/board_lists.query.graphql'; import { TYPE_EPIC, TYPE_ISSUE, WORKSPACE_GROUP, WORKSPACE_PROJECT } from '~/issues/constants'; import { s__, __ } from '~/locale'; +import { TYPENAME_ISSUE } from '~/graphql_shared/constants'; import updateEpicSubscriptionMutation from '~/sidebar/queries/update_epic_subscription.mutation.graphql'; import updateEpicTitleMutation from '~/sidebar/queries/update_epic_title.mutation.graphql'; import createBoardListMutation from './graphql/board_list_create.mutation.graphql'; @@ -11,6 +12,7 @@ import toggleListCollapsedMutation from './graphql/client/board_toggle_collapsed import issueSetSubscriptionMutation from './graphql/issue_set_subscription.mutation.graphql'; import issueSetTitleMutation from './graphql/issue_set_title.mutation.graphql'; import issueMoveListMutation from './graphql/issue_move_list.mutation.graphql'; +import issueCreateMutation from './graphql/issue_create.mutation.graphql'; import groupBoardQuery from './graphql/group_board.query.graphql'; import projectBoardQuery from './graphql/project_board.query.graphql'; import listIssuesQuery from './graphql/lists_issues.query.graphql'; @@ -126,6 +128,30 @@ export const listIssuablesQueries = { [TYPE_ISSUE]: { query: listIssuesQuery, moveMutation: issueMoveListMutation, + createMutation: issueCreateMutation, + optimisticResponse: { + assignees: { nodes: [], __typename: 'UserCoreConnection' }, + confidential: false, + dueDate: null, + emailsDisabled: false, + hidden: false, + humanTimeEstimate: null, + humanTotalTimeSpent: null, + id: 'gid://gitlab/Issue/-1', + iid: '-1', + labels: { nodes: [], __typename: 'LabelConnection' }, + milestone: null, + referencePath: '', + relativePosition: null, + severity: 'UNKNOWN', + timeEstimate: 0, + title: '', + totalTimeSpent: 0, + type: 'ISSUE', + webUrl: '', + weight: null, + __typename: TYPENAME_ISSUE, + }, }, }; |