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
0ad5501e
Commit
0ad5501e
authored
Jul 30, 2020
by
Douglas Barbosa Alexandre
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove feature flag from container repository registry finder
parent
0d013cc9
Changes
2
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
140 additions
and
255 deletions
+140
-255
ee/app/finders/geo/container_repository_registry_finder.rb
ee/app/finders/geo/container_repository_registry_finder.rb
+2
-12
ee/spec/finders/geo/container_repository_registry_finder_spec.rb
.../finders/geo/container_repository_registry_finder_spec.rb
+138
-243
No files found.
ee/app/finders/geo/container_repository_registry_finder.rb
View file @
0ad5501e
...
...
@@ -7,11 +7,11 @@ module Geo
end
def
count_synced
registries
.
merge
(
Geo
::
ContainerRepositoryRegistry
.
synced
)
.
count
Geo
::
ContainerRepositoryRegistry
.
synced
.
count
end
def
count_failed
registries
.
merge
(
Geo
::
ContainerRepositoryRegistry
.
failed
)
.
count
Geo
::
ContainerRepositoryRegistry
.
failed
.
count
end
def
count_registry
...
...
@@ -91,15 +91,5 @@ module Geo
.
pluck_container_repository_key
end
# rubocop:enable CodeReuse/ActiveRecord
private
def
registries
if
Geo
::
ContainerRepositoryRegistry
.
registry_consistency_worker_enabled?
Geo
::
ContainerRepositoryRegistry
.
all
else
current_node_fdw
.
container_repositories
.
inner_join_container_repository_registry
end
end
end
end
ee/spec/finders/geo/container_repository_registry_finder_spec.rb
View file @
0ad5501e
This diff is collapsed.
Click to expand it.
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