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
b96a3d4d
Commit
b96a3d4d
authored
Aug 11, 2017
by
Filipa Lacerda
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix open discussions
Put back deleted tests
parent
b38e6903
Changes
8
Show whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
24 additions
and
11 deletions
+24
-11
app/assets/javascripts/notes/components/issue_discussion.vue
app/assets/javascripts/notes/components/issue_discussion.vue
+1
-1
app/assets/javascripts/notes/components/issue_note_awards_list.vue
...s/javascripts/notes/components/issue_note_awards_list.vue
+16
-2
app/assets/javascripts/notes/components/issue_note_form.vue
app/assets/javascripts/notes/components/issue_note_form.vue
+0
-1
app/assets/javascripts/notes/stores/actions.js
app/assets/javascripts/notes/stores/actions.js
+1
-1
app/views/projects/issues/_discussion.html.haml
app/views/projects/issues/_discussion.html.haml
+1
-1
features/steps/shared/note.rb
features/steps/shared/note.rb
+1
-1
spec/features/merge_requests/user_uses_slash_commands_spec.rb
.../features/merge_requests/user_uses_slash_commands_spec.rb
+3
-3
spec/features/participants_autocomplete_spec.rb
spec/features/participants_autocomplete_spec.rb
+1
-1
No files found.
app/assets/javascripts/notes/components/issue_discussion.vue
View file @
b96a3d4d
<
script
>
<
script
>
/* global Flash
, Autosave
*/
/* global Flash */
import
{
mapActions
,
mapGetters
}
from
'
vuex
'
;
import
{
mapActions
,
mapGetters
}
from
'
vuex
'
;
import
{
SYSTEM_NOTE
}
from
'
../constants
'
;
import
{
SYSTEM_NOTE
}
from
'
../constants
'
;
import
issueNote
from
'
./issue_note.vue
'
;
import
issueNote
from
'
./issue_note.vue
'
;
...
...
app/assets/javascripts/notes/components/issue_note_awards_list.vue
View file @
b96a3d4d
...
@@ -140,11 +140,25 @@
...
@@ -140,11 +140,25 @@
return
title
;
return
title
;
},
},
handleAward
(
awardName
)
{
handleAward
(
awardName
)
{
let
parsedName
;
// 100 and 1234 emoji are a number. Callback for v-for click sends it as a string
switch
(
awardName
)
{
case
'
100
'
:
parsedName
=
100
;
break
;
case
'
1234
'
:
parsedName
=
1234
;
break
;
default
:
parsedName
=
awardName
;
break
;
}
const
data
=
{
const
data
=
{
endpoint
:
this
.
toggleAwardPath
,
endpoint
:
this
.
toggleAwardPath
,
noteId
:
this
.
noteId
,
noteId
:
this
.
noteId
,
// 100 emoji is a number. Callback for v-for click sends it as a string
awardName
:
parsedName
,
awardName
:
awardName
===
'
100
'
?
100
:
awardName
,
};
};
this
.
toggleAwardRequest
(
data
)
this
.
toggleAwardRequest
(
data
)
...
...
app/assets/javascripts/notes/components/issue_note_form.vue
View file @
b96a3d4d
...
@@ -129,7 +129,6 @@
...
@@ -129,7 +129,6 @@
:quick-actions-docs=
"quickActionsDocsUrl"
:quick-actions-docs=
"quickActionsDocsUrl"
:add-spacing-classes=
"false"
>
:add-spacing-classes=
"false"
>
<textarea
<textarea
id=
"note-body"
name=
"note[note]"
name=
"note[note]"
class=
"note-textarea js-gfm-input js-autosize markdown-area js-vue-issue-note-form"
class=
"note-textarea js-gfm-input js-autosize markdown-area js-vue-issue-note-form"
:data-supports-quick-actions=
"!isEditing"
:data-supports-quick-actions=
"!isEditing"
...
...
app/assets/javascripts/notes/stores/actions.js
View file @
b96a3d4d
...
@@ -86,7 +86,7 @@ export const saveNote = ({ commit, dispatch }, noteData) => {
...
@@ -86,7 +86,7 @@ export const saveNote = ({ commit, dispatch }, noteData) => {
const
{
errors
}
=
res
;
const
{
errors
}
=
res
;
const
commandsChanges
=
res
.
commands_changes
;
const
commandsChanges
=
res
.
commands_changes
;
if
(
hasQuickActions
&&
Object
.
keys
(
errors
).
length
)
{
if
(
hasQuickActions
&&
errors
&&
Object
.
keys
(
errors
).
length
)
{
dispatch
(
'
fetchData
'
);
dispatch
(
'
fetchData
'
);
$
(
'
.js-gfm-input
'
).
trigger
(
'
clear-commands-cache.atwho
'
);
$
(
'
.js-gfm-input
'
).
trigger
(
'
clear-commands-cache.atwho
'
);
...
...
app/views/projects/issues/_discussion.html.haml
View file @
b96a3d4d
features/steps/shared/note.rb
View file @
b96a3d4d
...
@@ -156,7 +156,7 @@ module SharedNote
...
@@ -156,7 +156,7 @@ module SharedNote
page
.
find
(
'.current-note-edit-form textarea'
)
page
.
find
(
'.current-note-edit-form textarea'
)
page
.
within
(
".current-note-edit-form"
)
do
page
.
within
(
".current-note-edit-form"
)
do
fill_in
'
#note-body
'
,
with:
'+1 Awesome!'
fill_in
'
note[note]
'
,
with:
'+1 Awesome!'
click_button
'Save comment'
click_button
'Save comment'
end
end
wait_for_requests
wait_for_requests
...
...
spec/features/merge_requests/user_uses_slash_commands_spec.rb
View file @
b96a3d4d
...
@@ -67,7 +67,7 @@ feature 'Merge Requests > User uses quick actions', js: true do
...
@@ -67,7 +67,7 @@ feature 'Merge Requests > User uses quick actions', js: true do
it
'does not change the WIP prefix'
do
it
'does not change the WIP prefix'
do
write_note
(
"/wip"
)
write_note
(
"/wip"
)
expect
(
page
).
to
have_content
'/wip'
expect
(
page
).
not_
to
have_content
'/wip'
expect
(
page
).
not_to
have_content
'Commands applied'
expect
(
page
).
not_to
have_content
'Commands applied'
expect
(
merge_request
.
reload
.
work_in_progress?
).
to
eq
false
expect
(
merge_request
.
reload
.
work_in_progress?
).
to
eq
false
...
@@ -78,7 +78,7 @@ feature 'Merge Requests > User uses quick actions', js: true do
...
@@ -78,7 +78,7 @@ feature 'Merge Requests > User uses quick actions', js: true do
describe
'merging the MR from the note'
do
describe
'merging the MR from the note'
do
context
'when the current user can merge the MR'
do
context
'when the current user can merge the MR'
do
it
'merges the MR'
do
it
'merges the MR'
do
write_note
(
"/merge"
,
false
)
write_note
(
"/merge"
)
expect
(
page
).
to
have_content
'Commands applied'
expect
(
page
).
to
have_content
'Commands applied'
...
@@ -197,7 +197,7 @@ feature 'Merge Requests > User uses quick actions', js: true do
...
@@ -197,7 +197,7 @@ feature 'Merge Requests > User uses quick actions', js: true do
it
'does not change target branch'
do
it
'does not change target branch'
do
write_note
(
'/target_branch merge-test'
)
write_note
(
'/target_branch merge-test'
)
expect
(
page
).
to
have_content
'/target_branch merge-test'
expect
(
page
).
not_
to
have_content
'/target_branch merge-test'
expect
(
merge_request
.
target_branch
).
to
eq
'feature'
expect
(
merge_request
.
target_branch
).
to
eq
'feature'
end
end
...
...
spec/features/participants_autocomplete_spec.rb
View file @
b96a3d4d
...
@@ -15,7 +15,7 @@ feature 'Member autocomplete', :js do
...
@@ -15,7 +15,7 @@ feature 'Member autocomplete', :js do
before
do
before
do
page
.
within
(
'.new-note'
)
do
page
.
within
(
'.new-note'
)
do
if
note
.
noteable_type
===
'Issue'
if
note
.
noteable_type
===
'Issue'
find
(
'
#note-body
'
).
send_keys
(
'@'
)
find
(
'
.js-vue-comment-form
'
).
send_keys
(
'@'
)
else
else
find
(
'#note_note'
).
send_keys
(
'@'
)
find
(
'#note_note'
).
send_keys
(
'@'
)
end
end
...
...
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