Commit ac6c2b41 authored by George Koltsov's avatar George Koltsov

Update project import API field

parent d3635ba2
...@@ -3,7 +3,11 @@ ...@@ -3,7 +3,11 @@
module API module API
module Entities module Entities
class ProjectImportFailedRelation < Grape::Entity 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 expose :relation_key, as: :relation_name
end end
......
...@@ -14,7 +14,7 @@ RSpec.describe API::Entities::ProjectImportFailedRelation do ...@@ -14,7 +14,7 @@ RSpec.describe API::Entities::ProjectImportFailedRelation do
id: import_failure.id, id: import_failure.id,
created_at: import_failure.created_at, created_at: import_failure.created_at,
exception_class: import_failure.exception_class, exception_class: import_failure.exception_class,
exception_message: import_failure.exception_message, exception_message: nil,
relation_name: import_failure.relation_key, relation_name: import_failure.relation_key,
source: import_failure.source 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