Commit bec1642c authored by Heinrich Lee Yu's avatar Heinrich Lee Yu

Merge branch 'refactoring-entities-file-final' into 'master'

Add project entity into own class file

See merge request gitlab-org/gitlab!25297
parents 5f02596d 5da848de
---
title: Separate project entity into own class file
merge_request: 25297
author: Rajendra Kadam
type: added
...@@ -34,3 +34,5 @@ module API ...@@ -34,3 +34,5 @@ module API
end end
end end
end end
API::Entities::ApplicationSetting.prepend_if_ee('EE::API::Entities::ApplicationSetting')
...@@ -12,3 +12,5 @@ module API ...@@ -12,3 +12,5 @@ module API
end end
end end
end end
API::Entities::Board.prepend_if_ee('EE::API::Entities::Board')
...@@ -34,3 +34,5 @@ module API ...@@ -34,3 +34,5 @@ module API
end end
end end
end end
API::Entities::Group.prepend_if_ee('EE::API::Entities::Group', with_descendants: true)
...@@ -34,3 +34,5 @@ module API ...@@ -34,3 +34,5 @@ module API
end end
end end
end end
API::Entities::GroupDetail.prepend_if_ee('EE::API::Entities::GroupDetail')
...@@ -7,3 +7,5 @@ module API ...@@ -7,3 +7,5 @@ module API
end end
end end
end end
API::Entities::Identity.prepend_if_ee('EE::API::Entities::Identity')
...@@ -46,3 +46,5 @@ module API ...@@ -46,3 +46,5 @@ module API
end end
end end
end end
API::Entities::Issue.prepend_if_ee('EE::API::Entities::Issue')
...@@ -41,3 +41,5 @@ module API ...@@ -41,3 +41,5 @@ module API
end end
end end
end end
API::Entities::IssueBasic.prepend_if_ee('EE::API::Entities::IssueBasic', with_descendants: true)
...@@ -9,3 +9,5 @@ module API ...@@ -9,3 +9,5 @@ module API
end end
end end
end end
API::Entities::List.prepend_if_ee('EE::API::Entities::List')
...@@ -9,3 +9,5 @@ module API ...@@ -9,3 +9,5 @@ module API
end end
end end
end end
API::Entities::Member.prepend_if_ee('EE::API::Entities::Member', with_descendants: true)
...@@ -92,3 +92,5 @@ module API ...@@ -92,3 +92,5 @@ module API
end end
end end
end end
API::Entities::MergeRequestBasic.prepend_if_ee('EE::API::Entities::MergeRequestBasic', with_descendants: true)
...@@ -13,3 +13,5 @@ module API ...@@ -13,3 +13,5 @@ module API
end end
end end
end end
API::Entities::Namespace.prepend_if_ee('EE::API::Entities::Namespace')
...@@ -131,21 +131,4 @@ module API ...@@ -131,21 +131,4 @@ module API
end end
end end
# rubocop: disable Cop/InjectEnterpriseEditionModule API::Entities::Project.prepend_if_ee('EE::API::Entities::Project', with_descendants: true)
::API::Entities::ApplicationSetting.prepend_if_ee('EE::API::Entities::ApplicationSetting')
::API::Entities::Board.prepend_if_ee('EE::API::Entities::Board')
::API::Entities::Group.prepend_if_ee('EE::API::Entities::Group', with_descendants: true)
::API::Entities::GroupDetail.prepend_if_ee('EE::API::Entities::GroupDetail')
::API::Entities::IssueBasic.prepend_if_ee('EE::API::Entities::IssueBasic', with_descendants: true)
::API::Entities::Issue.prepend_if_ee('EE::API::Entities::Issue')
::API::Entities::List.prepend_if_ee('EE::API::Entities::List')
::API::Entities::MergeRequestBasic.prepend_if_ee('EE::API::Entities::MergeRequestBasic', with_descendants: true)
::API::Entities::Member.prepend_if_ee('EE::API::Entities::Member', with_descendants: true)
::API::Entities::Namespace.prepend_if_ee('EE::API::Entities::Namespace')
::API::Entities::Project.prepend_if_ee('EE::API::Entities::Project', with_descendants: true)
::API::Entities::ProtectedRefAccess.prepend_if_ee('EE::API::Entities::ProtectedRefAccess')
::API::Entities::UserPublic.prepend_if_ee('EE::API::Entities::UserPublic', with_descendants: true)
::API::Entities::Todo.prepend_if_ee('EE::API::Entities::Todo')
::API::Entities::ProtectedBranch.prepend_if_ee('EE::API::Entities::ProtectedBranch')
::API::Entities::Identity.prepend_if_ee('EE::API::Entities::Identity')
::API::Entities::UserWithAdmin.prepend_if_ee('EE::API::Entities::UserWithAdmin', with_descendants: true)
...@@ -10,3 +10,5 @@ module API ...@@ -10,3 +10,5 @@ module API
end end
end end
end end
API::Entities::ProtectedBranch.prepend_if_ee('EE::API::Entities::ProtectedBranch')
...@@ -10,3 +10,5 @@ module API ...@@ -10,3 +10,5 @@ module API
end end
end end
end end
API::Entities::ProtectedRefAccess.prepend_if_ee('EE::API::Entities::ProtectedRefAccess')
...@@ -44,3 +44,5 @@ module API ...@@ -44,3 +44,5 @@ module API
end end
end end
end end
API::Entities::Todo.prepend_if_ee('EE::API::Entities::Todo')
...@@ -17,3 +17,5 @@ module API ...@@ -17,3 +17,5 @@ module API
end end
end end
end end
API::Entities::UserPublic.prepend_if_ee('EE::API::Entities::UserPublic', with_descendants: true)
...@@ -7,3 +7,5 @@ module API ...@@ -7,3 +7,5 @@ module API
end end
end end
end end
API::Entities::UserWithAdmin.prepend_if_ee('EE::API::Entities::UserWithAdmin', with_descendants: true)
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