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
4f599491
Commit
4f599491
authored
Nov 10, 2017
by
Jarka Kadlecova
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Set all state as default for epics
parent
5cf10e2f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
2 deletions
+11
-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
+4
-2
No files found.
ee/app/controllers/groups/epics_controller.rb
View file @
4f599491
...
...
@@ -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 @
4f599491
...
...
@@ -19,9 +19,11 @@ class EpicsFinder < IssuableFinder
execute
.
count
end
# we don't have states for epics for now but need
this metho
d
# we don't have states for epics for now but need
counts for all and opene
d
def
count_by_state
{
all:
row_count
}
{
all:
row_count
}
end
def
group
...
...
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