Commit 607e6c5f authored by Alex Ives's avatar Alex Ives Committed by Achilleas Pipinellis

Minor updates to self service framework documentation

parent 4f6645fb
...@@ -235,11 +235,10 @@ For example, to add support for files referenced by a `Widget` model with a ...@@ -235,11 +235,10 @@ For example, to add support for files referenced by a `Widget` model with a
`ee/lib/gitlab/geo.rb`: `ee/lib/gitlab/geo.rb`:
```ruby ```ruby
def self.replicator_classes REPLICATOR_CLASSES = [
classes = [::Geo::PackageFileReplicator, ::Geo::PackageFileReplicator,
::Geo::WidgetReplicator] ::Geo::WidgetReplicator
]
classes.select(&:enabled?)
end end
``` ```
...@@ -315,10 +314,6 @@ For example, to add support for files referenced by a `Widget` model with a ...@@ -315,10 +314,6 @@ For example, to add support for files referenced by a `Widget` model with a
end end
``` ```
The method `has_create_events?` should return `true` in most of the cases.
However, if the entity you add doesn't have the create event, don't add the
method at all.
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. Add `widget_registry` to `ActiveSupport::Inflector.inflections` in `config/initializers_before_autoloader/000_inflections.rb`.
...@@ -435,7 +430,7 @@ for verification state to the widgets table: ...@@ -435,7 +430,7 @@ for verification state to the widgets table:
``` ```
1. Add a partial index on `verification_failure` and `verification_checksum` to ensure 1. Add a partial index on `verification_failure` and `verification_checksum` to ensure
re-verification can be performed efficiently. Add a migration in `ee/db/geo/migrate/`: re-verification can be performed efficiently:
```ruby ```ruby
# frozen_string_literal: true # frozen_string_literal: true
...@@ -461,9 +456,9 @@ for verification state to the widgets table: ...@@ -461,9 +456,9 @@ for verification state to the widgets table:
##### Option 2: Create a separate `widget_states` table with verification state fields ##### Option 2: Create a separate `widget_states` table with verification state fields
1. Add a migration in `ee/db/geo/migrate/` to create a `widget_states` table and add a 1. Create a `widget_states` table and add a partial index on `verification_failure` and
partial index on `verification_failure` and `verification_checksum` to ensure `verification_checksum` to ensure re-verification can be performed efficiently. Order
re-verification can be performed efficiently. Order the columns according to [our guidelines](../ordering_table_columns.md): the columns according to [our guidelines](../ordering_table_columns.md):
```ruby ```ruby
# frozen_string_literal: true # frozen_string_literal: true
......
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