Module: ChartTableConcern
- Extended by:
- ActiveSupport::Concern
- Included in:
- RailsPulse::JobsController, RailsPulse::QueriesController, RailsPulse::RequestsController, RailsPulse::RoutesController
- Defined in:
- app/controllers/concerns/chart_table_concern.rb
Overview
ChartTableConcern
Core concern for controllers that display both charts and tables (routes, requests, queries, jobs). Orchestrates time range setup, chart generation, table queries, and zoom/filter handling. Includes TimeRangeConcern, ResponseRangeConcern, and ZoomRangeConcern for filter management.
Controllers including this concern must implement:
-
chart_model, table_model, chart_definitions, default_table_sort, build_table_results
Constant Summary collapse
- VALID_PERIOD_TYPES =
Valid period types for summary data - constrained to prevent SQL injection
%w[hour day].freeze