From 87d4038aefc7864a018e03633a9c4b707609a666 Mon Sep 17 00:00:00 2001
From: Stan Hu <stanhu@gmail.com>
Date: Fri, 17 Apr 2020 23:44:33 -0700
Subject: [PATCH] Remove feature flag for using dashboard CTE

This has been running in production for a few months now without issues,
so we should be able to remove it now.
---
 app/controllers/dashboard/projects_controller.rb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/app/controllers/dashboard/projects_controller.rb b/app/controllers/dashboard/projects_controller.rb
index c173d7d2310dd..c056d5cd0e4ca 100644
--- a/app/controllers/dashboard/projects_controller.rb
+++ b/app/controllers/dashboard/projects_controller.rb
@@ -83,7 +83,7 @@ def preload_associations(projects)
 
   def use_cte_for_finder?
     # The starred action loads public projects, which causes the CTE to be less efficient
-    action_name == 'index' && Feature.enabled?(:use_cte_for_projects_finder, default_enabled: true)
+    action_name == 'index'
   end
 
   def load_events
-- 
GitLab