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
295e3bf8
Commit
295e3bf8
authored
Dec 04, 2017
by
Douglas Barbosa Alexandre
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix GeoNode#projects query for selective sync
parent
17e7f5ba
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
2 deletions
+1
-2
app/models/geo_node.rb
app/models/geo_node.rb
+1
-2
No files found.
app/models/geo_node.rb
View file @
295e3bf8
...
...
@@ -135,8 +135,7 @@ class GeoNode < ActiveRecord::Base
if
selective_sync?
relations
=
namespaces
.
map
{
|
namespace
|
namespace
.
all_projects
.
select
(
:id
)
}
Project
.
unscoped
.
from
(
"(
#{
Gitlab
::
SQL
::
Union
.
new
(
relations
).
to_sql
}
)
#{
Project
.
table_name
}
"
)
Project
.
where
(
"id IN (
#{
Gitlab
::
SQL
::
Union
.
new
(
relations
).
to_sql
}
)"
)
else
Project
.
all
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