From 74f3bde09e948ef47305de42451ef541c54606a2 Mon Sep 17 00:00:00 2001 From: Jonas Grau Date: Sat, 16 Nov 2024 15:50:36 +0100 Subject: [PATCH] Remove unneeded include of pg_locks when displaying jobs table (#1541) --- app/filters/good_job/jobs_filter.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/filters/good_job/jobs_filter.rb b/app/filters/good_job/jobs_filter.rb index dc366d6a1..a78d1dec3 100644 --- a/app/filters/good_job/jobs_filter.rb +++ b/app/filters/good_job/jobs_filter.rb @@ -39,7 +39,7 @@ def filtered_query(filter_params = params) when 'scheduled' query = query.scheduled when 'running' - query = query.running.select("#{GoodJob::Job.table_name}.*", 'pg_locks.locktype') + query = query.running when 'queued' query = query.queued end @@ -55,7 +55,7 @@ def filtered_count private def query_for_records - filtered_query.includes_advisory_locks + filtered_query end def default_base_query