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
05e82d60
Commit
05e82d60
authored
Feb 18, 2020
by
Rajendra Kadam
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Separate 4 EE entities into own class files
parent
434b7047
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
52 additions
and
24 deletions
+52
-24
ee/lib/ee/api/entities.rb
ee/lib/ee/api/entities.rb
+0
-24
ee/lib/ee/api/entities/ldap_group_link.rb
ee/lib/ee/api/entities/ldap_group_link.rb
+11
-0
ee/lib/ee/api/entities/project_push_rule.rb
ee/lib/ee/api/entities/project_push_rule.rb
+17
-0
ee/lib/ee/api/entities/protected_environment.rb
ee/lib/ee/api/entities/protected_environment.rb
+12
-0
ee/lib/ee/api/entities/related_issue.rb
ee/lib/ee/api/entities/related_issue.rb
+12
-0
No files found.
ee/lib/ee/api/entities.rb
View file @
05e82d60
...
...
@@ -118,11 +118,6 @@ module EE
end
end
class
ProtectedEnvironment
<
Grape
::
Entity
expose
:name
expose
:deploy_access_levels
,
using:
::
API
::
Entities
::
ProtectedRefAccess
end
module
IssueBasic
extend
ActiveSupport
::
Concern
...
...
@@ -269,25 +264,6 @@ module EE
end
end
class
ProjectPushRule
<
Grape
::
Entity
extend
EntityHelpers
expose
:id
,
:project_id
,
:created_at
expose
:commit_message_regex
,
:commit_message_negative_regex
,
:branch_name_regex
,
:deny_delete_tag
expose
:member_check
,
:prevent_secrets
,
:author_email_regex
expose
:file_name_regex
,
:max_file_size
expose_restricted
:commit_committer_check
,
&
:project
expose_restricted
:reject_unsigned_commits
,
&
:project
end
class
LdapGroupLink
<
Grape
::
Entity
expose
:cn
,
:group_access
,
:provider
end
class
RelatedIssue
<
::
API
::
Entities
::
Issue
expose
:issue_link_id
expose
:issue_link_type
,
as: :link_type
end
class
LinkedEpic
<
Grape
::
Entity
expose
:id
expose
:iid
...
...
ee/lib/ee/api/entities/ldap_group_link.rb
0 → 100644
View file @
05e82d60
# frozen_string_literal: true
module
EE
module
API
module
Entities
class
LdapGroupLink
<
Grape
::
Entity
expose
:cn
,
:group_access
,
:provider
end
end
end
end
ee/lib/ee/api/entities/project_push_rule.rb
0 → 100644
View file @
05e82d60
# frozen_string_literal: true
module
EE
module
API
module
Entities
class
ProjectPushRule
<
Grape
::
Entity
extend
EntityHelpers
expose
:id
,
:project_id
,
:created_at
expose
:commit_message_regex
,
:commit_message_negative_regex
,
:branch_name_regex
,
:deny_delete_tag
expose
:member_check
,
:prevent_secrets
,
:author_email_regex
expose
:file_name_regex
,
:max_file_size
expose_restricted
:commit_committer_check
,
&
:project
expose_restricted
:reject_unsigned_commits
,
&
:project
end
end
end
end
ee/lib/ee/api/entities/protected_environment.rb
0 → 100644
View file @
05e82d60
# frozen_string_literal: true
module
EE
module
API
module
Entities
class
ProtectedEnvironment
<
Grape
::
Entity
expose
:name
expose
:deploy_access_levels
,
using:
::
API
::
Entities
::
ProtectedRefAccess
end
end
end
end
ee/lib/ee/api/entities/related_issue.rb
0 → 100644
View file @
05e82d60
# frozen_string_literal: true
module
EE
module
API
module
Entities
class
RelatedIssue
<
::
API
::
Entities
::
Issue
expose
:issue_link_id
expose
:issue_link_type
,
as: :link_type
end
end
end
end
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