class DashboardController
Renders the landing overview: triage list, paused plans, health counters, and the age of the last metadata sync. Authorization is a simple Pundit check on the :dashboard policy.
Public Instance Methods
Source
# File app/controllers/dashboard_controller.rb, line 7 def index authorize :dashboard @triage = TriageQuery.new.call @paused_plans = MaintenancePlan.kept.where(is_paused: true).joins(:iceberg_table) .where(iceberg_tables: { active: true }) .includes(iceberg_table: :catalog) # The top counters stay - they are a summary, not a list. @health_counts = IcebergTable.active.group(:health_status).count @total_tables = @health_counts.values.sum # Without a sync there is no fresh data: the UI must say how old it is. @last_sync_at = IcebergTable.maximum(:metadata_synced_at) # The Trino cluster name, when one is known. @cluster_name = TrinoCluster.current_name end
Assembles the dashboard data: triage queries, paused plans, health counters, and the last sync timestamp.