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
3c5fb8f0
Commit
3c5fb8f0
authored
Sep 22, 2020
by
jakeburden
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add group milestones to Vuex store
parent
f82bcb41
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
16 additions
and
0 deletions
+16
-0
app/assets/javascripts/releases/stores/modules/detail/mutation_types.js
...ascripts/releases/stores/modules/detail/mutation_types.js
+1
-0
app/assets/javascripts/releases/stores/modules/detail/mutations.js
...s/javascripts/releases/stores/modules/detail/mutations.js
+5
-0
spec/frontend/releases/stores/modules/detail/actions_spec.js
spec/frontend/releases/stores/modules/detail/actions_spec.js
+9
-0
spec/frontend/releases/stores/modules/detail/mutations_spec.js
...frontend/releases/stores/modules/detail/mutations_spec.js
+1
-0
No files found.
app/assets/javascripts/releases/stores/modules/detail/mutation_types.js
View file @
3c5fb8f0
...
...
@@ -9,6 +9,7 @@ export const UPDATE_CREATE_FROM = 'UPDATE_CREATE_FROM';
export
const
UPDATE_RELEASE_TITLE
=
'
UPDATE_RELEASE_TITLE
'
;
export
const
UPDATE_RELEASE_NOTES
=
'
UPDATE_RELEASE_NOTES
'
;
export
const
UPDATE_RELEASE_MILESTONES
=
'
UPDATE_RELEASE_MILESTONES
'
;
export
const
UPDATE_RELEASE_GROUP_MILESTONES
=
'
UPDATE_RELEASE_GROUP_MILESTONES
'
;
export
const
REQUEST_SAVE_RELEASE
=
'
REQUEST_SAVE_RELEASE
'
;
export
const
RECEIVE_SAVE_RELEASE_SUCCESS
=
'
RECEIVE_SAVE_RELEASE_SUCCESS
'
;
...
...
app/assets/javascripts/releases/stores/modules/detail/mutations.js
View file @
3c5fb8f0
...
...
@@ -13,6 +13,7 @@ export default {
name
:
''
,
description
:
''
,
milestones
:
[],
groupMilestones
:
[],
assets
:
{
links
:
[],
},
...
...
@@ -51,6 +52,10 @@ export default {
state
.
release
.
milestones
=
milestones
;
},
[
types
.
UPDATE_RELEASE_GROUP_MILESTONES
](
state
,
groupMilestones
)
{
state
.
release
.
groupMilestones
=
groupMilestones
;
},
[
types
.
REQUEST_SAVE_RELEASE
](
state
)
{
state
.
isUpdatingRelease
=
true
;
},
...
...
spec/frontend/releases/stores/modules/detail/actions_spec.js
View file @
3c5fb8f0
...
...
@@ -207,6 +207,15 @@ describe('Release detail actions', () => {
});
});
describe
(
'
updateReleaseGroupMilestones
'
,
()
=>
{
it
(
`commits
${
types
.
UPDATE_RELEASE_GROUP_MILESTONES
}
with the updated release group milestones`
,
()
=>
{
const
newReleaseGroupMilestones
=
[
'
v0.0
'
,
'
v0.1
'
];
return
testAction
(
actions
.
updateReleaseGroupMilestones
,
newReleaseGroupMilestones
,
state
,
[
{
type
:
types
.
UPDATE_RELEASE_GROUP_MILESTONES
,
payload
:
newReleaseGroupMilestones
},
]);
});
});
describe
(
'
addEmptyAssetLink
'
,
()
=>
{
it
(
`commits
${
types
.
ADD_EMPTY_ASSET_LINK
}
`
,
()
=>
{
return
testAction
(
actions
.
addEmptyAssetLink
,
undefined
,
state
,
[
...
...
spec/frontend/releases/stores/modules/detail/mutations_spec.js
View file @
3c5fb8f0
...
...
@@ -30,6 +30,7 @@ describe('Release detail mutations', () => {
name
:
''
,
description
:
''
,
milestones
:
[],
groupMilestones
:
[],
assets
:
{
links
:
[],
},
...
...
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