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
8fd5296f
Commit
8fd5296f
authored
Aug 24, 2020
by
Douglas Barbosa Alexandre
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove unused methods
parent
fed6814b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
22 deletions
+1
-22
ee/app/finders/geo/project_registry_status_finder.rb
ee/app/finders/geo/project_registry_status_finder.rb
+1
-11
ee/spec/finders/geo/project_registry_status_finder_spec.rb
ee/spec/finders/geo/project_registry_status_finder_spec.rb
+0
-11
No files found.
ee/app/finders/geo/project_registry_status_finder.rb
View file @
8fd5296f
...
...
@@ -6,7 +6,7 @@ module Geo
# This finders works slightly different than the ones used to trigger
# synchronization, as we are concerned in filtering for displaying rather then
# filtering for processing.
class
ProjectRegistryStatusFinder
<
RegistryFinder
class
ProjectRegistryStatusFinder
# Returns all project registry
#
def
all_projects
...
...
@@ -70,16 +70,6 @@ module Geo
end
# rubocop: enable CodeReuse/ActiveRecord
# Return any project registry that has never been fully synced
#
# We don't include projects without a corresponding ProjectRegistry
# for performance reasons.
# rubocop: disable CodeReuse/ActiveRecord
def
never_synced_projects
Geo
::
ProjectRegistry
.
where
(
last_repository_successful_sync_at:
nil
).
with_routes
end
# rubocop: enable CodeReuse/ActiveRecord
private
def
project_registry
...
...
ee/spec/finders/geo/project_registry_status_finder_spec.rb
View file @
8fd5296f
...
...
@@ -65,15 +65,4 @@ RSpec.describe Geo::ProjectRegistryStatusFinder, :geo, :geo_tracking_db do
)
end
end
describe
'#never_synced_projects'
do
it
'returns only never fully synced registries'
do
result
=
subject
.
never_synced_projects
expect
(
result
).
to
contain_exactly
(
never_synced_registry
,
never_synced_registry_with_failure
)
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