Elaborate on potential data loss when transferring project to another namespace
Description of issue:
When you transfer a project (https://gitlab.com/nelbacha/test-project) to a different namespace (https://gitlab.com/transfer-namespace-test), you will be prompted with the following warning regarding potential data loss:
Reading through our documentation regarding this feature, we do not see any explanations about potential data loss:
The modal itself
Looking at the modal itself (master/app/views/shared/_confirm_modal.html.haml#L13), we can see that it was added 6 years ago: ConfirmDangerModal window added. It will be used for confirmation of dangerous actions.
So it looks like a typical "Warning" and/or "Confirmation" modal to confirm what you're about to do. The actual message that we pass is then declared in app/views/projects/_transfer.html.haml#L17 through confirm-danger-message
=> transfer_project_message(@project)
, which leads us to app/helpers/projects_helper.rb#L102, with the following content:
_("You are going to transfer %{project_full_name} to another namespace. Are you ABSOLUTELY sure?") %
However, the warning regarding potential data loss seems to be hardcoded/default in /app/views/shared/_confirm_modal.html.haml#L10-13:
%p.text-danger.js-confirm-text
%p
%span.js-warning-text= _('This action can lead to data loss. To prevent accidental actions we ask you to confirm your intention.')
Actionable
- We need to figure out whether this modal needs updating, in order to avoid warning of potential data loss, or
- We need to figure out what data loss it is referencing, and elaborate on that in our documentation
Adding the devopscreate groupsource code labels since there was some initial discussion in Slack.