Commit d5f071c1 authored by Nicolò Maria Mezzopera's avatar Nicolò Maria Mezzopera

Merge branch '295617-foss-master-broken-spec-features-boards-multiple_boards_spec-rb' into 'master'

[RUN-AS-IF-FOSS] Change createBoard input

See merge request gitlab-org/gitlab!50564
parents 4ed3010b bf01c551
...@@ -162,8 +162,15 @@ export default { ...@@ -162,8 +162,15 @@ export default {
mutationVariables() { mutationVariables() {
const { board } = this; const { board } = this;
/* eslint-disable @gitlab/require-i18n-strings */ /* eslint-disable @gitlab/require-i18n-strings */
const baseMutationVariables = { let baseMutationVariables = {
name: board.name, name: board.name,
hideBacklogList: board.hide_backlog_list,
hideClosedList: board.hide_closed_list,
};
if (this.scopedIssueBoardFeatureEnabled) {
baseMutationVariables = {
...baseMutationVariables,
weight: board.weight, weight: board.weight,
assigneeId: board.assignee?.id ? convertToGraphQLId('User', board.assignee.id) : null, assigneeId: board.assignee?.id ? convertToGraphQLId('User', board.assignee.id) : null,
milestoneId: milestoneId:
...@@ -171,12 +178,11 @@ export default { ...@@ -171,12 +178,11 @@ export default {
? convertToGraphQLId('Milestone', board.milestone.id) ? convertToGraphQLId('Milestone', board.milestone.id)
: null, : null,
labelIds: board.labels.map(fullLabelId), labelIds: board.labels.map(fullLabelId),
hideBacklogList: board.hide_backlog_list,
hideClosedList: board.hide_closed_list,
iterationId: board.iteration_id iterationId: board.iteration_id
? convertToGraphQLId('Iteration', board.iteration_id) ? convertToGraphQLId('Iteration', board.iteration_id)
: null, : null,
}; };
}
/* eslint-enable @gitlab/require-i18n-strings */ /* eslint-enable @gitlab/require-i18n-strings */
return board.id return board.id
? { ? {
......
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