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
e367aafd
Commit
e367aafd
authored
Jul 25, 2019
by
Mario de la Ossa
Committed by
Kushal Pandya
Aug 22, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
V4::Epic - Add `web_edit_url` and `reference`
parent
3c8e48c3
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
1 deletion
+9
-1
ee/lib/ee/api/entities.rb
ee/lib/ee/api/entities.rb
+6
-0
ee/spec/fixtures/api/schemas/public_api/v4/epic.json
ee/spec/fixtures/api/schemas/public_api/v4/epic.json
+3
-1
No files found.
ee/lib/ee/api/entities.rb
View file @
e367aafd
...
...
@@ -260,6 +260,12 @@ module EE
expose
:due_date_is_fixed?
,
as: :due_date_is_fixed
,
if:
can_admin_epic
expose
:due_date_fixed
,
:due_date_from_milestones
,
if:
can_admin_epic
expose
:state
expose
:web_edit_url
do
|
epic
|
::
Gitlab
::
Routing
.
url_helpers
.
group_epic_path
(
epic
.
group
,
epic
)
end
expose
:reference
do
|
epic
|
epic
.
to_reference
(
epic
.
parent
&
.
group
)
end
expose
:created_at
expose
:updated_at
expose
:labels
do
|
epic
|
...
...
ee/spec/fixtures/api/schemas/public_api/v4/epic.json
View file @
e367aafd
...
...
@@ -38,7 +38,9 @@
"due_date_is_fixed"
:
{
"type"
:
"boolean"
},
"state"
:
{
"type"
:
"string"
},
"created_at"
:
{
"type"
:
[
"string"
,
"null"
]
},
"updated_at"
:
{
"type"
:
[
"string"
,
"null"
]
}
"updated_at"
:
{
"type"
:
[
"string"
,
"null"
]
},
"web_edit_url"
:
{
"type"
:
"string"
},
"reference"
:
{
"type"
:
"string"
}
},
"required"
:
[
"id"
,
"iid"
,
"group_id"
,
"title"
...
...
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