From be41aa289d597e69b75b249cfff4b92d3ede46f1 Mon Sep 17 00:00:00 2001 From: Amy Qualls <aqualls@gitlab.com> Date: Mon, 14 Feb 2022 20:55:17 +0000 Subject: [PATCH] Improve UI message for unfinished pipelines This message should be revised to meet our standards - include current status, explanation, next step. Update tests and translation file Update the .pot file for translation, and update a test that checks the output of the file we modified in this MR. Update messages based on UX feedback We've decided to NOT change one of the messages, and revising the other. Update tests and translation files to match. Update test and snapshot The text was just a smidge off from what the tests were expecting. Move the period inside the link, rather than outside of it, to strip the extra space I'm seeing. Update translations file Update translations file to reflect changes to strings. Changelog: changed --- .../components/states/pipeline_failed.vue | 2 +- doc/ci/troubleshooting.md | 2 +- locale/gitlab.pot | 6 +++--- .../user_merges_only_if_pipeline_succeeds_spec.rb | 4 ++-- .../__snapshots__/mr_widget_pipeline_failed_spec.js.snap | 2 +- 5 files changed, 8 insertions(+), 8 deletions(-) diff --git a/app/assets/javascripts/vue_merge_request_widget/components/states/pipeline_failed.vue b/app/assets/javascripts/vue_merge_request_widget/components/states/pipeline_failed.vue index d88dad2e086ec..d204befef5895 100644 --- a/app/assets/javascripts/vue_merge_request_widget/components/states/pipeline_failed.vue +++ b/app/assets/javascripts/vue_merge_request_widget/components/states/pipeline_failed.vue @@ -20,7 +20,7 @@ export default { }, i18n: { failedMessage: s__( - `mrWidget|The pipeline for this merge request did not complete. Push a new commit to fix the failure, or check the %{linkStart}troubleshooting documentation%{linkEnd} to see other possible actions.`, + `mrWidget|Merge blocked: pipeline must succeed. Push a commit that fixes the failure, or %{linkStart}learn about other solutions.%{linkEnd}`, ), }, }; diff --git a/doc/ci/troubleshooting.md b/doc/ci/troubleshooting.md index 853d2f953fba1..81cb924532c7a 100644 --- a/doc/ci/troubleshooting.md +++ b/doc/ci/troubleshooting.md @@ -241,7 +241,7 @@ This also applies if the pipeline has not been created yet, or if you are waitin for an external CI service. If you don't use pipelines for your project, then you should disable **Pipelines must succeed** so you can accept merge requests. -### "The pipeline for this merge request did not complete. Push a new commit to fix the failure or check the troubleshooting documentation to see other possible actions." message +#### "Merge blocked: pipeline must succeed. Push a new commit that fixes the failure" message This message is shown if the [merge request pipeline](pipelines/merge_request_pipelines.md), [merged results pipeline](pipelines/merged_results_pipelines.md), diff --git a/locale/gitlab.pot b/locale/gitlab.pot index 1d4b1c350a263..a80364c6d565a 100644 --- a/locale/gitlab.pot +++ b/locale/gitlab.pot @@ -43483,6 +43483,9 @@ msgstr "" msgid "mrWidget|Merge blocked: pipeline must succeed. It's waiting for a manual action to continue." msgstr "" +msgid "mrWidget|Merge blocked: pipeline must succeed. Push a commit that fixes the failure, or %{linkStart}learn about other solutions.%{linkEnd}" +msgstr "" + msgid "mrWidget|Merge blocked: this merge request must be approved." msgstr "" @@ -43600,9 +43603,6 @@ msgstr "" msgid "mrWidget|The changes were not merged into" msgstr "" -msgid "mrWidget|The pipeline for this merge request did not complete. Push a new commit to fix the failure, or check the %{linkStart}troubleshooting documentation%{linkEnd} to see other possible actions." -msgstr "" - msgid "mrWidget|The source branch has been deleted" msgstr "" diff --git a/spec/features/merge_request/user_merges_only_if_pipeline_succeeds_spec.rb b/spec/features/merge_request/user_merges_only_if_pipeline_succeeds_spec.rb index 8438c0af55359..4d7ee11e366c6 100644 --- a/spec/features/merge_request/user_merges_only_if_pipeline_succeeds_spec.rb +++ b/spec/features/merge_request/user_merges_only_if_pipeline_succeeds_spec.rb @@ -57,7 +57,7 @@ wait_for_requests expect(page).to have_css('button[disabled="disabled"]', text: 'Merge') - expect(page).to have_content('The pipeline for this merge request did not complete. Push a new commit to fix the failure, or check the troubleshooting documentation to see other possible actions.') + expect(page).to have_content('Merge blocked: pipeline must succeed. Push a commit that fixes the failure, or learn about other solutions.') end end @@ -70,7 +70,7 @@ wait_for_requests expect(page).not_to have_button 'Merge' - expect(page).to have_content('The pipeline for this merge request did not complete. Push a new commit to fix the failure, or check the troubleshooting documentation to see other possible actions.') + expect(page).to have_content('Merge blocked: pipeline must succeed. Push a commit that fixes the failure, or learn about other solutions.') end end diff --git a/spec/frontend/vue_mr_widget/components/states/__snapshots__/mr_widget_pipeline_failed_spec.js.snap b/spec/frontend/vue_mr_widget/components/states/__snapshots__/mr_widget_pipeline_failed_spec.js.snap index a124008b36a7a..98297630792e5 100644 --- a/spec/frontend/vue_mr_widget/components/states/__snapshots__/mr_widget_pipeline_failed_spec.js.snap +++ b/spec/frontend/vue_mr_widget/components/states/__snapshots__/mr_widget_pipeline_failed_spec.js.snap @@ -16,7 +16,7 @@ exports[`PipelineFailed should render error message with a disabled merge button class="bold" > <gl-sprintf-stub - message="The pipeline for this merge request did not complete. Push a new commit to fix the failure, or check the %{linkStart}troubleshooting documentation%{linkEnd} to see other possible actions." + message="Merge blocked: pipeline must succeed. Push a commit that fixes the failure, or %{linkStart}learn about other solutions.%{linkEnd}" /> </span> </div> -- GitLab