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
Show 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
...
@@ -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
...
...
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