Commit 2c678f2b authored by Krasimir Angelov's avatar Krasimir Angelov

Enable Generic packages by default

Enable `generic_packages` feature flag by default and update the
corresponding section in the documentation.

Rollout issue https://gitlab.com/gitlab-org/gitlab/-/issues/239133.

Related to https://gitlab.com/groups/gitlab-org/-/epics/4209.
parent 57a7d29d
---
title: Add support for Generic packages
merge_request: 45102
author:
type: added
...@@ -4,4 +4,4 @@ introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/40045 ...@@ -4,4 +4,4 @@ introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/40045
rollout_issue_url: https://gitlab.com/gitlab-org/gitlab/-/issues/239133 rollout_issue_url: https://gitlab.com/gitlab-org/gitlab/-/issues/239133
group: group::release management group: group::release management
type: development type: development
default_enabled: false default_enabled: true
...@@ -7,11 +7,11 @@ info: To determine the technical writer assigned to the Stage/Group associated w ...@@ -7,11 +7,11 @@ info: To determine the technical writer assigned to the Stage/Group associated w
# GitLab Generic Packages Repository **(CORE)** # GitLab Generic Packages Repository **(CORE)**
> - [Introduced](https://gitlab.com/groups/gitlab-org/-/epics/4209) in GitLab 13.5. > - [Introduced](https://gitlab.com/groups/gitlab-org/-/epics/4209) in GitLab 13.5.
> - It's [deployed behind a feature flag](../../../user/feature_flags.md), disabled by default. > - It's [deployed behind a feature flag](../../../user/feature_flags.md), enabled by default.
> - It's disabled on GitLab.com. > - It's enabled on GitLab.com.
> - It's able to be enabled or disabled per-project. > - It's able to be enabled or disabled per-project.
> - It's not recommended for production use. > - It's recommended for production use.
> - To use it in GitLab self-managed instances, ask a GitLab administrator to [enable it](#enable-or-disable-generic-packages-in-the-package-registry). > - For GitLab self-managed instances, GitLab administrators can opt to [disable it](#enable-or-disable-generic-packages-in-the-package-registry).
CAUTION: **Warning:** CAUTION: **Warning:**
This feature might not be available to you. Check the **version history** note above for details. This feature might not be available to you. Check the **version history** note above for details.
...@@ -115,10 +115,10 @@ download: ...@@ -115,10 +115,10 @@ download:
### Enable or disable generic packages in the Package Registry ### Enable or disable generic packages in the Package Registry
Support for generic packages is under development and not ready for production use. It is Support for generic packages is under development but ready for production use.
deployed behind a feature flag that is **disabled by default**. It is deployed behind a feature flag that is **enabled by default**.
[GitLab administrators with access to the GitLab Rails console](../../../administration/feature_flags.md) [GitLab administrators with access to the GitLab Rails console](../../../administration/feature_flags.md)
can enable it. can opt to disable it.
To enable it: To enable it:
......
...@@ -101,7 +101,7 @@ module API ...@@ -101,7 +101,7 @@ module API
include ::API::Helpers::Packages::BasicAuthHelpers include ::API::Helpers::Packages::BasicAuthHelpers
def require_generic_packages_available! def require_generic_packages_available!
not_found! unless Feature.enabled?(:generic_packages, project) not_found! unless Feature.enabled?(:generic_packages, project, default_enabled: true)
end end
def project def project
......
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