Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2023-06-01 09:08:03 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2023-06-01 09:08:03 +0300
commit8f535d9082bb0f10f2ef6b9133dbc77691ace4db (patch)
tree5e8df6512d9c5a5fee8e499b10e5b0817799d4aa /.gitlab
parent4346c3ae00a177d8afe73a898514b0edeb43e07d (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to '.gitlab')
-rw-r--r--.gitlab/issue_templates/Geo Replicate a new Git repository type.md34
-rw-r--r--.gitlab/issue_templates/Geo Replicate a new blob type.md34
2 files changed, 68 insertions, 0 deletions
diff --git a/.gitlab/issue_templates/Geo Replicate a new Git repository type.md b/.gitlab/issue_templates/Geo Replicate a new Git repository type.md
index 95f92430eea..e93c5d79964 100644
--- a/.gitlab/issue_templates/Geo Replicate a new Git repository type.md
+++ b/.gitlab/issue_templates/Geo Replicate a new Git repository type.md
@@ -725,6 +725,40 @@ The GraphQL API is used by `Admin > Geo > Replication Details` views, and is dir
}
```
+To allow the new replicable to resync and reverify via GraphQL:
+
+- [ ] Add the `CoolWidgetRegistryType` to the `GEO_REGISTRY_TYPE` constant in `ee/app/graphql/types/geo/registrable_type.rb`:
+
+ ```ruby
+ GEO_REGISTRY_TYPES = {
+ ::Geo::CoolWidgetRegistry => Types::Geo::CoolWidgetRegistryType
+ }
+ ```
+
+- [ ] Include the `CoolWidgetRegistry` in the `let(:registry_classes)` variable of `ee/spec/graphql/types/geo/registry_class_enum_spec.rb`:
+
+ ```ruby
+ let(:registry_classes) do
+ %w[
+ COOL_WIDGET_REGISTRY
+ ]
+ end
+ ```
+
+- [ ] Include the new registry in the Rspec parameterized table of `ee/spec/support/shared_contexts/graphql/geo/registries_shared_context.rb`:
+
+ ```ruby
+ # frozen_string_literal: true
+
+ RSpec.shared_context 'with geo registries shared context' do
+ using RSpec::Parameterized::TableSyntax
+
+ where(:registry_class, :registry_type, :registry_factory) do
+ Geo::CoolWidgetRegistry | Types::Geo::CoolWidgetRegistryType | :geo_cool_widget_registry
+ end
+ end
+ ```
+
- [ ] Update the GraphQL reference documentation:
```shell
diff --git a/.gitlab/issue_templates/Geo Replicate a new blob type.md b/.gitlab/issue_templates/Geo Replicate a new blob type.md
index 7bf8dd6526e..2183ba9c384 100644
--- a/.gitlab/issue_templates/Geo Replicate a new blob type.md
+++ b/.gitlab/issue_templates/Geo Replicate a new blob type.md
@@ -693,6 +693,40 @@ The GraphQL API is used by `Admin > Geo > Replication Details` views, and is dir
}
```
+To allow the new replicable to resync and reverify via GraphQL:
+
+- [ ] Add the `CoolWidgetRegistryType` to the `GEO_REGISTRY_TYPE` constant in `ee/app/graphql/types/geo/registrable_type.rb`:
+
+ ```ruby
+ GEO_REGISTRY_TYPES = {
+ ::Geo::CoolWidgetRegistry => Types::Geo::CoolWidgetRegistryType
+ }
+ ```
+
+- [ ] Include the `CoolWidgetRegistry` in the `let(:registry_classes)` variable of `ee/spec/graphql/types/geo/registry_class_enum_spec.rb`:
+
+ ```ruby
+ let(:registry_classes) do
+ %w[
+ COOL_WIDGET_REGISTRY
+ ]
+ end
+ ```
+
+- [ ] Include the new registry in the Rspec parameterized table of `ee/spec/support/shared_contexts/graphql/geo/registries_shared_context.rb`:
+
+ ```ruby
+ # frozen_string_literal: true
+
+ RSpec.shared_context 'with geo registries shared context' do
+ using RSpec::Parameterized::TableSyntax
+
+ where(:registry_class, :registry_type, :registry_factory) do
+ Geo::CoolWidgetRegistry | Types::Geo::CoolWidgetRegistryType | :geo_cool_widget_registry
+ end
+ end
+ ```
+
- [ ] Update the GraphQL reference documentation:
```shell