summaryrefslogtreecommitdiff
path: root/app/services/projects/operations/update_service.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/services/projects/operations/update_service.rb')
-rw-r--r--app/services/projects/operations/update_service.rb9
1 files changed, 8 insertions, 1 deletions
diff --git a/app/services/projects/operations/update_service.rb b/app/services/projects/operations/update_service.rb
index 2cc6bcdf57c..51b8e3c6c54 100644
--- a/app/services/projects/operations/update_service.rb
+++ b/app/services/projects/operations/update_service.rb
@@ -63,8 +63,15 @@ module Projects
# Make sure we're converting to symbols because
# * ActionController::Parameters#keys returns a list of strings
# * in specs we're using hashes with symbols as keys
+ update_keys = settings.keys.map(&:to_sym)
- settings.keys.map(&:to_sym) == %i[enabled]
+ # Integrated error tracking works without Sentry integration,
+ # so we don't need to update all those values from error_tracking_params_for_update method.
+ # Instead we turn it on/off with partial update together with "enabled" attribute.
+ # But since its optional, we exclude it from the condition below.
+ update_keys.delete(:integrated)
+
+ update_keys == %i[enabled]
end
def error_tracking_params_for_partial_update(settings)