Class: ChronoForge::Dashboard::RepetitionsController

Inherits:
BaseController
  • Object
show all
Defined in:
app/controllers/chrono_forge/dashboard/repetitions_controller.rb

Overview

The full, keyset-paginated list of a durably_repeat step’s per-iteration runs — kept off the workflow timeline so a deep repetition history neither buries the timeline nor loads unbounded.

Instance Method Summary collapse

Instance Method Details

#indexObject



7
8
9
10
11
12
13
14
15
16
17
# File 'app/controllers/chrono_forge/dashboard/repetitions_controller.rb', line 7

def index
  @workflow = ChronoForge::Workflow.find(params[:id])
  @step = params.require(:step)
  @query = RepetitionsQuery.new(
    workflow: @workflow, step: @step,
    before: params[:before], after: params[:after],
    per: ChronoForge::Dashboard.config.page_size
  )
  @runs = @query.records
  @summary = @query.summary
end