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
0
Merge Requests
0
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
Jérome Perrin
gitlab-ce
Commits
df541e51
Commit
df541e51
authored
Jul 22, 2016
by
Ahmad Sherif
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Load project invited groups and members eagerly in ProjectTeam#fetch_members
parent
033e5423
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
1 deletion
+2
-1
CHANGELOG
CHANGELOG
+1
-0
app/models/project_team.rb
app/models/project_team.rb
+1
-1
No files found.
CHANGELOG
View file @
df541e51
...
@@ -4,6 +4,7 @@ v 8.11.0 (unreleased)
...
@@ -4,6 +4,7 @@ v 8.11.0 (unreleased)
- Fix of 'Commits being passed to custom hooks are already reachable when using the UI'
- Fix of 'Commits being passed to custom hooks are already reachable when using the UI'
- Limit git rev-list output count to one in forced push check
- Limit git rev-list output count to one in forced push check
- Retrieve rendered HTML from cache in one request
- Retrieve rendered HTML from cache in one request
- Load project invited groups and members eagerly in ProjectTeam#fetch_members
v 8.10.0
v 8.10.0
- Fix profile activity heatmap to show correct day name (eanplatter)
- Fix profile activity heatmap to show correct day name (eanplatter)
...
...
app/models/project_team.rb
View file @
df541e51
...
@@ -173,7 +173,7 @@ class ProjectTeam
...
@@ -173,7 +173,7 @@ class ProjectTeam
invited_members
=
[]
invited_members
=
[]
if
project
.
invited_groups
.
any?
&&
project
.
allowed_to_share_with_group?
if
project
.
invited_groups
.
any?
&&
project
.
allowed_to_share_with_group?
project
.
project_group_links
.
each
do
|
group_link
|
project
.
project_group_links
.
includes
(
group:
[
:group_members
]).
each
do
|
group_link
|
invited_group
=
group_link
.
group
invited_group
=
group_link
.
group
im
=
invited_group
.
members
im
=
invited_group
.
members
...
...
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