class DashOverlord::UseCases::V1::ChartConfigs::Update::Base

Public Instance Methods

final() click to toggle source
# File lib/dash_overlord/use_cases/v1/chart_configs/update/base.rb, line 17
def final
  context.data = Serializers::V1::ChartConfigs::Update.to_hash \
    context,
    if status.ok? || status.unprocessable_entity?
      :chart_config
    else
      false
    end
end
perform() click to toggle source
# File lib/dash_overlord/use_cases/v1/chart_configs/update/base.rb, line 8
def perform
  invoke! Admins::FindCurrentAdmin
  invoke! Show::FindChartConfig
  invoke! Create::AssignAttributesToChartConfig
  invoke! Create::ValidateChartConfig
  # invoke! CacheAnswerValues::BuildCache
  invoke! SaveChartConfig
end