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
8c90d212
Commit
8c90d212
authored
Nov 10, 2017
by
Clement Ho
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch '3553-epics-list' of gitlab.com:gitlab-org/gitlab-ee into 3553-epics-list
parents
74ed5688
4f599491
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
2 deletions
+8
-2
ee/app/controllers/groups/epics_controller.rb
ee/app/controllers/groups/epics_controller.rb
+7
-0
ee/app/finders/epics_finder.rb
ee/app/finders/epics_finder.rb
+1
-2
No files found.
ee/app/controllers/groups/epics_controller.rb
View file @
8c90d212
...
...
@@ -9,6 +9,7 @@ class Groups::EpicsController < Groups::ApplicationController
skip_before_action
:labels
def
index
set_default_state
@epics
=
@issuables
respond_to
do
|
format
|
...
...
@@ -65,4 +66,10 @@ class Groups::EpicsController < Groups::ApplicationController
def
preload_for_collection
@preload_for_collection
||=
[
:group
,
:author
]
end
# we need to override the default state which is opened for now because we don't have
# states for epics and need all as default for navigation to work correctly
def
set_default_state
params
[
:state
]
=
'all'
end
end
ee/app/finders/epics_finder.rb
View file @
8c90d212
...
...
@@ -22,8 +22,7 @@ class EpicsFinder < IssuableFinder
# we don't have states for epics for now but need counts for all and opened
def
count_by_state
{
all:
row_count
,
opened:
row_count
all:
row_count
}
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