diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2022-04-01 00:08:25 +0000 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2022-04-01 00:08:25 +0000 |
commit | 58f5efa917c82e5384940c13f2527113bd853e44 (patch) | |
tree | 685ca2ffcbf119fe2cca8fc41148039f6ad23c18 /.gitlab | |
parent | 32bbedbc214c30979168c8005c83259feb468540 (diff) | |
download | gitlab-ce-58f5efa917c82e5384940c13f2527113bd853e44.tar.gz |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to '.gitlab')
-rw-r--r-- | .gitlab/ci/rails.gitlab-ci.yml | 3 | ||||
-rw-r--r-- | .gitlab/issue_templates/Geo Replicate a new Git repository type.md | 13 | ||||
-rw-r--r-- | .gitlab/issue_templates/Geo Replicate a new blob type.md | 13 |
3 files changed, 6 insertions, 23 deletions
diff --git a/.gitlab/ci/rails.gitlab-ci.yml b/.gitlab/ci/rails.gitlab-ci.yml index 3908de6b5e1..fbf335ac777 100644 --- a/.gitlab/ci/rails.gitlab-ci.yml +++ b/.gitlab/ci/rails.gitlab-ci.yml @@ -187,9 +187,6 @@ setup-test-env: - .setup-test-env-cache - .rails:rules:setup-test-env stage: prepare - needs: - - job: "update-gitaly-binaries-cache" - optional: true variables: SETUP_DB: "false" script: 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 6d37fc678af..e858f80ffaa 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 @@ -193,6 +193,8 @@ That's all of the required database changes. include ::Geo::ReplicableModel include ::Geo::VerifiableModel + delegate(*::Geo::VerificationState::VERIFICATION_METHODS, to: :cool_widget_state) + with_replicator Geo::CoolWidgetReplicator mount_uploader :file, CoolWidgetUploader @@ -201,16 +203,6 @@ That's all of the required database changes. after_save :save_verification_details - delegate :verification_retry_at, :verification_retry_at=, - :verified_at, :verified_at=, - :verification_checksum, :verification_checksum=, - :verification_failure, :verification_failure=, - :verification_retry_count, :verification_retry_count=, - :verification_state=, :verification_state, - :verification_started_at=, :verification_started_at, - to: :cool_widget_state - ... - scope :with_verification_state, ->(state) { joins(:cool_widget_state).where(cool_widget_states: { verification_state: verification_state_value(state) }) } scope :checksummed, -> { joins(:cool_widget_state).where.not(cool_widget_states: { verification_checksum: nil } ) } scope :not_checksummed, -> { joins(:cool_widget_state).where(cool_widget_states: { verification_checksum: nil } ) } @@ -487,6 +479,7 @@ That's all of the required database changes. module Geo class CoolWidgetState < ApplicationRecord include EachBatch + include ::Geo::VerificationStateDefinition self.primary_key = :cool_widget_id 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 35bb28ad170..0cbfd79c958 100644 --- a/.gitlab/issue_templates/Geo Replicate a new blob type.md +++ b/.gitlab/issue_templates/Geo Replicate a new blob type.md @@ -195,6 +195,8 @@ That's all of the required database changes. include ::Geo::ReplicableModel include ::Geo::VerifiableModel + delegate(*::Geo::VerificationState::VERIFICATION_METHODS, to: :cool_widget_state) + with_replicator Geo::CoolWidgetReplicator mount_uploader :file, CoolWidgetUploader @@ -203,16 +205,6 @@ That's all of the required database changes. after_save :save_verification_details - delegate :verification_retry_at, :verification_retry_at=, - :verified_at, :verified_at=, - :verification_checksum, :verification_checksum=, - :verification_failure, :verification_failure=, - :verification_retry_count, :verification_retry_count=, - :verification_state=, :verification_state, - :verification_started_at=, :verification_started_at, - to: :cool_widget_state - ... - scope :with_verification_state, ->(state) { joins(:cool_widget_state).where(cool_widget_states: { verification_state: verification_state_value(state) }) } scope :checksummed, -> { joins(:cool_widget_state).where.not(cool_widget_states: { verification_checksum: nil } ) } scope :not_checksummed, -> { joins(:cool_widget_state).where(cool_widget_states: { verification_checksum: nil } ) } @@ -451,6 +443,7 @@ That's all of the required database changes. module Geo class CoolWidgetState < ApplicationRecord include EachBatch + include ::Geo::VerificationStateDefinition self.primary_key = :cool_widget_id |