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
9280f0e7
Commit
9280f0e7
authored
Jun 24, 2019
by
Douglas Barbosa Alexandre
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove legacy queries methods from Gitlab::Geo::Fdw
parent
d32c03d3
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
38 deletions
+0
-38
ee/lib/gitlab/geo/fdw.rb
ee/lib/gitlab/geo/fdw.rb
+0
-4
ee/spec/lib/gitlab/geo/fdw_spec.rb
ee/spec/lib/gitlab/geo/fdw_spec.rb
+0
-34
No files found.
ee/lib/gitlab/geo/fdw.rb
View file @
9280f0e7
...
...
@@ -23,10 +23,6 @@ module Gitlab
!
enabled?
end
def
enabled_for_selective_sync?
enabled?
&&
Feature
.
enabled?
(
:use_fdw_queries_for_selective_sync
,
default_enabled:
true
)
end
# Return full table name with foreign schema
#
# @param [String] table_name
...
...
ee/spec/lib/gitlab/geo/fdw_spec.rb
View file @
9280f0e7
...
...
@@ -99,40 +99,6 @@ describe Gitlab::Geo::Fdw, :geo do
end
end
describe
'.enabled_for_selective_sync?'
do
context
'when the feature flag is enabled'
do
before
do
stub_feature_flags
(
use_fdw_queries_for_selective_sync:
true
)
end
it
'returns false when FDW is disabled'
do
allow
(
described_class
).
to
receive
(
:enabled?
).
and_return
(
false
)
expect
(
described_class
.
enabled_for_selective_sync?
).
to
eq
false
end
it
'returns true when FDW is enabled'
do
expect
(
described_class
.
enabled_for_selective_sync?
).
to
eq
true
end
end
context
'when the feature flag is disabled'
do
before
do
stub_feature_flags
(
use_fdw_queries_for_selective_sync:
false
)
end
it
'returns false when FDW is disabled'
do
allow
(
described_class
).
to
receive
(
:enabled?
).
and_return
(
false
)
expect
(
described_class
.
enabled_for_selective_sync?
).
to
eq
false
end
it
'returns false when FDW is enabled'
do
expect
(
described_class
.
enabled_for_selective_sync?
).
to
eq
false
end
end
end
describe
'.foreign_tables_up_to_date?'
do
it
'returns false when foreign schema does not exist'
do
drop_foreign_schema
...
...
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