Commit 4c8d720f authored by Vitaly Slobodin's avatar Vitaly Slobodin

Merge branch 'update-ci-quote-messages' into 'master'

Update warnings for ci minute quotas

See merge request gitlab-org/gitlab!65818
parents 98fe8ff9 de82b75a
...@@ -79,14 +79,14 @@ module Ci ...@@ -79,14 +79,14 @@ module Ci
end end
def exceeded_message def exceeded_message
s_("Pipelines|Group %{namespace_name} has exceeded its pipeline minutes quota. " \ s_("Pipelines|The %{namespace_name} namespace has exceeded its pipeline minutes quota. " \
"Unless you buy additional pipeline minutes, no new jobs or pipelines in its projects will run.") % "Buy additional pipeline minutes, or no new jobs or pipelines in its projects will run.") %
{ namespace_name: context.namespace_name } { namespace_name: context.namespace_name }
end end
def threshold_message def threshold_message
s_("Pipelines|Group %{namespace_name} has %{percentage}%% or less Shared Runner Pipeline" \ s_("Pipelines|The %{namespace_name} namespace has %{percentage}%% or less Shared Runner Pipeline" \
" minutes remaining. Once it runs out, no new jobs or pipelines in its projects will run.") % " minutes remaining. After it runs out, no new jobs or pipelines in its projects will run.") %
{ {
namespace_name: context.namespace_name, namespace_name: context.namespace_name,
percentage: PERCENTAGES[stage] percentage: PERCENTAGES[stage]
......
%p %p
- name_link = link_to @namespace.name, group_url(@namespace) - name_link = link_to @namespace.name, group_url(@namespace)
= html_escape(_('%{name_with_link} has run out of Shared Runner Pipeline minutes so no new jobs or pipelines in its projects will run.')) % { name_with_link: name_link.html_safe } = html_escape(_('%{name_with_link} namespace has run out of Shared Runner Pipeline minutes. No new jobs or pipelines in its projects will run.')) % { name_with_link: name_link.html_safe }
%p %p
= _('We recommend that you buy more Pipeline minutes to resume normal service.') = _('We recommend that you buy additional Pipeline minutes to resume normal service.')
%p %p
#{link_to('Buy more Pipeline minutes →', EE::SUBSCRIPTIONS_MORE_MINUTES_URL)} #{link_to('Buy more Pipeline minutes →', EE::SUBSCRIPTIONS_MORE_MINUTES_URL)}
<%= _('%{name}(%{url}) has run out of Shared Runner Pipeline minutes so no new jobs or pipelines in its projects will run.') % { name: @namespace.name, url: group_url(@namespace) }%> <%= _('%{name}(%{url}) namespace has run out of Shared Runner Pipeline minutes so no new jobs or pipelines in its projects will run.') % { name: @namespace.name, url: group_url(@namespace) }%>
<%= _('We recommend that you buy more Pipeline minutes to resume normal service.') %> <%= _('We recommend that you buy additional Pipeline minutes to resume normal service.') %>
Buy more Pipeline minutes → <%= EE::SUBSCRIPTIONS_MORE_MINUTES_URL %> Buy more Pipeline minutes → <%= EE::SUBSCRIPTIONS_MORE_MINUTES_URL %>
%p %p
- name_link = link_to @namespace.name, group_url(@namespace) - name_link = link_to @namespace.name, group_url(@namespace)
= html_escape(_('%{name_with_link} has %{percent} or less Shared Runner Pipeline minutes remaining. Once it runs out, no new jobs or pipelines in its projects will run.')) % { name_with_link: name_link.html_safe, percent: "#{@percentage_of_available_mins}%" } = html_escape(_('%{name_with_link} namespace has %{percent} or less Shared Runner Pipeline minutes remaining. Once it runs out, no new jobs or pipelines in its projects will run.')) % { name_with_link: name_link.html_safe, percent: "#{@percentage_of_available_mins}%" }
%p %p
= _('We recommend that you buy more Pipeline minutes to avoid any interruption of service.') = _('We recommend that you buy additional Pipeline minutes to avoid any interruption of service.')
%p %p
#{link_to('Buy more Pipeline minutes →', EE::SUBSCRIPTIONS_MORE_MINUTES_URL)} #{link_to('Buy more Pipeline minutes →', EE::SUBSCRIPTIONS_MORE_MINUTES_URL)}
<%= _('%{name}(%{url}) has %{percent} or less Shared Runner Pipeline minutes remaining. Once it runs out, no new jobs or pipelines in its projects will run.') % { name: @namespace.name, url: group_url(@namespace), percent: "#{@percentage_of_available_mins}%" } %> <%= _('%{name}(%{url}) namespace has %{percent} or less Shared Runner Pipeline minutes remaining. After it runs out, no new jobs or pipelines in its projects will run.') % { name: @namespace.name, url: group_url(@namespace), percent: "#{@percentage_of_available_mins}%" } %>
<%= _('We recommend that you buy more Pipeline minutes to avoid any interruption of service.') %> <%= _('We recommend that you buy additional Pipeline minutes to avoid any interruption of service.') %>
Buy more Pipeline minutes → <%= EE::SUBSCRIPTIONS_MORE_MINUTES_URL %> Buy more Pipeline minutes → <%= EE::SUBSCRIPTIONS_MORE_MINUTES_URL %>
...@@ -29,8 +29,8 @@ RSpec.describe 'CI shared runner limits' do ...@@ -29,8 +29,8 @@ RSpec.describe 'CI shared runner limits' do
with_them do with_them do
context "when there is a notification and minutes still exist", :js do context "when there is a notification and minutes still exist", :js do
let(:message) do let(:message) do
"Group #{group.name} has #{percent_threshold}% or less Shared Runner Pipeline minutes remaining. " \ "#{group.name} namespace has #{percent_threshold}% or less Shared Runner Pipeline minutes remaining. " \
"Once it runs out, no new jobs or pipelines in its projects will run." "After it runs out, no new jobs or pipelines in its projects will run."
end end
before do before do
...@@ -61,8 +61,8 @@ RSpec.describe 'CI shared runner limits' do ...@@ -61,8 +61,8 @@ RSpec.describe 'CI shared runner limits' do
context 'when limit is exceeded', :js do context 'when limit is exceeded', :js do
let(:group) { create(:group, :with_used_build_minutes_limit) } let(:group) { create(:group, :with_used_build_minutes_limit) }
let(:message) do let(:message) do
"Group #{group.name} has exceeded its pipeline minutes quota. " \ "#{group.name} namespace has exceeded its pipeline minutes quota. " \
"Unless you buy additional pipeline minutes, no new jobs or pipelines in its projects will run." "Buy additional pipeline minutes, or no new jobs or pipelines in its projects will run."
end end
it 'displays a warning message on project homepage' do it 'displays a warning message on project homepage' do
...@@ -120,8 +120,8 @@ RSpec.describe 'CI shared runner limits' do ...@@ -120,8 +120,8 @@ RSpec.describe 'CI shared runner limits' do
with_them do with_them do
context "when there is a notification and minutes still exist", :js do context "when there is a notification and minutes still exist", :js do
let(:message) do let(:message) do
"Group #{group.name} has #{percent_threshold}% or less Shared Runner Pipeline minutes remaining. " \ "#{group.name} namespace has #{percent_threshold}% or less Shared Runner Pipeline minutes remaining. " \
"Once it runs out, no new jobs or pipelines in its projects will run." "After it runs out, no new jobs or pipelines in its projects will run."
end end
before do before do
...@@ -140,8 +140,8 @@ RSpec.describe 'CI shared runner limits' do ...@@ -140,8 +140,8 @@ RSpec.describe 'CI shared runner limits' do
context 'when limit is exceeded', :js do context 'when limit is exceeded', :js do
let(:group) { create(:group, :with_used_build_minutes_limit) } let(:group) { create(:group, :with_used_build_minutes_limit) }
let(:message) do let(:message) do
"Group #{group.name} has exceeded its pipeline minutes quota. " \ "#{group.name} namespace has exceeded its pipeline minutes quota. " \
"Unless you buy additional pipeline minutes, no new jobs or pipelines in its projects will run." "Buy additional pipeline minutes, or no new jobs or pipelines in its projects will run."
end end
it 'displays a warning message on group information page' do it 'displays a warning message on group information page' do
......
...@@ -720,10 +720,10 @@ msgstr "" ...@@ -720,10 +720,10 @@ msgstr ""
msgid "%{mrText}, this issue will be closed automatically." msgid "%{mrText}, this issue will be closed automatically."
msgstr "" msgstr ""
msgid "%{name_with_link} has %{percent} or less Shared Runner Pipeline minutes remaining. Once it runs out, no new jobs or pipelines in its projects will run." msgid "%{name_with_link} namespace has %{percent} or less Shared Runner Pipeline minutes remaining. Once it runs out, no new jobs or pipelines in its projects will run."
msgstr "" msgstr ""
msgid "%{name_with_link} has run out of Shared Runner Pipeline minutes so no new jobs or pipelines in its projects will run." msgid "%{name_with_link} namespace has run out of Shared Runner Pipeline minutes. No new jobs or pipelines in its projects will run."
msgstr "" msgstr ""
msgid "%{name} %{status}" msgid "%{name} %{status}"
...@@ -747,10 +747,10 @@ msgstr "" ...@@ -747,10 +747,10 @@ msgstr ""
msgid "%{name}'s avatar" msgid "%{name}'s avatar"
msgstr "" msgstr ""
msgid "%{name}(%{url}) has %{percent} or less Shared Runner Pipeline minutes remaining. Once it runs out, no new jobs or pipelines in its projects will run." msgid "%{name}(%{url}) namespace has %{percent} or less Shared Runner Pipeline minutes remaining. After it runs out, no new jobs or pipelines in its projects will run."
msgstr "" msgstr ""
msgid "%{name}(%{url}) has run out of Shared Runner Pipeline minutes so no new jobs or pipelines in its projects will run." msgid "%{name}(%{url}) namespace has run out of Shared Runner Pipeline minutes so no new jobs or pipelines in its projects will run."
msgstr "" msgstr ""
msgid "%{name}, confirm your email address now!" msgid "%{name}, confirm your email address now!"
...@@ -24139,12 +24139,6 @@ msgstr "" ...@@ -24139,12 +24139,6 @@ msgstr ""
msgid "Pipelines|GitLab CI/CD can automatically build, test, and deploy your code. Let GitLab take care of time consuming tasks, so you can spend more time creating." msgid "Pipelines|GitLab CI/CD can automatically build, test, and deploy your code. Let GitLab take care of time consuming tasks, so you can spend more time creating."
msgstr "" msgstr ""
msgid "Pipelines|Group %{namespace_name} has %{percentage}%% or less Shared Runner Pipeline minutes remaining. Once it runs out, no new jobs or pipelines in its projects will run."
msgstr ""
msgid "Pipelines|Group %{namespace_name} has exceeded its pipeline minutes quota. Unless you buy additional pipeline minutes, no new jobs or pipelines in its projects will run."
msgstr ""
msgid "Pipelines|If you are unsure, please ask a project maintainer to review it for you." msgid "Pipelines|If you are unsure, please ask a project maintainer to review it for you."
msgstr "" msgstr ""
...@@ -24199,6 +24193,12 @@ msgstr "" ...@@ -24199,6 +24193,12 @@ msgstr ""
msgid "Pipelines|Something went wrong while cleaning runners cache." msgid "Pipelines|Something went wrong while cleaning runners cache."
msgstr "" msgstr ""
msgid "Pipelines|The %{namespace_name} namespace has %{percentage}%% or less Shared Runner Pipeline minutes remaining. After it runs out, no new jobs or pipelines in its projects will run."
msgstr ""
msgid "Pipelines|The %{namespace_name} namespace has exceeded its pipeline minutes quota. Buy additional pipeline minutes, or no new jobs or pipelines in its projects will run."
msgstr ""
msgid "Pipelines|The CI configuration was not loaded, please try again." msgid "Pipelines|The CI configuration was not loaded, please try again."
msgstr "" msgstr ""
...@@ -36582,10 +36582,10 @@ msgstr "" ...@@ -36582,10 +36582,10 @@ msgstr ""
msgid "We recommend leaving all SAST analyzers enabled" msgid "We recommend leaving all SAST analyzers enabled"
msgstr "" msgstr ""
msgid "We recommend that you buy more Pipeline minutes to avoid any interruption of service." msgid "We recommend that you buy additional Pipeline minutes to avoid any interruption of service."
msgstr "" msgstr ""
msgid "We recommend that you buy more Pipeline minutes to resume normal service." msgid "We recommend that you buy additional Pipeline minutes to resume normal service."
msgstr "" msgstr ""
msgid "We sent you an email with reset password instructions" msgid "We sent you an email with reset password instructions"
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment