Class: PgSqlTriggers::DashboardController

Inherits:
ApplicationController show all
Defined in:
app/controllers/pg_sql_triggers/dashboard_controller.rb

Constant Summary collapse

DRIFT_STATE_PARAM_MAP =
{
  "in_sync" => PgSqlTriggers::DRIFT_STATE_IN_SYNC,
  "drifted" => PgSqlTriggers::DRIFT_STATE_DRIFTED,
  "disabled" => PgSqlTriggers::DRIFT_STATE_DISABLED,
  "dropped" => PgSqlTriggers::DRIFT_STATE_DROPPED,
  "unknown" => PgSqlTriggers::DRIFT_STATE_UNKNOWN,
  "manual_override" => PgSqlTriggers::DRIFT_STATE_MANUAL_OVERRIDE
}.freeze
SOURCE_OPTIONS =
%w[dsl generated manual_sql].freeze

Instance Method Summary collapse

Methods included from PermissionsHelper

#can?, #can_apply_triggers?, #can_drop_triggers?, #can_enable_disable_triggers?, #can_execute_sql_operations?, #can_generate_triggers?, #can_view_triggers?

Methods included from ErrorHandling

#format_error_for_flash, #handle_kill_switch_error, #handle_standard_error, #rescue_pg_sql_triggers_error

Methods included from PermissionChecking

#can_apply_triggers?, #can_drop_triggers?, #can_enable_disable_triggers?, #can_execute_sql_operations?, #can_generate_triggers?, #can_view_triggers?, #check_admin_permission, #check_operator_permission, #check_viewer_permission, #current_actor, #current_user_id, #current_user_type

Methods included from KillSwitchProtection

#check_kill_switch, #current_environment, #expected_confirmation_text, #kill_switch_active?, #require_kill_switch_override

Instance Method Details

#indexObject



20
21
22
23
24
# File 'app/controllers/pg_sql_triggers/dashboard_controller.rb', line 20

def index
  load_filters
  load_triggers
  load_migration_status
end