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
1a6e1174
Commit
1a6e1174
authored
May 29, 2020
by
Douglas Barbosa Alexandre
Committed by
Mike Kozono
Jun 04, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove Geo::Fdw::GeoNode#lfs_object_registries method
parent
c3e0176f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
55 deletions
+0
-55
ee/app/models/geo/fdw/geo_node.rb
ee/app/models/geo/fdw/geo_node.rb
+0
-7
ee/lib/gitlab/geo/fdw/lfs_object_registry_query_builder.rb
ee/lib/gitlab/geo/fdw/lfs_object_registry_query_builder.rb
+0
-48
No files found.
ee/app/models/geo/fdw/geo_node.rb
View file @
1a6e1174
...
...
@@ -64,13 +64,6 @@ module Geo
.
joins
(
inner_join_restricted_lfs_objects
)
end
def
lfs_object_registries
return
Geo
::
LfsObjectRegistry
.
all
unless
selective_sync?
Gitlab
::
Geo
::
Fdw
::
LfsObjectRegistryQueryBuilder
.
new
.
for_lfs_objects
(
lfs_objects
)
end
def
projects
return
Geo
::
Fdw
::
Project
.
all
unless
selective_sync?
...
...
ee/lib/gitlab/geo/fdw/lfs_object_registry_query_builder.rb
deleted
100644 → 0
View file @
c3e0176f
# frozen_string_literal: true
# Builder class to create composable queries using FDW to
# retrieve file registries for LFS objects.
#
# Basic usage:
#
# Gitlab::Geo::Fdw::LfsObjectRegistryQueryBuilder
# .new
# .inner_join_lfs_objects
#
module
Gitlab
module
Geo
class
Fdw
class
LfsObjectRegistryQueryBuilder
<
BaseQueryBuilder
# rubocop:disable CodeReuse/ActiveRecord
def
for_lfs_objects
(
ids
)
query
.
joins
(
fdw_inner_join_lfs_objects
)
.
model_id_in
(
ids
)
end
# rubocop:enable CodeReuse/ActiveRecord
private
def
base
::
Geo
::
LfsObjectRegistry
.
select
(
registry_table
[
Arel
.
star
])
end
def
registry_table
::
Geo
::
LfsObjectRegistry
.
arel_table
end
def
fdw_table
::
Geo
::
Fdw
::
LfsObject
.
arel_table
end
def
fdw_inner_join_lfs_objects
registry_table
.
join
(
fdw_table
,
Arel
::
Nodes
::
InnerJoin
)
.
on
(
registry_table
[
:lfs_object_id
].
eq
(
fdw_table
[
:id
]))
.
join_sources
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