Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
b6b99e4d
Commit
b6b99e4d
authored
Apr 29, 2021
by
Florie Guibert
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Refactor shared board action
Refactor fetchLists action
parent
0d8a22ff
Changes
10
Show whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
59 additions
and
165 deletions
+59
-165
app/assets/javascripts/boards/constants.js
app/assets/javascripts/boards/constants.js
+8
-0
app/assets/javascripts/boards/index.js
app/assets/javascripts/boards/index.js
+2
-0
app/assets/javascripts/boards/stores/actions.js
app/assets/javascripts/boards/stores/actions.js
+11
-16
app/assets/javascripts/boards/stores/mutations.js
app/assets/javascripts/boards/stores/mutations.js
+2
-1
ee/app/assets/javascripts/boards/constants.js
ee/app/assets/javascripts/boards/constants.js
+14
-15
ee/app/assets/javascripts/boards/graphql/epic_board_lists.query.graphql
...javascripts/boards/graphql/epic_board_lists.query.graphql
+1
-1
ee/app/assets/javascripts/boards/stores/actions.js
ee/app/assets/javascripts/boards/stores/actions.js
+2
-33
ee/app/assets/javascripts/epic_boards/index.js
ee/app/assets/javascripts/epic_boards/index.js
+2
-1
ee/spec/frontend/boards/stores/actions_spec.js
ee/spec/frontend/boards/stores/actions_spec.js
+5
-77
spec/frontend/boards/stores/actions_spec.js
spec/frontend/boards/stores/actions_spec.js
+12
-21
No files found.
app/assets/javascripts/boards/constants.js
View file @
b6b99e4d
import
boardListsQuery
from
'
ee_else_ce/boards/graphql/board_lists.query.graphql
'
;
import
{
__
}
from
'
~/locale
'
;
import
updateEpicSubscriptionMutation
from
'
~/sidebar/queries/update_epic_subscription.mutation.graphql
'
;
import
updateEpicTitleMutation
from
'
~/sidebar/queries/update_epic_title.mutation.graphql
'
;
import
boardBlockingIssuesQuery
from
'
./graphql/board_blocking_issues.query.graphql
'
;
import
destroyBoardListMutation
from
'
./graphql/board_list_destroy.mutation.graphql
'
;
import
updateBoardListMutation
from
'
./graphql/board_list_update.mutation.graphql
'
;
import
issueSetSubscriptionMutation
from
'
./graphql/issue_set_subscription.mutation.graphql
'
;
import
issueSetTitleMutation
from
'
./graphql/issue_set_title.mutation.graphql
'
;
...
...
@@ -62,6 +64,12 @@ export const NOT_FILTER = 'not[';
export
const
flashAnimationDuration
=
2000
;
export
const
listsQuery
=
{
[
issuableTypes
.
issue
]:
{
query
:
boardListsQuery
,
},
};
export
const
blockingIssuablesQueries
=
{
[
issuableTypes
.
issue
]:
{
query
:
boardBlockingIssuesQuery
,
...
...
app/assets/javascripts/boards/index.js
View file @
b6b99e4d
...
...
@@ -37,6 +37,7 @@ import {
import
{
__
}
from
'
~/locale
'
;
import
sidebarEventHub
from
'
~/sidebar/event_hub
'
;
import
introspectionQueryResultData
from
'
~/sidebar/fragmentTypes.json
'
;
import
{
fullBoardId
}
from
'
./boards_util
'
;
import
boardConfigToggle
from
'
./config_toggle
'
;
import
mountMultipleBoardsSwitcher
from
'
./mount_multiple_boards_switcher
'
;
...
...
@@ -135,6 +136,7 @@ export default () => {
created
()
{
this
.
setInitialBoardData
({
boardId
:
$boardApp
.
dataset
.
boardId
,
fullBoardId
:
fullBoardId
(
$boardApp
.
dataset
.
boardId
),
fullPath
:
$boardApp
.
dataset
.
fullPath
,
boardType
:
this
.
parent
,
disabled
:
this
.
disabled
,
...
...
app/assets/javascripts/boards/stores/actions.js
View file @
b6b99e4d
...
...
@@ -9,10 +9,10 @@ import {
subscriptionQueries
,
SupportedFilters
,
deleteListQueries
,
listsQuery
,
updateListQueries
,
}
from
'
ee_else_ce/boards/constants
'
;
import
createBoardListMutation
from
'
ee_else_ce/boards/graphql/board_list_create.mutation.graphql
'
;
import
boardListsQuery
from
'
ee_else_ce/boards/graphql/board_lists.query.graphql
'
;
import
issueMoveListMutation
from
'
ee_else_ce/boards/graphql/issue_move_list.mutation.graphql
'
;
import
{
getIdFromGraphQLId
}
from
'
~/graphql_shared/utils
'
;
import
createGqClient
,
{
fetchPolicies
}
from
'
~/lib/graphql
'
;
...
...
@@ -21,7 +21,6 @@ import { s__ } from '~/locale';
import
{
formatBoardLists
,
formatListIssues
,
fullBoardId
,
formatListsPageInfo
,
formatIssue
,
formatIssueInput
,
...
...
@@ -86,16 +85,12 @@ export default {
}
},
fetchLists
:
({
dispatch
})
=>
{
dispatch
(
'
fetchIssueLists
'
);
},
fetchIssueLists
:
({
commit
,
state
,
dispatch
})
=>
{
const
{
boardType
,
filterParams
,
fullPath
,
boardId
}
=
state
;
fetchLists
:
({
commit
,
state
,
dispatch
})
=>
{
const
{
boardType
,
filterParams
,
fullPath
,
fullBoardId
,
issuableType
}
=
state
;
const
variables
=
{
fullPath
,
boardId
:
fullBoardId
(
boardId
)
,
boardId
:
fullBoardId
,
filters
:
filterParams
,
isGroup
:
boardType
===
BoardType
.
group
,
isProject
:
boardType
===
BoardType
.
project
,
...
...
@@ -103,7 +98,7 @@ export default {
return
gqlClient
.
query
({
query
:
boardListsQ
uery
,
query
:
listsQuery
[
issuableType
].
q
uery
,
variables
,
})
.
then
(({
data
})
=>
{
...
...
@@ -137,7 +132,7 @@ export default {
{
state
,
commit
,
dispatch
,
getters
},
{
backlog
,
labelId
,
milestoneId
,
assigneeId
,
iterationId
},
)
=>
{
const
{
b
oardId
}
=
state
;
const
{
fullB
oardId
}
=
state
;
const
existingList
=
getters
.
getListByLabelId
(
labelId
);
...
...
@@ -150,7 +145,7 @@ export default {
.
mutate
({
mutation
:
createBoardListMutation
,
variables
:
{
boardId
:
fullBoardId
(
boardId
)
,
boardId
:
fullBoardId
,
backlog
,
labelId
,
milestoneId
,
...
...
@@ -296,11 +291,11 @@ export default {
fetchItemsForList
:
({
state
,
commit
},
{
listId
,
fetchNext
=
false
})
=>
{
commit
(
types
.
REQUEST_ITEMS_FOR_LIST
,
{
listId
,
fetchNext
});
const
{
fullPath
,
b
oardId
,
boardType
,
filterParams
}
=
state
;
const
{
fullPath
,
fullB
oardId
,
boardType
,
filterParams
}
=
state
;
const
variables
=
{
fullPath
,
boardId
:
fullBoardId
(
boardId
)
,
boardId
:
fullBoardId
,
id
:
listId
,
filters
:
filterParams
,
isGroup
:
boardType
===
BoardType
.
group
,
...
...
@@ -429,7 +424,7 @@ export default {
try
{
const
{
itemId
,
fromListId
,
toListId
,
moveBeforeId
,
moveAfterId
}
=
moveData
;
const
{
b
oardId
,
fullB
oardId
,
boardItems
:
{
[
itemId
]:
{
iid
,
referencePath
},
},
...
...
@@ -440,7 +435,7 @@ export default {
variables
:
{
iid
,
projectPath
:
referencePath
.
split
(
/
[
#
]
/
)[
0
],
boardId
:
fullBoardId
(
boardId
)
,
boardId
:
fullBoardId
,
fromListId
:
getIdFromGraphQLId
(
fromListId
),
toListId
:
getIdFromGraphQLId
(
toListId
),
moveBeforeId
,
...
...
app/assets/javascripts/boards/stores/mutations.js
View file @
b6b99e4d
...
...
@@ -40,8 +40,9 @@ export const addItemToList = ({ state, listId, itemId, moveBeforeId, moveAfterId
export
default
{
[
mutationTypes
.
SET_INITIAL_BOARD_DATA
](
state
,
data
)
{
const
{
boardType
,
disabled
,
boardId
,
fullPath
,
boardConfig
,
issuableType
}
=
data
;
const
{
boardType
,
disabled
,
boardId
,
full
BoardId
,
full
Path
,
boardConfig
,
issuableType
}
=
data
;
state
.
boardId
=
boardId
;
state
.
fullBoardId
=
fullBoardId
;
state
.
fullPath
=
fullPath
;
state
.
boardType
=
boardType
;
state
.
disabled
=
disabled
;
...
...
ee/app/assets/javascripts/boards/constants.js
View file @
b6b99e4d
...
...
@@ -4,8 +4,10 @@ import updateBoardListMutation from '~/boards/graphql/board_list_update.mutation
import
{
s__
}
from
'
~/locale
'
;
import
boardListsQuery
from
'
./graphql/board_lists.query.graphql
'
;
import
destroyEpicBoardListMutation
from
'
./graphql/epic_board_list_destroy.mutation.graphql
'
;
import
updateEpicBoardListMutation
from
'
./graphql/epic_board_list_update.mutation.graphql
'
;
import
epicBoardListsQuery
from
'
./graphql/epic_board_lists.query.graphql
'
;
export
const
DRAGGABLE_TAG
=
'
div
'
;
...
...
@@ -61,6 +63,18 @@ export const ErrorMessages = {
),
};
/* eslint-disable import/export */
export
*
from
'
~/boards/constants
'
;
export
const
listsQuery
=
{
[
issuableTypes
.
issue
]:
{
query
:
boardListsQuery
,
},
[
issuableTypes
.
epic
]:
{
query
:
epicBoardListsQuery
,
},
};
export
const
updateListQueries
=
{
[
issuableTypes
.
issue
]:
{
mutation
:
updateBoardListMutation
,
...
...
@@ -79,22 +93,7 @@ export const deleteListQueries = {
},
};
// re-export some FOSS constants so that lint does not yell
// https://gitlab.com/gitlab-org/gitlab/-/issues/329164
export
{
BoardType
,
ListType
,
inactiveId
,
flashAnimationDuration
,
ISSUABLE
,
titleQueries
,
subscriptionQueries
,
SupportedFilters
,
}
from
'
~/boards/constants
'
;
export
default
{
deleteListQueries
,
updateListQueries
,
DRAGGABLE_TAG
,
EpicFilterType
,
};
ee/app/assets/javascripts/boards/graphql/epic_board_lists.query.graphql
View file @
b6b99e4d
...
...
@@ -2,7 +2,7 @@
query
ListEpics
(
$fullPath
:
ID
!,
$boardId
:
BoardsEpicBoardID
!)
{
group
(
fullPath
:
$fullPath
)
{
epicBoard
(
id
:
$boardId
)
{
board
:
epicBoard
(
id
:
$boardId
)
{
lists
{
nodes
{
...
EpicBoardListFragment
...
...
ee/app/assets/javascripts/boards/stores/actions.js
View file @
b6b99e4d
import
{
formatBoardLists
,
formatListIssues
,
formatListsPageInfo
,
fullBoardId
,
...
...
@@ -36,7 +35,6 @@ import {
}
from
'
../constants
'
;
import
epicQuery
from
'
../graphql/epic.query.graphql
'
;
import
createEpicBoardListMutation
from
'
../graphql/epic_board_list_create.mutation.graphql
'
;
import
epicBoardListsQuery
from
'
../graphql/epic_board_lists.query.graphql
'
;
import
epicMoveListMutation
from
'
../graphql/epic_move_list.mutation.graphql
'
;
import
epicsSwimlanesQuery
from
'
../graphql/epics_swimlanes.query.graphql
'
;
import
groupBoardAssigneesQuery
from
'
../graphql/group_board_assignees.query.graphql
'
;
...
...
@@ -164,7 +162,7 @@ export default {
dispatch
(
'
resetEpics
'
);
dispatch
(
'
resetIssues
'
);
dispatch
(
'
fetchEpicsSwimlanes
'
);
dispatch
(
'
fetch
Issue
Lists
'
);
dispatch
(
'
fetchLists
'
);
}
else
if
(
gon
.
features
.
graphqlBoardLists
||
getters
.
isEpicBoard
)
{
dispatch
(
'
fetchLists
'
);
dispatch
(
'
resetIssues
'
);
...
...
@@ -354,7 +352,7 @@ export default {
}),
);
dispatch
(
'
fetchEpicsSwimlanes
'
);
dispatch
(
'
fetch
Issue
Lists
'
);
dispatch
(
'
fetchLists
'
);
}
else
if
(
!
gon
.
features
.
graphqlBoardLists
)
{
historyPushState
(
removeParams
([
'
group_by
'
]),
window
.
location
.
href
,
true
);
boardsStore
.
create
();
...
...
@@ -541,35 +539,6 @@ export default {
);
},
fetchLists
:
({
getters
,
dispatch
})
=>
{
if
(
!
getters
.
isEpicBoard
)
{
dispatch
(
'
fetchIssueLists
'
);
}
else
{
dispatch
(
'
fetchEpicLists
'
);
}
},
fetchEpicLists
:
({
commit
,
state
})
=>
{
const
{
filterParams
,
fullPath
,
boardId
}
=
state
;
const
variables
=
{
fullPath
,
boardId
:
fullEpicBoardId
(
boardId
),
filters
:
filterParams
,
};
return
gqlClient
.
query
({
query
:
epicBoardListsQuery
,
variables
,
})
.
then
(({
data
})
=>
{
const
{
lists
}
=
data
.
group
?.
epicBoard
;
commit
(
types
.
RECEIVE_BOARD_LISTS_SUCCESS
,
formatBoardLists
(
lists
));
})
.
catch
(()
=>
commit
(
types
.
RECEIVE_BOARD_LISTS_FAILURE
));
},
fetchMilestones
({
state
,
commit
},
searchTerm
)
{
commit
(
types
.
RECEIVE_MILESTONES_REQUEST
);
...
...
ee/app/assets/javascripts/epic_boards/index.js
View file @
b6b99e4d
...
...
@@ -6,7 +6,7 @@ import Vue from 'vue';
import
VueApollo
from
'
vue-apollo
'
;
import
{
mapActions
,
mapState
}
from
'
vuex
'
;
import
{
transformBoardConfig
}
from
'
ee_component/boards/boards_util
'
;
import
{
fullEpicBoardId
,
transformBoardConfig
}
from
'
ee_component/boards/boards_util
'
;
import
BoardSidebar
from
'
ee_component/boards/components/board_sidebar
'
;
import
toggleLabels
from
'
ee_component/boards/toggle_labels
'
;
...
...
@@ -99,6 +99,7 @@ export default () => {
created
()
{
this
.
setInitialBoardData
({
boardId
:
$boardApp
.
dataset
.
boardId
,
fullBoardId
:
fullEpicBoardId
(
$boardApp
.
dataset
.
boardId
),
fullPath
:
$boardApp
.
dataset
.
fullPath
,
boardType
:
this
.
parent
,
disabled
:
this
.
disabled
,
...
...
ee/spec/frontend/boards/stores/actions_spec.js
View file @
b6b99e4d
...
...
@@ -10,8 +10,7 @@ import mutations from 'ee/boards/stores/mutations';
import
{
TEST_HOST
}
from
'
helpers/test_constants
'
;
import
testAction
from
'
helpers/vuex_action_helper
'
;
import
{
mockMoveIssueParams
,
mockMoveData
,
mockMoveState
}
from
'
jest/boards/mock_data
'
;
import
{
formatBoardLists
,
formatListIssues
}
from
'
~/boards/boards_util
'
;
import
{
issuableTypes
}
from
'
~/boards/constants
'
;
import
{
formatListIssues
}
from
'
~/boards/boards_util
'
;
import
listsIssuesQuery
from
'
~/boards/graphql/lists_issues.query.graphql
'
;
import
*
as
typesCE
from
'
~/boards/stores/mutation_types
'
;
import
*
as
commonUtils
from
'
~/lib/utils/common_utils
'
;
...
...
@@ -137,7 +136,7 @@ describe('performSearch', () => {
});
});
it
(
'
should dispatch setFilters, resetEpics, fetchEpicsSwimlanes, fetch
Issue
Lists and resetIssues action when isSwimlanesOn
'
,
async
()
=>
{
it
(
'
should dispatch setFilters, resetEpics, fetchEpicsSwimlanes, fetchLists and resetIssues action when isSwimlanesOn
'
,
async
()
=>
{
const
getters
=
{
isSwimlanesOn
:
true
};
await
testAction
({
action
:
actions
.
performSearch
,
...
...
@@ -147,78 +146,7 @@ describe('performSearch', () => {
{
type
:
'
resetEpics
'
},
{
type
:
'
resetIssues
'
},
{
type
:
'
fetchEpicsSwimlanes
'
},
{
type
:
'
fetchIssueLists
'
},
],
});
});
});
describe
(
'
fetchLists
'
,
()
=>
{
it
(
'
should dispatch fetchIssueLists action when isEpicBoard is false
'
,
async
()
=>
{
const
getters
=
{
isEpicBoard
:
false
};
await
testAction
({
action
:
actions
.
fetchLists
,
state
:
{
issuableType
:
issuableTypes
.
issue
,
...
getters
},
expectedActions
:
[{
type
:
'
fetchIssueLists
'
}],
});
});
it
(
'
should dispatch fetchEpicLists action when isEpicBoard is true
'
,
async
()
=>
{
const
getters
=
{
isEpicBoard
:
true
};
await
testAction
({
action
:
actions
.
fetchLists
,
state
:
{
issuableType
:
issuableTypes
.
epic
,
...
getters
},
expectedActions
:
[{
type
:
'
fetchEpicLists
'
}],
});
});
});
describe
(
'
fetchEpicLists
'
,
()
=>
{
const
state
=
{
fullPath
:
'
gitlab-org
'
,
boardId
:
'
1
'
,
filterParams
:
{},
};
const
queryResponse
=
{
data
:
{
group
:
{
epicBoard
:
{
lists
:
{
nodes
:
mockLists
,
},
},
},
},
};
const
formattedLists
=
formatBoardLists
(
queryResponse
.
data
.
group
.
epicBoard
.
lists
);
it
(
'
should commit mutations RECEIVE_BOARD_LISTS_SUCCESS on success
'
,
async
()
=>
{
jest
.
spyOn
(
gqlClient
,
'
query
'
).
mockResolvedValue
(
queryResponse
);
await
testAction
({
action
:
actions
.
fetchEpicLists
,
state
,
expectedMutations
:
[
{
type
:
types
.
RECEIVE_BOARD_LISTS_SUCCESS
,
payload
:
formattedLists
,
},
],
});
});
it
(
'
should commit mutations RECEIVE_BOARD_LISTS_FAILURE on failure
'
,
async
()
=>
{
jest
.
spyOn
(
gqlClient
,
'
query
'
).
mockResolvedValue
(
Promise
.
reject
());
await
testAction
({
action
:
actions
.
fetchEpicLists
,
state
,
expectedMutations
:
[
{
type
:
types
.
RECEIVE_BOARD_LISTS_FAILURE
,
},
{
type
:
'
fetchLists
'
},
],
});
});
...
...
@@ -595,7 +523,7 @@ describe('toggleEpicSwimlanes', () => {
);
});
it
(
'
should dispatch fetchEpicsSwimlanes and fetch
Issue
Lists actions when isShowingEpicsSwimlanes is true
'
,
()
=>
{
it
(
'
should dispatch fetchEpicsSwimlanes and fetchLists actions when isShowingEpicsSwimlanes is true
'
,
()
=>
{
global
.
jsdom
.
reconfigure
({
url
:
`
${
TEST_HOST
}
/groups/gitlab-org/-/boards/1`
,
});
...
...
@@ -613,7 +541,7 @@ describe('toggleEpicSwimlanes', () => {
null
,
state
,
[{
type
:
types
.
TOGGLE_EPICS_SWIMLANES
}],
[{
type
:
'
fetchEpicsSwimlanes
'
},
{
type
:
'
fetch
Issue
Lists
'
}],
[{
type
:
'
fetchEpicsSwimlanes
'
},
{
type
:
'
fetchLists
'
}],
()
=>
{
expect
(
commonUtils
.
historyPushState
).
toHaveBeenCalledWith
(
mergeUrlParams
({
group_by
:
GroupByParamType
.
epic
},
window
.
location
.
href
),
...
...
spec/frontend/boards/stores/actions_spec.js
View file @
b6b99e4d
...
...
@@ -2,7 +2,6 @@ import * as Sentry from '@sentry/browser';
import
issueMoveListMutation
from
'
ee_else_ce/boards/graphql/issue_move_list.mutation.graphql
'
;
import
testAction
from
'
helpers/vuex_action_helper
'
;
import
{
fullBoardId
,
formatListIssues
,
formatBoardLists
,
formatIssueInput
,
...
...
@@ -132,20 +131,12 @@ describe('setActiveId', () => {
});
describe
(
'
fetchLists
'
,
()
=>
{
it
(
'
should dispatch fetchIssueLists action
'
,
()
=>
{
testAction
({
action
:
actions
.
fetchLists
,
expectedActions
:
[{
type
:
'
fetchIssueLists
'
}],
});
});
});
describe
(
'
fetchIssueLists
'
,
()
=>
{
const
state
=
{
fullPath
:
'
gitlab-org
'
,
boardId
:
'
1
'
,
fullBoardId
:
'
gid://gitlab/Board/
1
'
,
filterParams
:
{},
boardType
:
'
group
'
,
issuableType
:
'
issue
'
,
};
let
queryResponse
=
{
...
...
@@ -167,7 +158,7 @@ describe('fetchIssueLists', () => {
jest
.
spyOn
(
gqlClient
,
'
query
'
).
mockResolvedValue
(
queryResponse
);
testAction
(
actions
.
fetch
Issue
Lists
,
actions
.
fetchLists
,
{},
state
,
[
...
...
@@ -185,7 +176,7 @@ describe('fetchIssueLists', () => {
jest
.
spyOn
(
gqlClient
,
'
query
'
).
mockResolvedValue
(
Promise
.
reject
());
testAction
(
actions
.
fetch
Issue
Lists
,
actions
.
fetchLists
,
{},
state
,
[
...
...
@@ -214,7 +205,7 @@ describe('fetchIssueLists', () => {
jest
.
spyOn
(
gqlClient
,
'
query
'
).
mockResolvedValue
(
queryResponse
);
testAction
(
actions
.
fetch
Issue
Lists
,
actions
.
fetchLists
,
{},
state
,
[
...
...
@@ -248,7 +239,7 @@ describe('createIssueList', () => {
beforeEach
(()
=>
{
state
=
{
fullPath
:
'
gitlab-org
'
,
boardId
:
'
1
'
,
fullBoardId
:
'
gid://gitlab/Board/
1
'
,
boardType
:
'
group
'
,
disabled
:
false
,
boardLists
:
[{
type
:
'
closed
'
}],
...
...
@@ -378,7 +369,7 @@ describe('moveList', () => {
const
state
=
{
fullPath
:
'
gitlab-org
'
,
boardId
:
'
1
'
,
fullBoardId
:
'
gid://gitlab/Board/
1
'
,
boardType
:
'
group
'
,
disabled
:
false
,
boardLists
:
initialBoardListsState
,
...
...
@@ -421,7 +412,7 @@ describe('moveList', () => {
const
state
=
{
fullPath
:
'
gitlab-org
'
,
boardId
:
'
1
'
,
fullBoardId
:
'
gid://gitlab/Board/
1
'
,
boardType
:
'
group
'
,
disabled
:
false
,
boardLists
:
initialBoardListsState
,
...
...
@@ -455,7 +446,7 @@ describe('updateList', () => {
const
state
=
{
fullPath
:
'
gitlab-org
'
,
boardId
:
'
1
'
,
fullBoardId
:
'
gid://gitlab/Board/
1
'
,
boardType
:
'
group
'
,
disabled
:
false
,
boardLists
:
[{
type
:
'
closed
'
}],
...
...
@@ -573,7 +564,7 @@ describe('fetchItemsForList', () => {
const
state
=
{
fullPath
:
'
gitlab-org
'
,
boardId
:
'
1
'
,
fullBoardId
:
'
gid://gitlab/Board/
1
'
,
filterParams
:
{},
boardType
:
'
group
'
,
};
...
...
@@ -960,7 +951,7 @@ describe('updateIssueOrder', () => {
const
state
=
{
boardItems
:
issues
,
b
oardId
:
'
gid://gitlab/Board/1
'
,
fullB
oardId
:
'
gid://gitlab/Board/1
'
,
};
const
moveData
=
{
...
...
@@ -974,7 +965,7 @@ describe('updateIssueOrder', () => {
mutation
:
issueMoveListMutation
,
variables
:
{
projectPath
:
getProjectPath
(
mockIssue
.
referencePath
),
boardId
:
fullBoardId
(
state
.
boardId
)
,
boardId
:
state
.
fullBoardId
,
iid
:
mockIssue
.
iid
,
fromListId
:
1
,
toListId
:
2
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment