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
80a2af18
Commit
80a2af18
authored
Mar 21, 2019
by
Douglas Barbosa Alexandre
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make helper methods private
parent
67c50a2e
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
44 additions
and
42 deletions
+44
-42
ee/app/finders/geo/project_registry_finder.rb
ee/app/finders/geo/project_registry_finder.rb
+44
-42
No files found.
ee/app/finders/geo/project_registry_finder.rb
View file @
80a2af18
...
@@ -111,48 +111,6 @@ module Geo
...
@@ -111,48 +111,6 @@ module Geo
protected
protected
def
finder_klass_for_synced_registries
if
Gitlab
::
Geo
::
Fdw
.
enabled_for_selective_sync?
Geo
::
ProjectRegistrySyncedFinder
else
Geo
::
LegacyProjectRegistrySyncedFinder
end
end
def
registries_for_synced_projects
(
type
)
finder_klass_for_synced_registries
.
new
(
current_node:
current_node
,
type:
type
)
.
execute
end
def
finder_klass_for_failed_registries
if
Gitlab
::
Geo
::
Fdw
.
enabled_for_selective_sync?
Geo
::
ProjectRegistrySyncFailedFinder
else
Geo
::
LegacyProjectRegistrySyncFailedFinder
end
end
def
registries_for_failed_projects
(
type
)
finder_klass_for_failed_registries
.
new
(
current_node:
current_node
,
type:
type
)
.
execute
end
def
finder_klass_for_verified_registries
if
Gitlab
::
Geo
::
Fdw
.
enabled_for_selective_sync?
Geo
::
ProjectRegistryVerifiedFinder
else
Geo
::
LegacyProjectRegistryVerifiedFinder
end
end
def
registries_for_verified_projects
(
type
)
finder_klass_for_verified_registries
.
new
(
current_node:
current_node
,
type:
type
)
.
execute
end
def
find_filtered_verification_failed_project_registries
(
type
=
nil
)
def
find_filtered_verification_failed_project_registries
(
type
=
nil
)
case
type
case
type
when
'repository'
when
'repository'
...
@@ -370,5 +328,49 @@ module Geo
...
@@ -370,5 +328,49 @@ module Geo
def
wiki_missing_on_primary_is_not_true
def
wiki_missing_on_primary_is_not_true
Arel
::
Nodes
::
SqlLiteral
.
new
(
"project_registry.wiki_missing_on_primary IS NOT TRUE"
)
Arel
::
Nodes
::
SqlLiteral
.
new
(
"project_registry.wiki_missing_on_primary IS NOT TRUE"
)
end
end
private
def
finder_klass_for_synced_registries
if
Gitlab
::
Geo
::
Fdw
.
enabled_for_selective_sync?
Geo
::
ProjectRegistrySyncedFinder
else
Geo
::
LegacyProjectRegistrySyncedFinder
end
end
def
registries_for_synced_projects
(
type
)
finder_klass_for_synced_registries
.
new
(
current_node:
current_node
,
type:
type
)
.
execute
end
def
finder_klass_for_failed_registries
if
Gitlab
::
Geo
::
Fdw
.
enabled_for_selective_sync?
Geo
::
ProjectRegistrySyncFailedFinder
else
Geo
::
LegacyProjectRegistrySyncFailedFinder
end
end
def
registries_for_failed_projects
(
type
)
finder_klass_for_failed_registries
.
new
(
current_node:
current_node
,
type:
type
)
.
execute
end
def
finder_klass_for_verified_registries
if
Gitlab
::
Geo
::
Fdw
.
enabled_for_selective_sync?
Geo
::
ProjectRegistryVerifiedFinder
else
Geo
::
LegacyProjectRegistryVerifiedFinder
end
end
def
registries_for_verified_projects
(
type
)
finder_klass_for_verified_registries
.
new
(
current_node:
current_node
,
type:
type
)
.
execute
end
end
end
end
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