diff options
Diffstat (limited to 'app/services/projects/operations/update_service.rb')
-rw-r--r-- | app/services/projects/operations/update_service.rb | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/app/services/projects/operations/update_service.rb b/app/services/projects/operations/update_service.rb index d0bef9da329..e7a8d5305ea 100644 --- a/app/services/projects/operations/update_service.rb +++ b/app/services/projects/operations/update_service.rb @@ -14,8 +14,6 @@ module Projects def project_update_params error_tracking_params .merge(alerting_setting_params) - .merge(metrics_setting_params) - .merge(grafana_integration_params) .merge(prometheus_integration_params) .merge(incident_management_setting_params) end @@ -37,15 +35,6 @@ module Projects { alerting_setting_attributes: attr } end - def metrics_setting_params - attribs = params[:metrics_setting_attributes] - return {} unless attribs - - attribs[:external_dashboard_url] = attribs[:external_dashboard_url].presence - - { metrics_setting_attributes: attribs } - end - def error_tracking_params settings = params[:error_tracking_setting_attributes] return {} if settings.blank? @@ -99,14 +88,6 @@ module Projects params end - def grafana_integration_params - return {} unless attrs = params[:grafana_integration_attributes] - - destroy = attrs[:grafana_url].blank? && attrs[:token].blank? - - { grafana_integration_attributes: attrs.merge(_destroy: destroy) } - end - def prometheus_integration_params return {} unless attrs = params[:prometheus_integration_attributes] |