Skip to content
代码片段 群组 项目
提交 f60eaaee 编辑于 作者: Adie (she/her)'s avatar Adie (she/her) 提交者: Florie Guibert
浏览文件

Add notification about the container registry during rename

Update po file

Changelog: changed
上级 e5470a9e
No related branches found
No related tags found
无相关合并请求
...@@ -97,9 +97,11 @@ ...@@ -97,9 +97,11 @@
= render 'projects/errors' = render 'projects/errors'
= gitlab_ui_form_for @project do |f| = gitlab_ui_form_for @project do |f|
.form-group .form-group
%p %ul
%span.gl-font-weight-bold= _("Be careful. Renaming a project's repository can have unintended side effects.") %li= _("Be careful. Renaming a project's repository can have unintended side effects.")
= _('You will need to update your local repositories to point to the new location.') %li= _('You will need to update your local repositories to point to the new location.')
- if Feature.enabled?(:renaming_project_with_tags, @project)
%li= s_('ContainerRegistry|While the rename is in progress, new uploads to the container registry are blocked. Ongoing uploads may fail and need to be retried.')
- if @project.deployment_platform.present? - if @project.deployment_platform.present?
%p= _('Your deployment services will be broken, you will need to manually fix the services after renaming.') %p= _('Your deployment services will be broken, you will need to manually fix the services after renaming.')
= f.label :path, _('Path'), class: 'label-bold' = f.label :path, _('Path'), class: 'label-bold'
......
...@@ -13396,6 +13396,9 @@ msgstr "" ...@@ -13396,6 +13396,9 @@ msgstr ""
msgid "ContainerRegistry|We are having trouble connecting to the Container Registry. Please try refreshing the page. If this error persists, please review %{docLinkStart}the troubleshooting documentation%{docLinkEnd}." msgid "ContainerRegistry|We are having trouble connecting to the Container Registry. Please try refreshing the page. If this error persists, please review %{docLinkStart}the troubleshooting documentation%{docLinkEnd}."
msgstr "" msgstr ""
   
msgid "ContainerRegistry|While the rename is in progress, new uploads to the container registry are blocked. Ongoing uploads may fail and need to be retried."
msgstr ""
msgid "ContainerRegistry|With the Container Registry, every project can have its own space to store its Docker images. %{docLinkStart}More Information%{docLinkEnd}" msgid "ContainerRegistry|With the Container Registry, every project can have its own space to store its Docker images. %{docLinkStart}More Information%{docLinkEnd}"
msgstr "" msgstr ""
   
...@@ -111,4 +111,24 @@ ...@@ -111,4 +111,24 @@
expect(rendered).to have_content(_('GitLab Pages has moved')) expect(rendered).to have_content(_('GitLab Pages has moved'))
end end
end end
describe 'notifications on renaming the project path' do
it 'displays the warning regarding the container registry' do
render
expect(rendered).to have_content('new uploads to the container registry are blocked')
end
context 'when the feature renaming_project_with_tags is disabled' do
before do
stub_feature_flags(renaming_project_with_tags: false)
end
it 'does not display the warning regarding the container registry' do
render
expect(rendered).not_to have_content('new uploads to the container registry are blocked')
end
end
end
end end
0% 加载中 .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册