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
b5952294
Commit
b5952294
authored
Jul 01, 2019
by
Fabian Schneider
Committed by
Bob Van Landuyt
Jul 01, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Revert "Include subgroups in shared_projects"
This reverts commit 4bed2daef935bb4097988e0eff4830fc13a23c37.
parent
8611291d
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 @
b5952294
...
...
@@ -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 @
b5952294
---
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 @
b5952294
...
...
@@ -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