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
b6bbcfe1
Commit
b6bbcfe1
authored
Apr 29, 2021
by
Florie Guibert
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Delete epic board list
Review feedback
parent
354c8f01
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
8 deletions
+7
-8
app/assets/javascripts/boards/stores/actions.js
app/assets/javascripts/boards/stores/actions.js
+2
-3
spec/frontend/boards/stores/actions_spec.js
spec/frontend/boards/stores/actions_spec.js
+5
-5
No files found.
app/assets/javascripts/boards/stores/actions.js
View file @
b6bbcfe1
...
@@ -265,9 +265,8 @@ export default {
...
@@ -265,9 +265,8 @@ export default {
commit
(
types
.
TOGGLE_LIST_COLLAPSED
,
{
listId
,
collapsed
});
commit
(
types
.
TOGGLE_LIST_COLLAPSED
,
{
listId
,
collapsed
});
},
},
removeList
:
({
state
,
commit
},
listId
)
=>
{
removeList
:
({
state
:
{
issuableType
,
boardLists
},
commit
},
listId
)
=>
{
const
{
issuableType
}
=
state
;
const
listsBackup
=
{
...
boardLists
};
const
listsBackup
=
{
...
state
.
boardLists
};
commit
(
types
.
REMOVE_LIST
,
listId
);
commit
(
types
.
REMOVE_LIST
,
listId
);
...
...
spec/frontend/boards/stores/actions_spec.js
View file @
b6bbcfe1
...
@@ -9,7 +9,7 @@ import {
...
@@ -9,7 +9,7 @@ import {
formatIssue
,
formatIssue
,
getMoveData
,
getMoveData
,
}
from
'
~/boards/boards_util
'
;
}
from
'
~/boards/boards_util
'
;
import
{
inactiveId
,
ISSUABLE
,
ListType
}
from
'
~/boards/constants
'
;
import
{
inactiveId
,
ISSUABLE
,
ListType
,
issuableTypes
}
from
'
~/boards/constants
'
;
import
destroyBoardListMutation
from
'
~/boards/graphql/board_list_destroy.mutation.graphql
'
;
import
destroyBoardListMutation
from
'
~/boards/graphql/board_list_destroy.mutation.graphql
'
;
import
issueCreateMutation
from
'
~/boards/graphql/issue_create.mutation.graphql
'
;
import
issueCreateMutation
from
'
~/boards/graphql/issue_create.mutation.graphql
'
;
import
actions
,
{
gqlClient
}
from
'
~/boards/stores/actions
'
;
import
actions
,
{
gqlClient
}
from
'
~/boards/stores/actions
'
;
...
@@ -459,7 +459,7 @@ describe('updateList', () => {
...
@@ -459,7 +459,7 @@ describe('updateList', () => {
boardType
:
'
group
'
,
boardType
:
'
group
'
,
disabled
:
false
,
disabled
:
false
,
boardLists
:
[{
type
:
'
closed
'
}],
boardLists
:
[{
type
:
'
closed
'
}],
issuableType
:
'
issue
'
,
issuableType
:
issuableTypes
.
issue
,
};
};
testAction
(
testAction
(
...
@@ -503,7 +503,7 @@ describe('removeList', () => {
...
@@ -503,7 +503,7 @@ describe('removeList', () => {
beforeEach
(()
=>
{
beforeEach
(()
=>
{
state
=
{
state
=
{
boardLists
:
mockListsById
,
boardLists
:
mockListsById
,
issuableType
:
'
issue
'
,
issuableType
:
issuableTypes
.
issue
,
};
};
});
});
...
@@ -1376,7 +1376,7 @@ describe('setActiveItemSubscribed', () => {
...
@@ -1376,7 +1376,7 @@ describe('setActiveItemSubscribed', () => {
[
mockActiveIssue
.
id
]:
mockActiveIssue
,
[
mockActiveIssue
.
id
]:
mockActiveIssue
,
},
},
fullPath
:
'
gitlab-org
'
,
fullPath
:
'
gitlab-org
'
,
issuableType
:
'
issue
'
,
issuableType
:
issuableTypes
.
issue
,
};
};
const
getters
=
{
activeBoardItem
:
mockActiveIssue
,
isEpicBoard
:
false
};
const
getters
=
{
activeBoardItem
:
mockActiveIssue
,
isEpicBoard
:
false
};
const
subscribedState
=
true
;
const
subscribedState
=
true
;
...
@@ -1484,7 +1484,7 @@ describe('setActiveIssueMilestone', () => {
...
@@ -1484,7 +1484,7 @@ describe('setActiveIssueMilestone', () => {
describe
(
'
setActiveItemTitle
'
,
()
=>
{
describe
(
'
setActiveItemTitle
'
,
()
=>
{
const
state
=
{
const
state
=
{
boardItems
:
{
[
mockIssue
.
id
]:
mockIssue
},
boardItems
:
{
[
mockIssue
.
id
]:
mockIssue
},
issuableType
:
'
issue
'
,
issuableType
:
issuableTypes
.
issue
,
fullPath
:
'
path/f
'
,
fullPath
:
'
path/f
'
,
};
};
const
getters
=
{
activeBoardItem
:
mockIssue
,
isEpicBoard
:
false
};
const
getters
=
{
activeBoardItem
:
mockIssue
,
isEpicBoard
:
false
};
...
...
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