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
da599c69
Commit
da599c69
authored
Jul 01, 2020
by
Valery Sizov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Geo:: Use default has_create_events? param for registries
parent
ba49b7f6
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
4 additions
and
12 deletions
+4
-12
doc/development/geo/framework.md
doc/development/geo/framework.md
+0
-4
ee/app/models/geo/base_registry.rb
ee/app/models/geo/base_registry.rb
+4
-0
ee/app/models/geo/package_file_registry.rb
ee/app/models/geo/package_file_registry.rb
+0
-4
ee/app/models/geo/project_registry.rb
ee/app/models/geo/project_registry.rb
+0
-4
No files found.
doc/development/geo/framework.md
View file @
da599c69
...
...
@@ -265,10 +265,6 @@ For example, to add support for files referenced by a `Widget` model with a
MODEL_FOREIGN_KEY
=
:widget_id
belongs_to
:widget
,
class_name:
'Widget'
def
self
.
has_create_events?
true
end
end
```
...
...
ee/app/models/geo/base_registry.rb
View file @
da599c69
...
...
@@ -52,6 +52,10 @@ class Geo::BaseRegistry < Geo::TrackingBase
.
limit
(
batch_size
)
end
def
self
.
has_create_events?
true
end
def
model_record_id
read_attribute
(
self
.
class
::
MODEL_FOREIGN_KEY
)
end
...
...
ee/app/models/geo/package_file_registry.rb
View file @
da599c69
...
...
@@ -12,10 +12,6 @@ class Geo::PackageFileRegistry < Geo::BaseRegistry
sha_attribute
:verification_checksum
sha_attribute
:verification_checksum_mismatched
def
self
.
has_create_events?
true
end
def
self
.
delete_for_model_ids
(
package_file_ids
)
# TODO: https://gitlab.com/gitlab-org/gitlab/-/issues/222635
[]
...
...
ee/app/models/geo/project_registry.rb
View file @
da599c69
...
...
@@ -46,10 +46,6 @@ class Geo::ProjectRegistry < Geo::BaseRegistry
Feature
.
enabled?
(
:geo_project_registry_ssot_sync
)
end
def
self
.
has_create_events?
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
)
...
...
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