summaryrefslogtreecommitdiff
path: root/lib/api/entities.rb
diff options
context:
space:
mode:
authorRobin Bobbitt <ryehle@us.ibm.com>2017-06-01 10:57:41 -0400
committerRobin Bobbitt <ryehle@us.ibm.com>2017-06-02 15:35:51 -0400
commitc2516115e391360055f733d40af8aff2af52196b (patch)
tree71e052e5f8a85cd0dc14acd0ece4195e155e29f7 /lib/api/entities.rb
parent0218a0bd2308eaa1b968cc0e0c68fdb88788df56 (diff)
downloadgitlab-ce-c2516115e391360055f733d40af8aff2af52196b.tar.gz
Expose import_status in Projects API
Diffstat (limited to 'lib/api/entities.rb')
-rw-r--r--lib/api/entities.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/api/entities.rb b/lib/api/entities.rb
index e3258fdcffe..ea18cd83a0b 100644
--- a/lib/api/entities.rb
+++ b/lib/api/entities.rb
@@ -100,6 +100,8 @@ module API
expose :creator_id
expose :namespace, using: 'API::Entities::Namespace'
expose :forked_from_project, using: Entities::BasicProjectDetails, if: lambda{ |project, options| project.forked? }
+ expose :import_status
+ expose :import_error, if: lambda { |_project, options| options[:user_can_admin_project] }
expose :avatar_url do |user, options|
user.avatar_url(only_path: false)
end