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
b662ba30
Commit
b662ba30
authored
Mar 06, 2019
by
Robert Speicher
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Coerce labels parameter in Epics API
See
https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/19914
parent
f990e34d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
ee/lib/api/epics.rb
ee/lib/api/epics.rb
+3
-3
No files found.
ee/lib/api/epics.rb
View file @
b662ba30
...
...
@@ -29,7 +29,7 @@ module API
optional
:state
,
type:
String
,
values:
%w[opened closed all]
,
default:
'all'
,
desc:
'Return opened, closed, or all epics'
optional
:author_id
,
type:
Integer
,
desc:
'Return epics which are authored by the user with the given ID'
optional
:labels
,
type:
String
,
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'
use
:pagination
end
get
':id/(-/)epics'
do
...
...
@@ -60,7 +60,7 @@ module API
optional
:start_date_is_fixed
,
type:
Boolean
,
desc:
'Indicates start date should be sourced from start_date_fixed field not the issue milestones'
optional
:end_date
,
as: :due_date_fixed
,
type:
String
,
desc:
'The due date of an epic'
optional
:due_date_is_fixed
,
type:
Boolean
,
desc:
'Indicates due date should be sourced from due_date_fixed field not the issue milestones'
optional
:labels
,
type:
String
,
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'
end
post
':id/(-/)epics'
do
authorize_can_create!
...
...
@@ -84,7 +84,7 @@ module API
optional
:start_date_is_fixed
,
type:
Boolean
,
desc:
'Indicates start date should be sourced from start_date_fixed field not the issue milestones'
optional
:end_date
,
as: :due_date_fixed
,
type:
String
,
desc:
'The due date of an epic'
optional
:due_date_is_fixed
,
type:
Boolean
,
desc:
'Indicates due date should be sourced from due_date_fixed field not the issue milestones'
optional
:labels
,
type:
String
,
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
:state_event
,
type:
String
,
values:
%w[reopen close]
,
desc:
'State event for an epic'
at_least_one_of
:title
,
:description
,
:start_date_fixed
,
:start_date_is_fixed
,
:due_date_fixed
,
:due_date_is_fixed
,
:labels
,
:state_event
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