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
600466f6
Commit
600466f6
authored
Jul 05, 2021
by
Amy Qualls
Committed by
Phil Hughes
Jul 05, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make rebase-required messages clearer for users
parent
8f5e1ce0
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
17 additions
and
26 deletions
+17
-26
app/assets/javascripts/vue_merge_request_widget/components/states/mr_widget_conflicts.vue
..._request_widget/components/states/mr_widget_conflicts.vue
+1
-1
app/assets/javascripts/vue_merge_request_widget/components/states/mr_widget_rebase.vue
...rge_request_widget/components/states/mr_widget_rebase.vue
+2
-6
locale/gitlab.pot
locale/gitlab.pot
+6
-9
spec/features/merge_request/user_sees_merge_widget_spec.rb
spec/features/merge_request/user_sees_merge_widget_spec.rb
+1
-1
spec/frontend/vue_mr_widget/components/mr_widget_rebase_spec.js
...rontend/vue_mr_widget/components/mr_widget_rebase_spec.js
+6
-8
spec/frontend/vue_mr_widget/components/states/mr_widget_conflicts_spec.js
...e_mr_widget/components/states/mr_widget_conflicts_spec.js
+1
-1
No files found.
app/assets/javascripts/vue_merge_request_widget/components/states/mr_widget_conflicts.vue
View file @
600466f6
...
...
@@ -112,7 +112,7 @@ export default {
<div
v-else
class=
"media-body space-children gl-display-flex gl-align-items-center"
>
<span
v-if=
"shouldBeRebased"
class=
"bold"
>
{{
s__
(
`mrWidget|
F
ast-forward merge is not possible.
s__
(
`mrWidget|
Merge blocked: f
ast-forward merge is not possible.
To merge this request, first rebase locally.`
)
}}
</span>
...
...
app/assets/javascripts/vue_merge_request_widget/components/states/mr_widget_rebase.vue
View file @
600466f6
...
...
@@ -87,9 +87,7 @@ export default {
},
fastForwardMergeText
()
{
return
sprintf
(
__
(
'
Fast-forward merge is not possible. Rebase the source branch onto %{targetBranch} to allow this merge request to be merged.
'
,
),
__
(
'
Merge blocked: the source branch must be rebased onto the target branch.
'
),
{
targetBranch
:
`<span class="label-branch">
${
escape
(
this
.
targetBranch
)}
</span>`
,
},
...
...
@@ -193,9 +191,7 @@ export default {
data-testid=
"rebase-message"
data-qa-selector=
"no_fast_forward_message_content"
>
{{
__
(
'
Fast-forward merge is not possible. Rebase the source branch onto the target branch.
'
,
)
__
(
'
Merge blocked: the source branch must be rebased onto the target branch.
'
)
}}
</span
>
<span
v-else
class=
"gl-font-weight-bold danger"
data-testid=
"rebase-message"
>
{{
...
...
locale/gitlab.pot
View file @
600466f6
...
...
@@ -13602,12 +13602,6 @@ msgstr ""
msgid "Fast timeout"
msgstr ""
msgid "Fast-forward merge is not possible. Rebase the source branch onto %{targetBranch} to allow this merge request to be merged."
msgstr ""
msgid "Fast-forward merge is not possible. Rebase the source branch onto the target branch."
msgstr ""
msgid "Fast-forward merge without a merge commit"
msgstr ""
...
...
@@ -20426,6 +20420,9 @@ msgstr ""
msgid "Merge automatically (%{strategy})"
msgstr ""
msgid "Merge blocked: the source branch must be rebased onto the target branch."
msgstr ""
msgid "Merge commit SHA"
msgstr ""
...
...
@@ -38979,9 +38976,6 @@ msgstr ""
msgid "mrWidget|Failed to load deployment statistics"
msgstr ""
msgid "mrWidget|Fast-forward merge is not possible. To merge this request, first rebase locally."
msgstr ""
msgid "mrWidget|If the %{missingBranchName} branch exists in your local repository, you can merge this merge request manually using the command line"
msgstr ""
...
...
@@ -39009,6 +39003,9 @@ msgstr ""
msgid "mrWidget|Merge blocked: all threads must be resolved."
msgstr ""
msgid "mrWidget|Merge blocked: fast-forward merge is not possible. To merge this request, first rebase locally."
msgstr ""
msgid "mrWidget|Merge blocked: pipeline must succeed. It's waiting for a manual action to continue."
msgstr ""
...
...
spec/features/merge_request/user_sees_merge_widget_spec.rb
View file @
600466f6
...
...
@@ -373,7 +373,7 @@ RSpec.describe 'Merge request > User sees merge widget', :js do
wait_for_requests
page
.
within
(
'.mr-widget-body'
)
do
expect
(
page
).
to
have_content
(
'
Fast-forward merge is not possible
'
)
expect
(
page
).
to
have_content
(
'
Merge Merge blocked: fast-forward merge is not possible. To merge this request, first rebase locally.
'
)
end
end
end
...
...
spec/frontend/vue_mr_widget/components/mr_widget_rebase_spec.js
View file @
600466f6
...
...
@@ -70,9 +70,9 @@ describe('Merge request widget rebase component', () => {
const
text
=
findRebaseMessageElText
();
expect
(
text
).
toContain
(
'
Fast-forward merge is not possible.
'
);
expect
(
text
).
toContain
(
'
Merge blocked
'
);
expect
(
text
.
replace
(
/
\s\s
+/g
,
'
'
)).
toContain
(
'
Rebase the source branch onto the target branch.
'
,
'
the source branch must be rebased onto the target branch
'
,
);
});
...
...
@@ -111,12 +111,10 @@ describe('Merge request widget rebase component', () => {
const
text
=
findRebaseMessageElText
();
expect
(
text
).
toContain
(
'
Fast-forward merge is not possible.
'
);
expect
(
text
).
toContain
(
'
Rebase the source branch onto
'
);
expect
(
text
).
toContain
(
'
foo
'
);
expect
(
text
.
replace
(
/
\s\s
+/g
,
'
'
)).
toContain
(
'
to allow this merge request to be merged.
'
,
expect
(
text
).
toContain
(
'
Merge blocked: the source branch must be rebased onto the target branch.
'
,
);
expect
(
text
).
toContain
(
'
the source branch must be rebased
'
);
});
it
(
'
should render the correct target branch name
'
,
()
=>
{
...
...
@@ -136,7 +134,7 @@ describe('Merge request widget rebase component', () => {
const
elem
=
findRebaseMessageEl
();
expect
(
elem
.
text
()).
toContain
(
`
Fast-forward merge is not possible. Rebase the source branch onto
${
targetBranch
}
to allow this merge request to be merged
.`
,
`
Merge blocked: the source branch must be rebased onto the target branch
.`
,
);
});
});
...
...
spec/frontend/vue_mr_widget/components/states/mr_widget_conflicts_spec.js
View file @
600466f6
...
...
@@ -199,7 +199,7 @@ describe('MRWidgetConflicts', () => {
});
expect
(
removeBreakLine
(
wrapper
.
text
()).
trim
()).
toContain
(
'
F
ast-forward merge is not possible. To merge this request, first rebase locally.
'
,
'
Merge blocked: f
ast-forward merge is not possible. To merge this request, first rebase locally.
'
,
);
});
});
...
...
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