Commit dddb6fd5 authored by Max Woolf's avatar Max Woolf

Merge branch '221100-replace-project-remove-with-project-delete' into 'master'

Replace delayed project "removal" with "deletion" in docs and specs

See merge request gitlab-org/gitlab!74640
parents 4c1a5552 9c84fd29
...@@ -296,7 +296,7 @@ Depending on your installation method, this file is located at: ...@@ -296,7 +296,7 @@ Depending on your installation method, this file is located at:
- Installations from source: `/home/git/gitlab/log/application.log` - Installations from source: `/home/git/gitlab/log/application.log`
It helps you discover events happening in your instance such as user creation It helps you discover events happening in your instance such as user creation
and project removal. For example: and project deletion. For example:
```plaintext ```plaintext
October 06, 2014 11:56: User "Administrator" (admin@example.com) was created October 06, 2014 11:56: User "Administrator" (admin@example.com) was created
......
...@@ -2093,7 +2093,7 @@ This endpoint: ...@@ -2093,7 +2093,7 @@ This endpoint:
merge requests). merge requests).
- From [GitLab 13.2](https://gitlab.com/gitlab-org/gitlab/-/issues/220382) on - From [GitLab 13.2](https://gitlab.com/gitlab-org/gitlab/-/issues/220382) on
[Premium or higher](https://about.gitlab.com/pricing/) tiers, group [Premium or higher](https://about.gitlab.com/pricing/) tiers, group
administrators can [configure](../user/group/index.md#enable-delayed-project-removal) administrators can [configure](../user/group/index.md#enable-delayed-project-deletion)
projects within a group to be deleted after a delayed period. When enabled, projects within a group to be deleted after a delayed period. When enabled,
actual deletion happens after the number of days specified in the actual deletion happens after the number of days specified in the
[default deletion delay](../user/admin_area/settings/visibility_and_access_controls.md#default-deletion-delay). [default deletion delay](../user/admin_area/settings/visibility_and_access_controls.md#default-deletion-delay).
...@@ -2101,7 +2101,7 @@ This endpoint: ...@@ -2101,7 +2101,7 @@ This endpoint:
WARNING: WARNING:
The default behavior of [Delayed Project deletion](https://gitlab.com/gitlab-org/gitlab/-/issues/32935) The default behavior of [Delayed Project deletion](https://gitlab.com/gitlab-org/gitlab/-/issues/32935)
in GitLab 12.6 was changed to [Immediate deletion](https://gitlab.com/gitlab-org/gitlab/-/issues/220382) in GitLab 12.6 was changed to [Immediate deletion](https://gitlab.com/gitlab-org/gitlab/-/issues/220382)
in GitLab 13.2, as discussed in [Enable delayed project removal](../user/group/index.md#enable-delayed-project-removal). in GitLab 13.2, as discussed in [Enable delayed project deletion](../user/group/index.md#enable-delayed-project-deletion).
```plaintext ```plaintext
DELETE /projects/:id DELETE /projects/:id
......
...@@ -194,7 +194,7 @@ This function should be imported and called in the [page-specific JavaScript](fe ...@@ -194,7 +194,7 @@ This function should be imported and called in the [page-specific JavaScript](fe
setting_locked: delayed_project_removal_locked, setting_locked: delayed_project_removal_locked,
settings_path_helper: -> (locked_ancestor) { edit_group_path(locked_ancestor, anchor: 'js-permissions-settings') }, settings_path_helper: -> (locked_ancestor) { edit_group_path(locked_ancestor, anchor: 'js-permissions-settings') },
help_text: s_('Settings|Projects will be permanently deleted after a 7-day delay. Inherited by subgroups.') do help_text: s_('Settings|Projects will be permanently deleted after a 7-day delay. Inherited by subgroups.') do
= s_('Settings|Enable delayed project removal') = s_('Settings|Enable delayed project deletion')
= render 'shared/namespaces/cascading_settings/enforcement_checkbox', = render 'shared/namespaces/cascading_settings/enforcement_checkbox',
attribute: :delayed_project_removal, attribute: :delayed_project_removal,
group: @group, group: @group,
......
...@@ -111,7 +111,7 @@ You can combine the filter options. For example, to list only public projects wi ...@@ -111,7 +111,7 @@ You can combine the filter options. For example, to list only public projects wi
> [Introduced](https://gitlab.com/gitlab-org/gitlab/-/merge_requests/37014) in GitLab 13.3. > [Introduced](https://gitlab.com/gitlab-org/gitlab/-/merge_requests/37014) in GitLab 13.3.
When delayed project deletion is [enabled for a group](../group/index.md#enable-delayed-project-removal), When delayed project deletion is [enabled for a group](../group/index.md#enable-delayed-project-deletion),
projects within that group are not deleted immediately, but only after a delay. To access a list of all projects that are pending deletion: projects within that group are not deleted immediately, but only after a delay. To access a list of all projects that are pending deletion:
1. On the top bar, select **Menu > Projects > Explore projects**. 1. On the top bar, select **Menu > Projects > Explore projects**.
......
...@@ -98,7 +98,7 @@ delete a project. To allow only users with the Administrator role to delete proj ...@@ -98,7 +98,7 @@ delete a project. To allow only users with the Administrator role to delete proj
> [Introduced](https://gitlab.com/gitlab-org/gitlab/-/issues/255449) in GitLab 14.2 for groups created after August 12, 2021. > [Introduced](https://gitlab.com/gitlab-org/gitlab/-/issues/255449) in GitLab 14.2 for groups created after August 12, 2021.
Projects in a group (but not a personal namespace) can be deleted after a delayed period. Projects in a group (but not a personal namespace) can be deleted after a delayed period.
You can [configure it in group settings](../../group/index.md#enable-delayed-project-removal). You can [configure it in group settings](../../group/index.md#enable-delayed-project-deletion).
To enable delayed project deletion by default in new groups: To enable delayed project deletion by default in new groups:
...@@ -117,7 +117,7 @@ The default behavior of [Delayed Project deletion](https://gitlab.com/gitlab-org ...@@ -117,7 +117,7 @@ The default behavior of [Delayed Project deletion](https://gitlab.com/gitlab-org
[Immediate deletion](https://gitlab.com/gitlab-org/gitlab/-/issues/220382) in GitLab 13.2. [Immediate deletion](https://gitlab.com/gitlab-org/gitlab/-/issues/220382) in GitLab 13.2.
Projects in a group (but not a personal namespace) can be deleted after a delayed period, by Projects in a group (but not a personal namespace) can be deleted after a delayed period, by
[configuring in Group Settings](../../group/index.md#enable-delayed-project-removal). [configuring in Group Settings](../../group/index.md#enable-delayed-project-deletion).
The default period is seven days, and can be changed. Setting this period to `0` enables immediate removal The default period is seven days, and can be changed. Setting this period to `0` enables immediate removal
of projects or groups. of projects or groups.
......
...@@ -85,7 +85,7 @@ are included when cloning. ...@@ -85,7 +85,7 @@ are included when cloning.
Top-level groups created after August 12, 2021 have delayed project deletion enabled by default. Top-level groups created after August 12, 2021 have delayed project deletion enabled by default.
Projects are permanently deleted after a seven-day delay. Projects are permanently deleted after a seven-day delay.
You can disable this by changing the [group setting](../group/index.md#enable-delayed-project-removal). You can disable this by changing the [group setting](../group/index.md#enable-delayed-project-deletion).
## Alternative SSH port ## Alternative SSH port
......
...@@ -666,7 +666,7 @@ To disable group mentions: ...@@ -666,7 +666,7 @@ To disable group mentions:
1. Select **Disable group mentions**. 1. Select **Disable group mentions**.
1. Select **Save changes**. 1. Select **Save changes**.
## Enable delayed project removal **(PREMIUM)** ## Enable delayed project deletion **(PREMIUM)**
> - [Introduced](https://gitlab.com/gitlab-org/gitlab/-/issues/220382) in GitLab 13.2. > - [Introduced](https://gitlab.com/gitlab-org/gitlab/-/issues/220382) in GitLab 13.2.
> - [Inheritance and enforcement added](https://gitlab.com/gitlab-org/gitlab/-/issues/321724) in GitLab 13.11. > - [Inheritance and enforcement added](https://gitlab.com/gitlab-org/gitlab/-/issues/321724) in GitLab 13.11.
...@@ -691,12 +691,12 @@ To enable delayed deletion of projects in a group: ...@@ -691,12 +691,12 @@ To enable delayed deletion of projects in a group:
1. Go to the group's **Settings > General** page. 1. Go to the group's **Settings > General** page.
1. Expand the **Permissions, LFS, 2FA** section. 1. Expand the **Permissions, LFS, 2FA** section.
1. Check **Enable delayed project removal**. 1. Check **Enable delayed project deletion**.
1. Optional. To prevent subgroups from changing this setting, select **Enforce for all subgroups**. 1. Optional. To prevent subgroups from changing this setting, select **Enforce for all subgroups**.
1. Select **Save changes**. 1. Select **Save changes**.
NOTE: NOTE:
In GitLab 13.11 and above the group setting for delayed project removal is inherited by subgroups. As discussed in [Cascading settings](../../development/cascading_settings.md) inheritance can be overridden, unless enforced by an ancestor. In GitLab 13.11 and above the group setting for delayed project deletion is inherited by subgroups. As discussed in [Cascading settings](../../development/cascading_settings.md) inheritance can be overridden, unless enforced by an ancestor.
## Prevent project forking outside group **(PREMIUM)** ## Prevent project forking outside group **(PREMIUM)**
......
...@@ -450,7 +450,7 @@ To delete a project: ...@@ -450,7 +450,7 @@ To delete a project:
This action deletes a project including all associated resources (issues, merge requests, and so on). This action deletes a project including all associated resources (issues, merge requests, and so on).
In [GitLab 13.2](https://gitlab.com/gitlab-org/gitlab/-/issues/220382) and later, on Premium or higher tiers, In [GitLab 13.2](https://gitlab.com/gitlab-org/gitlab/-/issues/220382) and later, on Premium or higher tiers,
group Owners can [configure](../../group/index.md#enable-delayed-project-removal) projects in a group group Owners can [configure](../../group/index.md#enable-delayed-project-deletion) projects in a group
to be deleted after a delayed period. to be deleted after a delayed period.
When enabled, actual deletion happens after number of days When enabled, actual deletion happens after number of days
specified in [instance settings](../../admin_area/settings/visibility_and_access_controls.md#default-deletion-delay). specified in [instance settings](../../admin_area/settings/visibility_and_access_controls.md#default-deletion-delay).
......
...@@ -248,7 +248,7 @@ To delete a project, first navigate to the home page for that project. ...@@ -248,7 +248,7 @@ To delete a project, first navigate to the home page for that project.
1. Click **Delete project** 1. Click **Delete project**
1. Confirm this action by typing in the expected text. 1. Confirm this action by typing in the expected text.
Projects in personal namespaces are deleted immediately on request. For information on delayed deletion of projects in a group, please see [Enable delayed project removal](../group/index.md#enable-delayed-project-removal). Projects in personal namespaces are deleted immediately on request. For information on delayed deletion of projects in a group, please see [Enable delayed project deletion](../group/index.md#enable-delayed-project-deletion).
## Project settings ## Project settings
......
...@@ -153,7 +153,7 @@ RSpec.describe 'Edit group settings' do ...@@ -153,7 +153,7 @@ RSpec.describe 'Edit group settings' do
end end
end end
context 'enable delayed project removal' do context 'enable delayed project deletion' do
before do before do
stub_licensed_features(adjourned_deletion_for_projects_and_groups: true) stub_licensed_features(adjourned_deletion_for_projects_and_groups: true)
end end
......
...@@ -1304,7 +1304,7 @@ RSpec.describe API::Projects do ...@@ -1304,7 +1304,7 @@ RSpec.describe API::Projects do
stub_licensed_features(adjourned_deletion_for_projects_and_groups: true) stub_licensed_features(adjourned_deletion_for_projects_and_groups: true)
end end
context 'delayed project removal is enabled for group' do context 'delayed project deletion is enabled for group' do
let(:group) { create(:group) } let(:group) { create(:group) }
before do before do
...@@ -1334,7 +1334,7 @@ RSpec.describe API::Projects do ...@@ -1334,7 +1334,7 @@ RSpec.describe API::Projects do
end end
end end
context 'delayed project removal is disabled for group' do context 'delayed project deletion is disabled for group' do
it_behaves_like 'deletes project immediately' it_behaves_like 'deletes project immediately'
end end
......
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