Skip to content

Commit

Permalink
Replace references to "Discrete" executions with simply Executions; d…
Browse files Browse the repository at this point in the history
…eprecate `GoodJob::DiscreteExecution` (#1427)
  • Loading branch information
bensheldon authored Jul 16, 2024
1 parent ab91b3e commit d934264
Show file tree
Hide file tree
Showing 23 changed files with 727 additions and 777 deletions.
2 changes: 1 addition & 1 deletion app/charts/good_job/performance_index_chart.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
module GoodJob
class PerformanceIndexChart < BaseChart
def data
table_name = GoodJob::DiscreteExecution.table_name
table_name = GoodJob::Execution.table_name

sum_query = Arel.sql(GoodJob::Job.pg_or_jdbc_query(<<~SQL.squish))
SELECT *
Expand Down
2 changes: 1 addition & 1 deletion app/charts/good_job/performance_show_chart.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ def initialize(job_class)
end

def data
table_name = GoodJob::DiscreteExecution.table_name
table_name = GoodJob::Execution.table_name

interval_entries = BUCKET_INTERVALS.map { "interval '#{_1}'" }.join(",")
sum_query = Arel.sql(GoodJob::Job.pg_or_jdbc_query(<<~SQL.squish))
Expand Down
2 changes: 1 addition & 1 deletion app/controllers/good_job/performance_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
module GoodJob
class PerformanceController < ApplicationController
def index
@performances = GoodJob::DiscreteExecution
@performances = GoodJob::Execution
.where.not(job_class: nil)
.group(:job_class)
.select("
Expand Down
Loading

0 comments on commit d934264

Please sign in to comment.