Improve projects table loading speed [SCI-10147] (#7136)

This commit is contained in:
ajugo 2024-03-06 14:48:30 +01:00 committed by GitHub
parent bd22084298
commit d2b097599f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -34,8 +34,7 @@ module Lists
def fetch_projects
@team.projects
.includes(:team, user_assignments: %i(user user_role))
.includes(:project_comments, experiments: { my_modules: { my_module_status: :my_module_status_implications } })
.includes(:team, :project_comments, user_assignments: %i(user user_role))
.visible_to(@user, @team)
.left_outer_joins(:project_comments)
.select('projects.*')