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
e6afae0f
Commit
e6afae0f
authored
Aug 04, 2020
by
Douglas Barbosa Alexandre
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove Geo::Fdw::GeoNodeNamespaceLink model
Since GitLab 13.2 we don't rely on FDW query/models
parent
34e1853e
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
0 additions
and
31 deletions
+0
-31
ee/app/models/geo/fdw/geo_node.rb
ee/app/models/geo/fdw/geo_node.rb
+0
-2
ee/app/models/geo/fdw/geo_node_namespace_link.rb
ee/app/models/geo/fdw/geo_node_namespace_link.rb
+0
-11
ee/spec/models/geo/fdw/geo_node_namespace_link_spec.rb
ee/spec/models/geo/fdw/geo_node_namespace_link_spec.rb
+0
-9
ee/spec/models/geo/fdw/geo_node_spec.rb
ee/spec/models/geo/fdw/geo_node_spec.rb
+0
-9
No files found.
ee/app/models/geo/fdw/geo_node.rb
View file @
e6afae0f
...
...
@@ -8,8 +8,6 @@ module Geo
self
.
table_name
=
Gitlab
::
Geo
::
Fdw
.
foreign_table_name
(
'geo_nodes'
)
serialize
:selective_sync_shards
,
Array
# rubocop:disable Cop/ActiveRecordSerialize
has_many
:geo_node_namespace_links
,
class_name:
'Geo::Fdw::GeoNodeNamespaceLink'
end
end
end
ee/app/models/geo/fdw/geo_node_namespace_link.rb
deleted
100644 → 0
View file @
34e1853e
# frozen_string_literal: true
module
Geo
module
Fdw
class
GeoNodeNamespaceLink
<
::
Geo
::
BaseFdw
self
.
table_name
=
Gitlab
::
Geo
::
Fdw
.
foreign_table_name
(
'geo_node_namespace_links'
)
belongs_to
:geo_node
,
class_name:
'Geo::Fdw::GeoNode'
,
inverse_of: :namespaces
end
end
end
ee/spec/models/geo/fdw/geo_node_namespace_link_spec.rb
deleted
100644 → 0
View file @
34e1853e
# frozen_string_literal: true
require
'spec_helper'
RSpec
.
describe
Geo
::
Fdw
::
GeoNodeNamespaceLink
,
:geo
,
type: :model
do
context
'relationships'
do
it
{
is_expected
.
to
belong_to
(
:geo_node
).
class_name
(
'Geo::Fdw::GeoNode'
).
inverse_of
(
:namespaces
)
}
end
end
ee/spec/models/geo/fdw/geo_node_spec.rb
deleted
100644 → 0
View file @
34e1853e
# frozen_string_literal: true
require
'spec_helper'
RSpec
.
describe
Geo
::
Fdw
::
GeoNode
,
:geo
,
type: :model
do
context
'relationships'
do
it
{
is_expected
.
to
have_many
(
:geo_node_namespace_links
).
class_name
(
'Geo::Fdw::GeoNodeNamespaceLink'
)
}
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