debian-mirror-gitlab/lib/api/entities/bulk_imports/entity_failure.rb

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

21 lines
530 B
Ruby
Raw Normal View History

2021-09-30 23:02:18 +05:30
# frozen_string_literal: true
module API
module Entities
module BulkImports
class EntityFailure < Grape::Entity
2022-11-25 23:54:43 +05:30
expose :relation
expose :pipeline_step, as: :step
expose :exception_message do |failure|
::Projects::ImportErrorFilter.filter_message(failure.exception_message.truncate(72))
end
2021-09-30 23:02:18 +05:30
expose :exception_class
expose :correlation_id_value
expose :created_at
2022-11-25 23:54:43 +05:30
expose :pipeline_class
expose :pipeline_step
2021-09-30 23:02:18 +05:30
end
end
end
end