Commit 25ae448b authored by Kamil Trzciński's avatar Kamil Trzciński

Enable `ci_if_parenthesis_enabled` feature flag

- Add feature flag definition
- Mark it as default enabled
parent 603bce88
---
name: ci_if_parenthesis_enabled
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/37574
rollout_issue_url: https://gitlab.com/gitlab-org/gitlab/-/issues/238174
group: group::ci
type: development
default_enabled: true
\ No newline at end of file
...@@ -760,9 +760,9 @@ Examples: ...@@ -760,9 +760,9 @@ Examples:
- `($VARIABLE1 =~ /^content.*/ || $VARIABLE2 =~ /thing$/) && $VARIABLE3` - `($VARIABLE1 =~ /^content.*/ || $VARIABLE2 =~ /thing$/) && $VARIABLE3`
- `$CI_COMMIT_BRANCH == "my-branch" || (($VARIABLE1 == "thing" || $VARIABLE2 == "thing") && $VARIABLE3)` - `$CI_COMMIT_BRANCH == "my-branch" || (($VARIABLE1 == "thing" || $VARIABLE2 == "thing") && $VARIABLE3)`
The feature is currently deployed behind a feature flag that is **disabled by default**. The feature is currently 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 opt to enable it for your instance. can opt to disable it for your instance.
To enable it: To enable it:
......
...@@ -57,7 +57,7 @@ module Gitlab ...@@ -57,7 +57,7 @@ module Gitlab
end end
def self.ci_if_parenthesis_enabled? def self.ci_if_parenthesis_enabled?
::Feature.enabled?(:ci_if_parenthesis_enabled) ::Feature.enabled?(:ci_if_parenthesis_enabled, default_enabled: true)
end end
def self.allow_to_create_merge_request_pipelines_in_target_project?(target_project) def self.allow_to_create_merge_request_pipelines_in_target_project?(target_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