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
b25caf15
Commit
b25caf15
authored
Jan 31, 2020
by
Arturo Herrero
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use CTE optimization fence for :namespace/repos
parent
da1f3335
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
ee/lib/api/v3/github.rb
ee/lib/api/v3/github.rb
+5
-3
No files found.
ee/lib/api/v3/github.rb
View file @
b25caf15
...
...
@@ -119,10 +119,12 @@ module API
projects
=
current_user
.
can_read_all_resources?
?
Project
.
all
:
current_user
.
authorized_projects
projects
=
projects
.
in_namespace
(
namespace
.
self_and_descendants
)
projects_cte
=
Project
.
wrap_authorized_projects_with_cte
(
projects
)
.
eager_load_namespace_and_owner
.
with_route
present
paginate
(
projects
),
present
paginate
(
projects
_cte
),
with:
::
API
::
Github
::
Entities
::
Repository
,
root_namespace:
namespace
.
root_ancestor
end
...
...
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