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
607e6c5f
Commit
607e6c5f
authored
Sep 16, 2020
by
Alex Ives
Committed by
Achilleas Pipinellis
Sep 16, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Minor updates to self service framework documentation
parent
4f6645fb
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
13 deletions
+8
-13
doc/development/geo/framework.md
doc/development/geo/framework.md
+8
-13
No files found.
doc/development/geo/framework.md
View file @
607e6c5f
...
...
@@ -235,11 +235,10 @@ For example, to add support for files referenced by a `Widget` model with a
`ee/lib/gitlab/geo.rb`
:
```
ruby
def
self
.
replicator_classes
classes
=
[
::
Geo
::
PackageFileReplicator
,
::
Geo
::
WidgetReplicator
]
classes
.
select
(
&
:enabled?
)
REPLICATOR_CLASSES
=
[
::
Geo
::
PackageFileReplicator
,
::
Geo
::
WidgetReplicator
]
end
```
...
...
@@ -315,10 +314,6 @@ For example, to add support for files referenced by a `Widget` model with a
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.
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:
```
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
# frozen_string_literal: true
...
...
@@ -461,9 +456,9 @@ for verification state to the widgets table:
##### 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
partial index on
`verification_failure`
and
`verification_checksum`
to ensure
re-verification can be performed efficiently. Order
the columns according to
[
our guidelines
](
../ordering_table_columns.md
)
:
1.
Create a
`widget_states`
table and add a partial index on
`verification_failure`
and
`verification_checksum`
to ensure re-verification can be performed efficiently. Order
the columns according to
[
our guidelines
](
../ordering_table_columns.md
)
:
```
ruby
# frozen_string_literal: true
...
...
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