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
30f229a1
Commit
30f229a1
authored
Jul 02, 2019
by
GitLab Bot
Browse files
Options
Browse Files
Download
Plain Diff
Automatic merge of gitlab-org/gitlab-ce master
parents
7fc79b5f
4aa98d31
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
20 additions
and
15 deletions
+20
-15
app/assets/javascripts/diffs/store/actions.js
app/assets/javascripts/diffs/store/actions.js
+1
-1
app/assets/javascripts/notes/stores/actions.js
app/assets/javascripts/notes/stores/actions.js
+6
-6
changelogs/unreleased/winh-updateResolvableDiscussionsCounts-typo.yml
...nreleased/winh-updateResolvableDiscussionsCounts-typo.yml
+5
-0
spec/javascripts/notes/stores/actions_spec.js
spec/javascripts/notes/stores/actions_spec.js
+8
-8
No files found.
app/assets/javascripts/diffs/store/actions.js
View file @
30f229a1
...
...
@@ -267,7 +267,7 @@ export const saveDiffDiscussion = ({ state, dispatch }, { note, formData }) => {
return
dispatch
(
'
saveNote
'
,
postData
,
{
root
:
true
})
.
then
(
result
=>
dispatch
(
'
updateDiscussion
'
,
result
.
discussion
,
{
root
:
true
}))
.
then
(
discussion
=>
dispatch
(
'
assignDiscussionsToDiff
'
,
[
discussion
]))
.
then
(()
=>
dispatch
(
'
updateResolvableDiscussonsCounts
'
,
null
,
{
root
:
true
}))
.
then
(()
=>
dispatch
(
'
updateResolvableDiscuss
i
onsCounts
'
,
null
,
{
root
:
true
}))
.
then
(()
=>
dispatch
(
'
closeDiffFileCommentForm
'
,
formData
.
diffFile
.
file_hash
))
.
catch
(()
=>
createFlash
(
s__
(
'
MergeRequests|Saving the comment failed
'
)));
};
...
...
app/assets/javascripts/notes/stores/actions.js
View file @
30f229a1
...
...
@@ -51,7 +51,7 @@ export const fetchDiscussions = ({ commit, dispatch }, { path, filter }) =>
.
then
(
res
=>
res
.
json
())
.
then
(
discussions
=>
{
commit
(
types
.
SET_INITIAL_DISCUSSIONS
,
discussions
);
dispatch
(
'
updateResolvableDiscussonsCounts
'
);
dispatch
(
'
updateResolvableDiscuss
i
onsCounts
'
);
});
export
const
updateDiscussion
=
({
commit
,
state
},
discussion
)
=>
{
...
...
@@ -67,7 +67,7 @@ export const deleteNote = ({ commit, dispatch, state }, note) =>
commit
(
types
.
DELETE_NOTE
,
note
);
dispatch
(
'
updateMergeRequestWidget
'
);
dispatch
(
'
updateResolvableDiscussonsCounts
'
);
dispatch
(
'
updateResolvableDiscuss
i
onsCounts
'
);
if
(
isInMRPage
())
{
dispatch
(
'
diffs/removeDiscussionsFromDiff
'
,
discussion
);
...
...
@@ -117,7 +117,7 @@ export const replyToDiscussion = ({ commit, state, getters, dispatch }, { endpoi
dispatch
(
'
updateMergeRequestWidget
'
);
dispatch
(
'
startTaskList
'
);
dispatch
(
'
updateResolvableDiscussonsCounts
'
);
dispatch
(
'
updateResolvableDiscuss
i
onsCounts
'
);
}
else
{
commit
(
types
.
ADD_NEW_REPLY_TO_DISCUSSION
,
res
);
}
...
...
@@ -135,7 +135,7 @@ export const createNewNote = ({ commit, dispatch }, { endpoint, data }) =>
dispatch
(
'
updateMergeRequestWidget
'
);
dispatch
(
'
startTaskList
'
);
dispatch
(
'
updateResolvableDiscussonsCounts
'
);
dispatch
(
'
updateResolvableDiscuss
i
onsCounts
'
);
}
return
res
;
});
...
...
@@ -168,7 +168,7 @@ export const toggleResolveNote = ({ commit, dispatch }, { endpoint, isResolved,
commit
(
mutationType
,
res
);
dispatch
(
'
updateResolvableDiscussonsCounts
'
);
dispatch
(
'
updateResolvableDiscuss
i
onsCounts
'
);
dispatch
(
'
updateMergeRequestWidget
'
);
});
...
...
@@ -442,7 +442,7 @@ export const startTaskList = ({ dispatch }) =>
}),
);
export
const
updateResolvableDiscussonsCounts
=
({
commit
})
=>
export
const
updateResolvableDiscuss
i
onsCounts
=
({
commit
})
=>
commit
(
types
.
UPDATE_RESOLVABLE_DISCUSSIONS_COUNTS
);
export
const
submitSuggestion
=
(
...
...
changelogs/unreleased/winh-updateResolvableDiscussionsCounts-typo.yml
0 → 100644
View file @
30f229a1
---
title
:
Fix typo in updateResolvableDiscussionsCounts action
merge_request
:
30278
author
:
Frank van Rest
type
:
other
spec/javascripts/notes/stores/actions_spec.js
View file @
30f229a1
...
...
@@ -373,7 +373,7 @@ describe('Actions Notes Store', () => {
type
:
'
updateMergeRequestWidget
'
,
},
{
type
:
'
updateResolvableDiscussonsCounts
'
,
type
:
'
updateResolvableDiscuss
i
onsCounts
'
,
},
],
done
,
...
...
@@ -400,7 +400,7 @@ describe('Actions Notes Store', () => {
type
:
'
updateMergeRequestWidget
'
,
},
{
type
:
'
updateResolvableDiscussonsCounts
'
,
type
:
'
updateResolvableDiscuss
i
onsCounts
'
,
},
{
type
:
'
diffs/removeDiscussionsFromDiff
'
,
...
...
@@ -452,7 +452,7 @@ describe('Actions Notes Store', () => {
type
:
'
startTaskList
'
,
},
{
type
:
'
updateResolvableDiscussonsCounts
'
,
type
:
'
updateResolvableDiscuss
i
onsCounts
'
,
},
],
done
,
...
...
@@ -527,7 +527,7 @@ describe('Actions Notes Store', () => {
],
[
{
type
:
'
updateResolvableDiscussonsCounts
'
,
type
:
'
updateResolvableDiscuss
i
onsCounts
'
,
},
{
type
:
'
updateMergeRequestWidget
'
,
...
...
@@ -552,7 +552,7 @@ describe('Actions Notes Store', () => {
],
[
{
type
:
'
updateResolvableDiscussonsCounts
'
,
type
:
'
updateResolvableDiscuss
i
onsCounts
'
,
},
{
type
:
'
updateMergeRequestWidget
'
,
...
...
@@ -587,10 +587,10 @@ describe('Actions Notes Store', () => {
});
});
describe
(
'
updateResolvableDiscussonsCounts
'
,
()
=>
{
describe
(
'
updateResolvableDiscuss
i
onsCounts
'
,
()
=>
{
it
(
'
commits UPDATE_RESOLVABLE_DISCUSSIONS_COUNTS
'
,
done
=>
{
testAction
(
actions
.
updateResolvableDiscussonsCounts
,
actions
.
updateResolvableDiscuss
i
onsCounts
,
null
,
{},
[{
type
:
'
UPDATE_RESOLVABLE_DISCUSSIONS_COUNTS
'
}],
...
...
@@ -712,7 +712,7 @@ describe('Actions Notes Store', () => {
[
{
type
:
'
updateMergeRequestWidget
'
},
{
type
:
'
startTaskList
'
},
{
type
:
'
updateResolvableDiscussonsCounts
'
},
{
type
:
'
updateResolvableDiscuss
i
onsCounts
'
},
],
done
,
);
...
...
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