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
c1a416ad
Commit
c1a416ad
authored
Aug 28, 2019
by
Patrick Bajao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add comment to explain the state of some entities
parent
2b12ed1f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
0 deletions
+10
-0
ee/lib/ee/api/entities.rb
ee/lib/ee/api/entities.rb
+10
-0
No files found.
ee/lib/ee/api/entities.rb
View file @
c1a416ad
...
@@ -330,6 +330,10 @@ module EE
...
@@ -330,6 +330,10 @@ module EE
expose
:contains_hidden_groups?
,
as: :contains_hidden_groups
expose
:contains_hidden_groups?
,
as: :contains_hidden_groups
end
end
# Being used in private project-level approvals API.
# This overrides the `eligible_approvers` to be exposed as `approvers`.
#
# To be removed in https://gitlab.com/gitlab-org/gitlab-ee/issues/13574.
class
ApprovalSettingRule
<
ApprovalRule
class
ApprovalSettingRule
<
ApprovalRule
expose
:approvers
,
using:
::
API
::
Entities
::
UserBasic
,
override:
true
expose
:approvers
,
using:
::
API
::
Entities
::
UserBasic
,
override:
true
end
end
...
@@ -342,6 +346,12 @@ module EE
...
@@ -342,6 +346,12 @@ module EE
expose
:source_rule
,
using:
SourceRule
expose
:source_rule
,
using:
SourceRule
end
end
# Being used in private MR-level approvals API.
# This overrides the `eligible_approvers` to be exposed as `approvers` and
# include additional properties.
#
# To be made public in https://gitlab.com/gitlab-org/gitlab-ee/issues/13712
# and the `approvers` override can be removed.
class
MergeRequestApprovalSettingRule
<
MergeRequestApprovalRule
class
MergeRequestApprovalSettingRule
<
MergeRequestApprovalRule
expose
:approvers
,
using:
::
API
::
Entities
::
UserBasic
,
override:
true
expose
:approvers
,
using:
::
API
::
Entities
::
UserBasic
,
override:
true
expose
:code_owner
expose
:code_owner
...
...
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