Skip to content

OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub

more efficient id fetching

ulfertsdc0778f36e54
diff --git a/app/components/projects/index_page_header_component.rb b/app/components/projects/index_page_header_component.rb
index ee0bdbe3f0d..eb8aefb86ae 100644
--- a/app/components/projects/index_page_header_component.rb
+++ b/app/components/projects/index_page_header_component.rb
@@ -65,9 +65,8 @@ class Projects::IndexPageHeaderComponent < ApplicationComponent
@gantt_portfolio_project_ids ||= @query
.results
.where(active: true)
- .select(:id)
- .uniq
.pluck(:id)
+ .uniq
end
def page_title