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