Class: ChronoForge::Dashboard::BranchChildrenController
- Inherits:
-
BaseController
- Object
- ActionController::Base
- BaseController
- ChronoForge::Dashboard::BranchChildrenController
- Defined in:
- app/controllers/chrono_forge/dashboard/branch_children_controller.rb
Overview
The children of one branch — a keyset-paginated, filterable list scoped to a single branch$ log’s spawned_workflows. A branch can hold hundreds of thousands of children, so we never render more than a page and default the filter to “blocked” (failed + stalled) — the triage view that matters.
Instance Method Summary collapse
Instance Method Details
#show ⇒ Object
8 9 10 11 12 13 14 15 16 17 18 19 20 21 |
# File 'app/controllers/chrono_forge/dashboard/branch_children_controller.rb', line 8 def show @workflow = ChronoForge::Workflow.find(params[:workflow_id]) @branch_log = @workflow.execution_logs.find(params[:id]) # scope to this workflow @branch = BranchPresenter.new(@branch_log) base = @branch_log.spawned_workflows @query = WorkflowsQuery.new(base: base, **list_params) @children = @query.records @waits = WaitStatePresenter.active_map(@children) stats = StatsQuery.new(base: base) @stats = stats.counts @stats_cap = stats.cap end |