Skip to content
代码片段 群组 项目
提交 f103a1ff 编辑于 作者: Florie Guibert's avatar Florie Guibert
浏览文件

Merge branch '420756-notify-user-change-path' into 'master'

Add notification about the container registry on renaming project path

See merge request https://gitlab.com/gitlab-org/gitlab/-/merge_requests/137518



Merged-by: default avatarFlorie Guibert <fguibert@gitlab.com>
Approved-by: default avatarRahul Chanila <rchanila@gitlab.com>
Approved-by: default avatarFlorie Guibert <fguibert@gitlab.com>
Approved-by: default avatarMarcel Amirault <mamirault@gitlab.com>
Co-authored-by: default avatarAdie Po <avpfestin@gitlab.com>
No related branches found
No related tags found
无相关合并请求
......@@ -97,9 +97,11 @@
= render 'projects/errors'
= gitlab_ui_form_for @project do |f|
.form-group
%p
%span.gl-font-weight-bold= _("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.')
%ul
%li= _("Be careful. Renaming a project's repository can have unintended side effects.")
%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?
%p= _('Your deployment services will be broken, you will need to manually fix the services after renaming.')
= f.label :path, _('Path'), class: 'label-bold'
......
......@@ -13393,6 +13393,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}."
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}"
msgstr ""
 
......@@ -111,4 +111,24 @@
expect(rendered).to have_content(_('GitLab Pages has moved'))
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
0% 加载中 .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册