Commit d9367af7 authored by Toon Claes's avatar Toon Claes

Merge branch 'alexives/220953/update_ssf_documentation' into 'master'

Update geo self service framework documentation

See merge request gitlab-org/gitlab!36608
parents de34d2f4 42abbbd9
...@@ -180,6 +180,11 @@ For example, to add support for files referenced by a `Widget` model with a ...@@ -180,6 +180,11 @@ For example, to add support for files referenced by a `Widget` model with a
mount_uploader :file, WidgetUploader 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 def self.replicables_for_geo_node
# Should be implemented. The idea of the method is to restrict # Should be implemented. The idea of the method is to restrict
# the set of synced items depending on synchronization settings # the set of synced items depending on synchronization settings
...@@ -227,7 +232,7 @@ For example, to add support for files referenced by a `Widget` model with a ...@@ -227,7 +232,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 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 ```ruby
# frozen_string_literal: true # frozen_string_literal: true
...@@ -286,6 +291,8 @@ For example, to add support for files referenced by a `Widget` model with a ...@@ -286,6 +291,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. 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`: 1. Create `ee/spec/factories/geo/widget_registry.rb`:
```ruby ```ruby
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment