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
2a9722cd
Commit
2a9722cd
authored
Jul 31, 2020
by
Douglas Barbosa Alexandre
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove selective sync concern from Geo::Fdw::GeoNode
parent
0fa752af
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
1 addition
and
12 deletions
+1
-12
ee/app/models/concerns/geo/selective_sync.rb
ee/app/models/concerns/geo/selective_sync.rb
+1
-6
ee/app/models/geo/fdw/geo_node.rb
ee/app/models/geo/fdw/geo_node.rb
+0
-2
ee/app/models/geo_node.rb
ee/app/models/geo_node.rb
+0
-4
No files found.
ee/app/models/concerns/geo/selective_sync.rb
View file @
2a9722cd
...
...
@@ -123,12 +123,7 @@ module Geo::SelectiveSync
namespaces
.
arel_table
end
def
project_model
raise
NotImplementedError
,
"
#{
self
.
class
}
does not implement
#{
__method__
}
"
end
def
projects_table
project_model
.
arel_table
Project
.
arel_table
end
end
ee/app/models/geo/fdw/geo_node.rb
View file @
2a9722cd
...
...
@@ -3,8 +3,6 @@
module
Geo
module
Fdw
class
GeoNode
<
::
Geo
::
BaseFdw
include
::
Geo
::
SelectiveSync
self
.
primary_key
=
:id
self
.
inheritance_column
=
nil
self
.
table_name
=
Gitlab
::
Geo
::
Fdw
.
foreign_table_name
(
'geo_nodes'
)
...
...
ee/app/models/geo_node.rb
View file @
2a9722cd
...
...
@@ -409,8 +409,4 @@ class GeoNode < ApplicationRecord
def
projects_for_selected_shards
Project
.
within_shards
(
selective_sync_shards
)
end
def
project_model
Project
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