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
0
Merge Requests
0
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
Boxiang Sun
gitlab-ce
Commits
80832062
Commit
80832062
authored
May 29, 2019
by
Imre Farkas
Committed by
Yorick Peterse
May 29, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
CE port of Move EE specific lines in API::Issues
parent
328740c6
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
12 deletions
+10
-12
lib/api/helpers/issues_helpers.rb
lib/api/helpers/issues_helpers.rb
+8
-0
lib/api/issues.rb
lib/api/issues.rb
+2
-12
No files found.
lib/api/helpers/issues_helpers.rb
View file @
80832062
...
@@ -3,6 +3,14 @@
...
@@ -3,6 +3,14 @@
module
API
module
API
module
Helpers
module
Helpers
module
IssuesHelpers
module
IssuesHelpers
extend
Grape
::
API
::
Helpers
params
:optional_issue_params_ee
do
end
params
:optional_issues_params_ee
do
end
def
self
.
update_params_at_least_one_of
def
self
.
update_params_at_least_one_of
[
[
:assignee_id
,
:assignee_id
,
...
...
lib/api/issues.rb
View file @
80832062
...
@@ -9,16 +9,6 @@ module API
...
@@ -9,16 +9,6 @@ module API
before
{
authenticate_non_get!
}
before
{
authenticate_non_get!
}
helpers
do
helpers
do
if
Gitlab
.
ee?
params
:issues_params_ee
do
optional
:weight
,
types:
[
Integer
,
String
],
integer_none_any:
true
,
desc:
'The weight of the issue'
end
params
:issue_params_ee
do
optional
:weight
,
type:
Integer
,
desc:
'The weight of the issue'
end
end
params
:issues_stats_params
do
params
:issues_stats_params
do
optional
:labels
,
type:
Array
[
String
],
coerce_with:
Validations
::
Types
::
LabelsList
.
coerce
,
desc:
'Comma-separated list of label names'
optional
:labels
,
type:
Array
[
String
],
coerce_with:
Validations
::
Types
::
LabelsList
.
coerce
,
desc:
'Comma-separated list of label names'
optional
:milestone
,
type:
String
,
desc:
'Milestone title'
optional
:milestone
,
type:
String
,
desc:
'Milestone title'
...
@@ -47,7 +37,7 @@ module API
...
@@ -47,7 +37,7 @@ module API
optional
:my_reaction_emoji
,
type:
String
,
desc:
'Return issues reacted by the authenticated user by the given emoji'
optional
:my_reaction_emoji
,
type:
String
,
desc:
'Return issues reacted by the authenticated user by the given emoji'
optional
:confidential
,
type:
Boolean
,
desc:
'Filter confidential or public issues'
optional
:confidential
,
type:
Boolean
,
desc:
'Filter confidential or public issues'
use
:
issues_params_ee
if
Gitlab
.
ee?
use
:
optional_issues_params_ee
end
end
params
:issues_params
do
params
:issues_params
do
...
@@ -73,7 +63,7 @@ module API
...
@@ -73,7 +63,7 @@ module API
optional
:confidential
,
type:
Boolean
,
desc:
'Boolean parameter if the issue should be confidential'
optional
:confidential
,
type:
Boolean
,
desc:
'Boolean parameter if the issue should be confidential'
optional
:discussion_locked
,
type:
Boolean
,
desc:
" Boolean parameter indicating if the issue's discussion is locked"
optional
:discussion_locked
,
type:
Boolean
,
desc:
" Boolean parameter indicating if the issue's discussion is locked"
use
:
issue_params_ee
if
Gitlab
.
ee?
use
:
optional_issue_params_ee
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