Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
5da848de
Commit
5da848de
authored
Feb 17, 2020
by
Rajendra Kadam
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Delete entities.rb and move prepend to respective entities
parent
8436caa8
Changes
18
Hide whitespace changes
Inline
Side-by-side
Showing
18 changed files
with
34 additions
and
25 deletions
+34
-25
lib/api/entities.rb
lib/api/entities.rb
+0
-25
lib/api/entities/application_setting.rb
lib/api/entities/application_setting.rb
+2
-0
lib/api/entities/board.rb
lib/api/entities/board.rb
+2
-0
lib/api/entities/group.rb
lib/api/entities/group.rb
+2
-0
lib/api/entities/group_detail.rb
lib/api/entities/group_detail.rb
+2
-0
lib/api/entities/identity.rb
lib/api/entities/identity.rb
+2
-0
lib/api/entities/issue.rb
lib/api/entities/issue.rb
+2
-0
lib/api/entities/issue_basic.rb
lib/api/entities/issue_basic.rb
+2
-0
lib/api/entities/list.rb
lib/api/entities/list.rb
+2
-0
lib/api/entities/member.rb
lib/api/entities/member.rb
+2
-0
lib/api/entities/merge_request_basic.rb
lib/api/entities/merge_request_basic.rb
+2
-0
lib/api/entities/namespace.rb
lib/api/entities/namespace.rb
+2
-0
lib/api/entities/project.rb
lib/api/entities/project.rb
+2
-0
lib/api/entities/protected_branch.rb
lib/api/entities/protected_branch.rb
+2
-0
lib/api/entities/protected_ref_access.rb
lib/api/entities/protected_ref_access.rb
+2
-0
lib/api/entities/todo.rb
lib/api/entities/todo.rb
+2
-0
lib/api/entities/user_public.rb
lib/api/entities/user_public.rb
+2
-0
lib/api/entities/user_with_admin.rb
lib/api/entities/user_with_admin.rb
+2
-0
No files found.
lib/api/entities.rb
deleted
100644 → 0
View file @
8436caa8
# frozen_string_literal: true
module
API
module
Entities
end
end
# rubocop: disable Cop/InjectEnterpriseEditionModule
::
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
)
lib/api/entities/application_setting.rb
View file @
5da848de
...
...
@@ -34,3 +34,5 @@ module API
end
end
end
API
::
Entities
::
ApplicationSetting
.
prepend_if_ee
(
'EE::API::Entities::ApplicationSetting'
)
lib/api/entities/board.rb
View file @
5da848de
...
...
@@ -12,3 +12,5 @@ module API
end
end
end
API
::
Entities
::
Board
.
prepend_if_ee
(
'EE::API::Entities::Board'
)
lib/api/entities/group.rb
View file @
5da848de
...
...
@@ -34,3 +34,5 @@ module API
end
end
end
API
::
Entities
::
Group
.
prepend_if_ee
(
'EE::API::Entities::Group'
,
with_descendants:
true
)
lib/api/entities/group_detail.rb
View file @
5da848de
...
...
@@ -34,3 +34,5 @@ module API
end
end
end
API
::
Entities
::
GroupDetail
.
prepend_if_ee
(
'EE::API::Entities::GroupDetail'
)
lib/api/entities/identity.rb
View file @
5da848de
...
...
@@ -7,3 +7,5 @@ module API
end
end
end
API
::
Entities
::
Identity
.
prepend_if_ee
(
'EE::API::Entities::Identity'
)
lib/api/entities/issue.rb
View file @
5da848de
...
...
@@ -46,3 +46,5 @@ module API
end
end
end
API
::
Entities
::
Issue
.
prepend_if_ee
(
'EE::API::Entities::Issue'
)
lib/api/entities/issue_basic.rb
View file @
5da848de
...
...
@@ -41,3 +41,5 @@ module API
end
end
end
API
::
Entities
::
IssueBasic
.
prepend_if_ee
(
'EE::API::Entities::IssueBasic'
,
with_descendants:
true
)
lib/api/entities/list.rb
View file @
5da848de
...
...
@@ -9,3 +9,5 @@ module API
end
end
end
API
::
Entities
::
List
.
prepend_if_ee
(
'EE::API::Entities::List'
)
lib/api/entities/member.rb
View file @
5da848de
...
...
@@ -9,3 +9,5 @@ module API
end
end
end
API
::
Entities
::
Member
.
prepend_if_ee
(
'EE::API::Entities::Member'
,
with_descendants:
true
)
lib/api/entities/merge_request_basic.rb
View file @
5da848de
...
...
@@ -92,3 +92,5 @@ module API
end
end
end
API
::
Entities
::
MergeRequestBasic
.
prepend_if_ee
(
'EE::API::Entities::MergeRequestBasic'
,
with_descendants:
true
)
lib/api/entities/namespace.rb
View file @
5da848de
...
...
@@ -13,3 +13,5 @@ module API
end
end
end
API
::
Entities
::
Namespace
.
prepend_if_ee
(
'EE::API::Entities::Namespace'
)
lib/api/entities/project.rb
View file @
5da848de
...
...
@@ -130,3 +130,5 @@ module API
end
end
end
API
::
Entities
::
Project
.
prepend_if_ee
(
'EE::API::Entities::Project'
,
with_descendants:
true
)
lib/api/entities/protected_branch.rb
View file @
5da848de
...
...
@@ -10,3 +10,5 @@ module API
end
end
end
API
::
Entities
::
ProtectedBranch
.
prepend_if_ee
(
'EE::API::Entities::ProtectedBranch'
)
lib/api/entities/protected_ref_access.rb
View file @
5da848de
...
...
@@ -10,3 +10,5 @@ module API
end
end
end
API
::
Entities
::
ProtectedRefAccess
.
prepend_if_ee
(
'EE::API::Entities::ProtectedRefAccess'
)
lib/api/entities/todo.rb
View file @
5da848de
...
...
@@ -44,3 +44,5 @@ module API
end
end
end
API
::
Entities
::
Todo
.
prepend_if_ee
(
'EE::API::Entities::Todo'
)
lib/api/entities/user_public.rb
View file @
5da848de
...
...
@@ -17,3 +17,5 @@ module API
end
end
end
API
::
Entities
::
UserPublic
.
prepend_if_ee
(
'EE::API::Entities::UserPublic'
,
with_descendants:
true
)
lib/api/entities/user_with_admin.rb
View file @
5da848de
...
...
@@ -7,3 +7,5 @@ module API
end
end
end
API
::
Entities
::
UserWithAdmin
.
prepend_if_ee
(
'EE::API::Entities::UserWithAdmin'
,
with_descendants:
true
)
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment