Skip to content

Follow-up from "Create CI component usage record when component is included in pipeline"

The following discussion from !148216 (merged) should be addressed:

# app/services/ci/components/usages/create_service.rb

          if errors.size == 1 && errors.first.type == :taken # Only unique validation failed
            ServiceResponse.success(message: 'Usage already recorded for today')
          else
            ServiceResponse.error(message: errors.full_messages.join(', '))
          end
  • @furkanayhan started a discussion: (+4 comments)

    Also, we return this service error object but never use it anywhere. Should we notify Sentry?

Edited by Leaminn Ma