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
814c5a27
Commit
814c5a27
authored
May 06, 2021
by
Amy Qualls
Committed by
Phil Hughes
May 06, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Initial fix to "all threads must be resolved"
parent
f3e3f13d
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
8 additions
and
12 deletions
+8
-12
app/assets/javascripts/vue_merge_request_widget/components/states/unresolved_discussions.vue
...quest_widget/components/states/unresolved_discussions.vue
+1
-1
locale/gitlab.pot
locale/gitlab.pot
+3
-3
spec/features/issues/create_issue_for_discussions_in_merge_request_spec.rb
...ues/create_issue_for_discussions_in_merge_request_spec.rb
+1
-1
spec/features/merge_request/user_sees_merge_button_depending_on_unresolved_discussions_spec.rb
..._merge_button_depending_on_unresolved_discussions_spec.rb
+1
-1
spec/frontend/vue_mr_widget/components/states/mr_widget_unresolved_discussions_spec.js
...omponents/states/mr_widget_unresolved_discussions_spec.js
+2
-6
No files found.
app/assets/javascripts/vue_merge_request_widget/components/states/unresolved_discussions.vue
View file @
814c5a27
...
...
@@ -28,7 +28,7 @@ export default {
<status-icon
:show-disabled-button=
"true"
status=
"warning"
/>
<div
class=
"media-body"
>
<span
class=
"gl-ml-3 gl-font-weight-bold gl-display-block gl-w-100"
>
{{
s__
(
'
mrWidget|
Before this can be merged, one or more
threads must be resolved.
'
)
s__
(
'
mrWidget|
Merge blocked: all
threads must be resolved.
'
)
}}
</span>
<gl-button
data-testid=
"jump-to-first"
...
...
locale/gitlab.pot
View file @
814c5a27
...
...
@@ -38270,9 +38270,6 @@ msgstr ""
msgid "mrWidget|Are you adding technical debt or code vulnerabilities?"
msgstr ""
msgid "mrWidget|Before this can be merged, one or more threads must be resolved."
msgstr ""
msgid "mrWidget|Cancel automatic merge"
msgstr ""
...
...
@@ -38339,6 +38336,9 @@ msgstr ""
msgid "mrWidget|Merge"
msgstr ""
msgid "mrWidget|Merge blocked: all threads must be resolved."
msgstr ""
msgid "mrWidget|Merge failed."
msgstr ""
...
...
spec/features/issues/create_issue_for_discussions_in_merge_request_spec.rb
View file @
814c5a27
...
...
@@ -72,7 +72,7 @@ RSpec.describe 'Resolving all open threads in a merge request from an issue', :j
end
it
'shows a warning that the merge request contains unresolved threads'
do
expect
(
page
).
to
have_content
'
Before this can be merged,
'
expect
(
page
).
to
have_content
'
all threads must be resolved
'
end
it
'has a link to resolve all threads by creating an issue'
do
...
...
spec/features/merge_request/user_sees_merge_button_depending_on_unresolved_discussions_spec.rb
View file @
814c5a27
...
...
@@ -21,7 +21,7 @@ RSpec.describe 'Merge request > User sees merge button depending on unresolved t
context
'with unresolved threads'
do
it
'does not allow to merge'
do
expect
(
page
).
not_to
have_button
'Merge'
expect
(
page
).
to
have_content
(
'
Before this can be merged,
'
)
expect
(
page
).
to
have_content
(
'
all threads must be resolved
'
)
end
end
...
...
spec/frontend/vue_mr_widget/components/states/mr_widget_unresolved_discussions_spec.js
View file @
814c5a27
...
...
@@ -42,9 +42,7 @@ describe('UnresolvedDiscussions', () => {
});
it
(
'
should have correct elements
'
,
()
=>
{
expect
(
wrapper
.
element
.
innerText
).
toContain
(
`Before this can be merged, one or more threads must be resolved.`
,
);
expect
(
wrapper
.
element
.
innerText
).
toContain
(
`Merge blocked: all threads must be resolved.`
);
expect
(
wrapper
.
element
.
innerText
).
toContain
(
'
Jump to first unresolved thread
'
);
expect
(
wrapper
.
element
.
innerText
).
toContain
(
'
Resolve all threads in new issue
'
);
...
...
@@ -56,9 +54,7 @@ describe('UnresolvedDiscussions', () => {
describe
(
'
without threads path
'
,
()
=>
{
it
(
'
should not show create issue link if user cannot create issue
'
,
()
=>
{
expect
(
wrapper
.
element
.
innerText
).
toContain
(
`Before this can be merged, one or more threads must be resolved.`
,
);
expect
(
wrapper
.
element
.
innerText
).
toContain
(
`Merge blocked: all threads must be resolved.`
);
expect
(
wrapper
.
element
.
innerText
).
toContain
(
'
Jump to first unresolved thread
'
);
expect
(
wrapper
.
element
.
innerText
).
not
.
toContain
(
'
Resolve all threads in new issue
'
);
...
...
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