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
76ce846f
Commit
76ce846f
authored
Dec 04, 2017
by
Douglas Barbosa Alexandre
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove GeoNode#project_registries method
parent
e403dd19
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
10 deletions
+2
-10
app/models/geo_node.rb
app/models/geo_node.rb
+0
-8
ee/app/finders/geo/project_registry_finder.rb
ee/app/finders/geo/project_registry_finder.rb
+2
-2
No files found.
app/models/geo_node.rb
View file @
76ce846f
...
...
@@ -147,14 +147,6 @@ class GeoNode < ActiveRecord::Base
projects
.
where
(
id:
project_id
).
exists?
end
def
project_registries
if
selective_sync?
Geo
::
ProjectRegistry
.
where
(
project_id:
projects
.
pluck
(
:id
))
else
Geo
::
ProjectRegistry
.
all
end
end
def
filtered_project_registries
(
type
=
nil
)
case
type
when
'repository'
...
...
ee/app/finders/geo/project_registry_finder.rb
View file @
76ce846f
...
...
@@ -81,7 +81,7 @@ module Geo
# @return [ActiveRecord::Relation<Project>] list of unsynced projects
def
legacy_find_unsynced_projects
registry_project_ids
=
current_node
.
project_registries
.
pluck
(
:project_id
)
registry_project_ids
=
Geo
::
ProjectRegistry
.
pluck
(
:project_id
)
return
current_node
.
projects
if
registry_project_ids
.
empty?
joined_relation
=
current_node
.
projects
.
joins
(
<<~
SQL
)
...
...
@@ -96,7 +96,7 @@ module Geo
# @return [ActiveRecord::Relation<Project>] list of projects updated recently
def
legacy_find_projects_updated_recently
legacy_find_projects
(
current_node
.
project_registries
.
dirty
.
retry_due
.
pluck
(
:project_id
))
legacy_find_projects
(
Geo
::
ProjectRegistry
.
dirty
.
retry_due
.
pluck
(
:project_id
))
end
# @return [ActiveRecord::Relation<Project>] list of synced projects
...
...
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