From e227ec6c02ac7e88067ffaf2eb38c71c5d39f765 Mon Sep 17 00:00:00 2001 From: Jonas Grau Date: Thu, 14 Nov 2024 09:45:52 +0100 Subject: [PATCH] Remove unneeded include of pg_locks when displaying jobs table --- 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