Commit d6a6a907 authored by Fabio Pitino's avatar Fabio Pitino

Enable feature flag by default

parent 69c9af3e
...@@ -26,7 +26,7 @@ module EE ...@@ -26,7 +26,7 @@ module EE
strategy :CrossProjectTrigger, if: -> (config) { !config.key?(:include) } strategy :CrossProjectTrigger, if: -> (config) { !config.key?(:include) }
strategy :SameProjectTrigger, if: -> (config) do strategy :SameProjectTrigger, if: -> (config) do
::Feature.enabled?(:ci_parent_child_pipeline) && ::Feature.enabled?(:ci_parent_child_pipeline, default_enabled: true) &&
config.key?(:include) config.key?(:include)
end end
...@@ -73,7 +73,7 @@ module EE ...@@ -73,7 +73,7 @@ module EE
class UnknownStrategy < ::Gitlab::Config::Entry::Node class UnknownStrategy < ::Gitlab::Config::Entry::Node
def errors def errors
if ::Feature.enabled?(:ci_parent_child_pipeline) if ::Feature.enabled?(:ci_parent_child_pipeline, default_enabled: true)
['config must specify either project or include'] ['config must specify either project or include']
else else
['config must specify project'] ['config must specify 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