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
5bf7b3dc
Commit
5bf7b3dc
authored
Oct 02, 2019
by
Felipe Artur
Committed by
Lin Jen-Shin
Oct 02, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Expose epic web_url as URL
parent
78fefd0d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
ee/lib/ee/api/entities.rb
ee/lib/ee/api/entities.rb
+5
-1
No files found.
ee/lib/ee/api/entities.rb
View file @
5bf7b3dc
...
...
@@ -294,7 +294,7 @@ 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_
url
,
as: :web_
edit_url
,
if:
can_admin_epic
# @deprecated
expose
:web_edit_url
,
if:
can_admin_epic
# @deprecated
expose
:web_url
expose
:reference
,
if:
{
with_reference:
true
}
do
|
epic
|
epic
.
to_reference
(
full:
true
)
...
...
@@ -324,6 +324,10 @@ module EE
end
def
web_url
::
Gitlab
::
Routing
.
url_helpers
.
group_epic_url
(
object
.
group
,
object
)
end
def
web_edit_url
::
Gitlab
::
Routing
.
url_helpers
.
group_epic_path
(
object
.
group
,
object
)
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