diff options
Diffstat (limited to 'app/finders/deployments_finder.rb')
-rw-r--r-- | app/finders/deployments_finder.rb | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/app/finders/deployments_finder.rb b/app/finders/deployments_finder.rb index c5f8510ca16..3d40da78dbc 100644 --- a/app/finders/deployments_finder.rb +++ b/app/finders/deployments_finder.rb @@ -52,10 +52,6 @@ class DeploymentsFinder private - def raise_for_inefficient_updated_at_query? - params.fetch(:raise_for_inefficient_updated_at_query, Rails.env.development? || Rails.env.test?) - end - def validate! if filter_by_updated_at? && filter_by_finished_at? raise InefficientQueryError, 'Both `updated_at` filter and `finished_at` filter can not be specified' @@ -68,7 +64,7 @@ class DeploymentsFinder Gitlab::ErrorTracking.log_exception(error) - raise error if raise_for_inefficient_updated_at_query? + raise error if Feature.enabled?(:deployments_raise_updated_at_inefficient_error) end if filter_by_finished_at? && !order_by_finished_at? |