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
629fd171
Commit
629fd171
authored
Aug 02, 2018
by
Sean McGivern
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Extract EE-specific lines for IssueEntity
parent
1426b459
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
3 deletions
+11
-3
app/serializers/issue_entity.rb
app/serializers/issue_entity.rb
+1
-3
ee/app/serializers/ee/issue_entity.rb
ee/app/serializers/ee/issue_entity.rb
+10
-0
No files found.
app/serializers/issue_entity.rb
View file @
629fd171
...
...
@@ -2,6 +2,7 @@
class
IssueEntity
<
IssuableEntity
include
TimeTrackableEntity
prepend
::
EE
::
IssueEntity
expose
:state
expose
:milestone_id
...
...
@@ -18,9 +19,6 @@ class IssueEntity < IssuableEntity
expose
:due_date
expose
:moved_to_id
expose
:project_id
expose
:weight
,
if:
->
(
issue
,
_
)
{
issue
.
supports_weight?
}
expose
:milestone
,
using:
API
::
Entities
::
Milestone
expose
:labels
,
using:
LabelEntity
expose
:web_url
do
|
issue
|
project_issue_path
(
issue
.
project
,
issue
)
...
...
ee/app/serializers/ee/issue_entity.rb
0 → 100644
View file @
629fd171
# frozen_string_literal: true
module
EE
module
IssueEntity
extend
ActiveSupport
::
Concern
prepended
do
expose
:weight
,
if:
->
(
issue
,
_
)
{
issue
.
supports_weight?
}
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