Commit a3f02794 authored by Vladimir Shushlin's avatar Vladimir Shushlin

Scope finder optimization feature flag by project

parent e10e31d5
...@@ -24,7 +24,7 @@ module Environments ...@@ -24,7 +24,7 @@ module Environments
end end
environments = environments =
if Feature.enabled?(:environments_by_deployments_finder_exists_optimization, default_enabled: :yaml) if Feature.enabled?(:environments_by_deployments_finder_exists_optimization, project, default_enabled: :yaml)
project.environments.available project.environments.available
.where('EXISTS (?)', deployments.where('environment_id = environments.id')) .where('EXISTS (?)', deployments.where('environment_id = environments.id'))
else else
......
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