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
75baffcb
Commit
75baffcb
authored
Jul 10, 2020
by
Alex Ives
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update geo self service framework documentation
Relates to
https://gitlab.com/gitlab-org/gitlab/issues/220953
parent
715b5f62
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
1 deletion
+8
-1
doc/development/geo/framework.md
doc/development/geo/framework.md
+8
-1
No files found.
doc/development/geo/framework.md
View file @
75baffcb
...
...
@@ -178,6 +178,11 @@ For example, to add support for files referenced by a `Widget` model with a
mount_uploader
:file
,
WidgetUploader
def
local?
# Must to be implemented, Check the uploader's storage types
file_store
==
ObjectStorage
::
Store
::
LOCAL
end
def
self
.
replicables_for_geo_node
# Should be implemented. The idea of the method is to restrict
# the set of synced items depending on synchronization settings
...
...
@@ -225,7 +230,7 @@ For example, to add support for files referenced by a `Widget` model with a
```
1.
Create the
`widget_registry`
table so Geo secondaries can track the sync and
verification state of each Widget's file:
verification state of each Widget's file
. This migration belongs in
`ee/db/geo/migrate`
:
```
ruby
# frozen_string_literal: true
...
...
@@ -284,6 +289,8 @@ For example, to add support for files referenced by a `Widget` model with a
1.
Update
`REGISTRY_CLASSES`
in
`ee/app/workers/geo/secondary/registry_consistency_worker.rb`
.
1.
Add
`widget_registry`
to
`ActiveSupport::Inflector.inflections`
in
`config/initializers_before_autoloader/000_inflections.rb`
1.
Create
`ee/spec/factories/geo/widget_registry.rb`
:
```
ruby
...
...
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