Commit 915b42b7 authored by Mayra Cabrera's avatar Mayra Cabrera

Merge branch 'update-project-import-api' into 'master'

Update project import API field

See merge request gitlab-org/gitlab!57150
parents 2bf6f262 ac6c2b41
......@@ -3,7 +3,11 @@
module API
module Entities
class ProjectImportFailedRelation < Grape::Entity
expose :id, :created_at, :exception_class, :exception_message, :source
expose :id, :created_at, :exception_class, :source
expose :exception_message do |_|
nil
end
expose :relation_key, as: :relation_name
end
......
......@@ -14,7 +14,7 @@ RSpec.describe API::Entities::ProjectImportFailedRelation do
id: import_failure.id,
created_at: import_failure.created_at,
exception_class: import_failure.exception_class,
exception_message: import_failure.exception_message,
exception_message: nil,
relation_name: import_failure.relation_key,
source: import_failure.source
)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment