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
020eed32
Commit
020eed32
authored
Jul 24, 2020
by
Douglas Barbosa Alexandre
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove feature flag from project registry model
parent
307a675b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
26 deletions
+0
-26
ee/app/models/geo/project_registry.rb
ee/app/models/geo/project_registry.rb
+0
-4
ee/spec/workers/geo/secondary/registry_consistency_worker_spec.rb
...workers/geo/secondary/registry_consistency_worker_spec.rb
+0
-22
No files found.
ee/app/models/geo/project_registry.rb
View file @
020eed32
...
...
@@ -43,10 +43,6 @@ class Geo::ProjectRegistry < Geo::BaseRegistry
where
(
nil
).
pluck
(
:project_id
)
end
def
self
.
registry_consistency_worker_enabled?
Feature
.
enabled?
(
:geo_project_registry_ssot_sync
,
default_enabled:
true
)
end
def
self
.
find_registry_differences
(
range
)
source_ids
=
Gitlab
::
Geo
.
current_node
.
projects
.
id_in
(
range
).
pluck_primary_key
tracked_ids
=
self
.
pluck_model_ids_in_range
(
range
)
...
...
ee/spec/workers/geo/secondary/registry_consistency_worker_spec.rb
View file @
020eed32
...
...
@@ -101,28 +101,6 @@ RSpec.describe Geo::Secondary::RegistryConsistencyWorker, :geo, :geo_fdw do
expect
(
Geo
::
PackageFileRegistry
.
where
(
package_file_id:
package_file
.
id
).
count
).
to
eq
(
1
)
end
context
'when geo_project_registry_ssot_sync is disabled'
do
before
do
stub_feature_flags
(
geo_project_registry_ssot_sync:
false
)
end
it
'returns false'
do
expect
(
subject
.
perform
).
to
be_falsey
end
it
'does not execute RegistryConsistencyService for projects'
do
allow
(
Geo
::
RegistryConsistencyService
).
to
receive
(
:new
).
with
(
Geo
::
JobArtifactRegistry
,
batch_size:
batch_size
).
and_call_original
allow
(
Geo
::
RegistryConsistencyService
).
to
receive
(
:new
).
with
(
Geo
::
LfsObjectRegistry
,
batch_size:
batch_size
).
and_call_original
allow
(
Geo
::
RegistryConsistencyService
).
to
receive
(
:new
).
with
(
Geo
::
PackageFileRegistry
,
batch_size:
batch_size
).
and_call_original
allow
(
Geo
::
RegistryConsistencyService
).
to
receive
(
:new
).
with
(
Geo
::
UploadRegistry
,
batch_size:
batch_size
).
and_call_original
allow
(
Geo
::
RegistryConsistencyService
).
to
receive
(
:new
).
with
(
Geo
::
DesignRegistry
,
batch_size:
batch_size
).
and_call_original
expect
(
Geo
::
RegistryConsistencyService
).
not_to
receive
(
:new
).
with
(
Geo
::
ProjectRegistry
,
batch_size:
batch_size
)
subject
.
perform
end
end
context
'when geo_design_registry_ssot_sync is disabled'
do
before
do
stub_feature_flags
(
geo_design_registry_ssot_sync:
false
)
...
...
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