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
7459f48a
Commit
7459f48a
authored
7 years ago
by
Jarka Kadlecova
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix specs, add issue number to TODOs comments
parent
f8450992
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
3 deletions
+6
-3
ee/app/controllers/groups/epics_controller.rb
ee/app/controllers/groups/epics_controller.rb
+1
-1
ee/app/finders/epics_finder.rb
ee/app/finders/epics_finder.rb
+3
-2
ee/app/policies/ee/group_policy.rb
ee/app/policies/ee/group_policy.rb
+2
-0
No files found.
ee/app/controllers/groups/epics_controller.rb
View file @
7459f48a
...
...
@@ -68,7 +68,7 @@ class Groups::EpicsController < Groups::ApplicationController
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
# states for epics and need all as default for navigation to work correctly
(#4017)
def
set_default_state
params
[
:state
]
=
'all'
end
...
...
This diff is collapsed.
Click to expand it.
ee/app/finders/epics_finder.rb
View file @
7459f48a
...
...
@@ -4,7 +4,8 @@ class EpicsFinder < IssuableFinder
end
def
execute
raise
ArgumentError
,
'group_id argument is missing'
unless
group
raise
ArgumentError
,
'group_id argument is missing'
unless
params
[
:group_id
]
return
[]
unless
group
items
=
init_collection
items
=
by_created_at
(
items
)
...
...
@@ -19,7 +20,7 @@ class EpicsFinder < IssuableFinder
execute
.
count
end
# we don't have states for epics for now this method
# we don't have states for epics for now this method
(#4017)
def
count_by_state
{
all:
row_count
...
...
This diff is collapsed.
Click to expand it.
ee/app/policies/ee/group_policy.rb
View file @
7459f48a
...
...
@@ -31,6 +31,8 @@ module EE
end
rule
{
auditor
}.
enable
:read_group
rule
{
admin
}.
enable
:read_epic
rule
{
has_projects
}.
enable
:read_epic
rule
{
admin
|
(
can_owners_manage_ldap
&
owner
)
}.
enable
:admin_ldap_group_links
...
...
This diff is collapsed.
Click to expand it.
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