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
d09f34b5
Commit
d09f34b5
authored
Jul 01, 2019
by
GitLab Bot
Browse files
Options
Browse Files
Download
Plain Diff
Automatic merge of gitlab-org/gitlab-ce master
parents
fe0e9e2b
cbf4ddd8
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
4 deletions
+11
-4
app/controllers/groups_controller.rb
app/controllers/groups_controller.rb
+1
-2
changelogs/unreleased/44106-include-subgroups-in-group-activity.yml
.../unreleased/44106-include-subgroups-in-group-activity.yml
+5
-0
spec/controllers/groups_controller_spec.rb
spec/controllers/groups_controller_spec.rb
+5
-2
No files found.
app/controllers/groups_controller.rb
View file @
d09f34b5
...
...
@@ -201,8 +201,7 @@ class GroupsController < Groups::ApplicationController
params
[
:sort
]
||=
'latest_activity_desc'
options
=
{}
options
[
:only_owned
]
=
true
if
params
[
:shared
]
==
'0'
options
[
:only_shared
]
=
true
if
params
[
:shared
]
==
'1'
options
[
:include_subgroups
]
=
true
@projects
=
GroupProjectsFinder
.
new
(
params:
params
,
group:
group
,
options:
options
,
current_user:
current_user
)
.
execute
...
...
changelogs/unreleased/44106-include-subgroups-in-group-activity.yml
0 → 100644
View file @
d09f34b5
---
title
:
Include events from subgroups in group's activity
merge_request
:
29953
author
:
Fabian Schneider @fabsrc
type
:
changed
spec/controllers/groups_controller_spec.rb
View file @
d09f34b5
...
...
@@ -125,11 +125,14 @@ describe GroupsController do
end
context
'as json'
do
it
'includes all projects in event feed'
do
3
.
times
do
it
'includes all projects
from groups and subgroups
in event feed'
do
2
.
times
do
project
=
create
(
:project
,
group:
group
)
create
(
:event
,
project:
project
)
end
subgroup
=
create
(
:group
,
parent:
group
)
project
=
create
(
:project
,
group:
subgroup
)
create
(
:event
,
project:
project
)
get
:activity
,
params:
{
id:
group
.
to_param
},
format: :json
...
...
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