Add latest changes from gitlab-org/gitlab@master
This commit is contained in:
parent
76abc55eb4
commit
ec246c2be1
|
@ -350,9 +350,6 @@ button::-moz-focus-inner,
|
|||
white-space: nowrap;
|
||||
border: 0;
|
||||
}
|
||||
.m-auto {
|
||||
margin: auto !important;
|
||||
}
|
||||
.gl-badge {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
|
@ -2062,12 +2059,18 @@ body.gl-dark {
|
|||
.gl-display-inline-block\! {
|
||||
display: inline-block !important;
|
||||
}
|
||||
.gl-align-items-center {
|
||||
align-items: center;
|
||||
}
|
||||
.gl-align-items-stretch {
|
||||
align-items: stretch;
|
||||
}
|
||||
.gl-flex-grow-1 {
|
||||
flex-grow: 1;
|
||||
}
|
||||
.gl-justify-content-end {
|
||||
justify-content: flex-end;
|
||||
}
|
||||
.gl-relative {
|
||||
position: relative;
|
||||
}
|
||||
|
|
|
@ -335,9 +335,6 @@ button::-moz-focus-inner,
|
|||
white-space: nowrap;
|
||||
border: 0;
|
||||
}
|
||||
.m-auto {
|
||||
margin: auto !important;
|
||||
}
|
||||
.gl-badge {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
|
@ -1722,12 +1719,18 @@ svg.s16 {
|
|||
.gl-display-inline-block\! {
|
||||
display: inline-block !important;
|
||||
}
|
||||
.gl-align-items-center {
|
||||
align-items: center;
|
||||
}
|
||||
.gl-align-items-stretch {
|
||||
align-items: stretch;
|
||||
}
|
||||
.gl-flex-grow-1 {
|
||||
flex-grow: 1;
|
||||
}
|
||||
.gl-justify-content-end {
|
||||
justify-content: flex-end;
|
||||
}
|
||||
.gl-relative {
|
||||
position: relative;
|
||||
}
|
||||
|
|
|
@ -8,8 +8,7 @@ module Mutations
|
|||
include Mutations::SpamProtection
|
||||
include FindsProject
|
||||
|
||||
description "Creates a work item." \
|
||||
" Available only when feature flag `work_items` is enabled. The feature is experimental and is subject to change without notice."
|
||||
description "Creates a work item. Available only when feature flag `work_items` is enabled."
|
||||
|
||||
authorize :create_work_item
|
||||
|
||||
|
|
|
@ -8,7 +8,7 @@ module Mutations
|
|||
include Mutations::SpamProtection
|
||||
|
||||
description "Creates a work item from a task in another work item's description." \
|
||||
" Available only when feature flag `work_items` is enabled. This feature is experimental and is subject to change without notice."
|
||||
" Available only when feature flag `work_items` is enabled."
|
||||
|
||||
authorize :update_work_item
|
||||
|
||||
|
|
|
@ -5,7 +5,7 @@ module Mutations
|
|||
class Delete < BaseMutation
|
||||
graphql_name 'WorkItemDelete'
|
||||
description "Deletes a work item." \
|
||||
" Available only when feature flag `work_items` is enabled. The feature is experimental and is subject to change without notice."
|
||||
" Available only when feature flag `work_items` is enabled."
|
||||
|
||||
authorize :delete_work_item
|
||||
|
||||
|
|
|
@ -6,8 +6,7 @@ module Mutations
|
|||
graphql_name 'WorkItemDeleteTask'
|
||||
|
||||
description "Deletes a task in a work item's description." \
|
||||
' Available only when feature flag `work_items` is enabled. This feature is experimental and' \
|
||||
' is subject to change without notice.'
|
||||
' Available only when feature flag `work_items` is enabled.'
|
||||
|
||||
authorize :update_work_item
|
||||
|
||||
|
|
|
@ -5,7 +5,7 @@ module Mutations
|
|||
class Update < BaseMutation
|
||||
graphql_name 'WorkItemUpdate'
|
||||
description "Updates a work item by Global ID." \
|
||||
" Available only when feature flag `work_items` is enabled. The feature is experimental and is subject to change without notice."
|
||||
" Available only when feature flag `work_items` is enabled."
|
||||
|
||||
include Mutations::SpamProtection
|
||||
include Mutations::WorkItems::UpdateArguments
|
||||
|
|
|
@ -5,8 +5,7 @@ module Mutations
|
|||
class UpdateTask < BaseMutation
|
||||
graphql_name 'WorkItemUpdateTask'
|
||||
description "Updates a work item's task by Global ID." \
|
||||
" Available only when feature flag `work_items` is enabled. The feature is experimental and is" \
|
||||
" subject to change without notice."
|
||||
" Available only when feature flag `work_items` is enabled."
|
||||
|
||||
include Mutations::SpamProtection
|
||||
|
||||
|
|
|
@ -137,12 +137,12 @@ module Types
|
|||
mount_mutation Mutations::Packages::Destroy
|
||||
mount_mutation Mutations::Packages::DestroyFile
|
||||
mount_mutation Mutations::Echo
|
||||
mount_mutation Mutations::WorkItems::Create
|
||||
mount_mutation Mutations::WorkItems::CreateFromTask
|
||||
mount_mutation Mutations::WorkItems::Delete
|
||||
mount_mutation Mutations::WorkItems::DeleteTask
|
||||
mount_mutation Mutations::WorkItems::Update
|
||||
mount_mutation Mutations::WorkItems::UpdateTask
|
||||
mount_mutation Mutations::WorkItems::Create, deprecated: { milestone: '15.1', reason: :alpha }
|
||||
mount_mutation Mutations::WorkItems::CreateFromTask, deprecated: { milestone: '15.1', reason: :alpha }
|
||||
mount_mutation Mutations::WorkItems::Delete, deprecated: { milestone: '15.1', reason: :alpha }
|
||||
mount_mutation Mutations::WorkItems::DeleteTask, deprecated: { milestone: '15.1', reason: :alpha }
|
||||
mount_mutation Mutations::WorkItems::Update, deprecated: { milestone: '15.1', reason: :alpha }
|
||||
mount_mutation Mutations::WorkItems::UpdateTask, deprecated: { milestone: '15.1', reason: :alpha }
|
||||
mount_mutation Mutations::SavedReplies::Create
|
||||
mount_mutation Mutations::SavedReplies::Update
|
||||
mount_mutation Mutations::SavedReplies::Destroy
|
||||
|
|
|
@ -91,8 +91,8 @@ module Types
|
|||
field :work_item, Types::WorkItemType,
|
||||
null: true,
|
||||
resolver: Resolvers::WorkItemResolver,
|
||||
description: 'Find a work item. Returns `null` if `work_items` feature flag is disabled.' \
|
||||
' The feature is experimental and is subject to change without notice.'
|
||||
deprecated: { milestone: '15.1', reason: :alpha },
|
||||
description: 'Find a work item. Returns `null` if `work_items` feature flag is disabled.'
|
||||
|
||||
field :merge_request, Types::MergeRequestType,
|
||||
null: true,
|
||||
|
|
|
@ -29,12 +29,12 @@
|
|||
= render "layouts/nav/top_nav"
|
||||
|
||||
.navbar-collapse.gl-transition-medium.collapse
|
||||
%ul.nav.navbar-nav.gl-w-full
|
||||
%ul.nav.navbar-nav.gl-w-full.gl-align-items-center.gl-justify-content-end
|
||||
- if current_user
|
||||
= render 'layouts/header/new_dropdown', class: 'gl-display-none gl-sm-display-block gl-white-space-nowrap gl-text-right'
|
||||
- if top_nav_show_search
|
||||
- search_menu_item = top_nav_search_menu_item_attrs
|
||||
%li.nav-item.header-search-new.gl-display-none.gl-lg-display-block.m-auto.gl-w-full
|
||||
%li.nav-item.header-search-new.gl-display-none.gl-lg-display-block.gl-w-full
|
||||
- unless current_controller?(:search)
|
||||
- if Feature.enabled?(:new_header_search)
|
||||
= render 'layouts/header_search'
|
||||
|
|
|
@ -4,12 +4,8 @@ module Database
|
|||
class CiDatabaseWorker # rubocop:disable Scalability/IdempotentWorker
|
||||
include SingleDatabaseWorker
|
||||
|
||||
def self.enabled?
|
||||
Feature.enabled?(:execute_batched_migrations_on_schedule_ci_database, type: :ops)
|
||||
end
|
||||
|
||||
def self.tracking_database
|
||||
@tracking_database ||= Gitlab::Database::CI_DATABASE_NAME
|
||||
@tracking_database ||= Gitlab::Database::CI_DATABASE_NAME.to_sym
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
|
@ -24,11 +24,11 @@ module Database
|
|||
def tracking_database
|
||||
raise NotImplementedError, "#{self.name} does not implement #{__method__}"
|
||||
end
|
||||
# :nocov:
|
||||
|
||||
def enabled?
|
||||
raise NotImplementedError, "#{self.name} does not implement #{__method__}"
|
||||
Feature.enabled?(:execute_batched_migrations_on_schedule, type: :ops)
|
||||
end
|
||||
# :nocov:
|
||||
|
||||
def lease_key
|
||||
name.demodulize.underscore
|
||||
|
|
|
@ -4,10 +4,6 @@ module Database
|
|||
class BatchedBackgroundMigrationWorker # rubocop:disable Scalability/IdempotentWorker
|
||||
include BatchedBackgroundMigration::SingleDatabaseWorker
|
||||
|
||||
def self.enabled?
|
||||
Feature.enabled?(:execute_batched_migrations_on_schedule, type: :ops)
|
||||
end
|
||||
|
||||
def self.tracking_database
|
||||
@tracking_database ||= Gitlab::Database::MAIN_DATABASE_NAME.to_sym
|
||||
end
|
||||
|
|
|
@ -1,8 +0,0 @@
|
|||
---
|
||||
name: execute_batched_migrations_on_schedule_ci_database
|
||||
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/83109
|
||||
rollout_issue_url:
|
||||
milestone: '14.9'
|
||||
type: ops
|
||||
group: group::database
|
||||
default_enabled: false
|
|
@ -4,6 +4,6 @@ classes:
|
|||
- Clusters::Agents::ActivityEvent
|
||||
feature_categories:
|
||||
- kubernetes_management
|
||||
description: TODO
|
||||
description: Historical timeline events belonging to a cluster agent
|
||||
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/74577
|
||||
milestone: '14.6'
|
||||
|
|
|
@ -4,6 +4,6 @@ classes:
|
|||
- Clusters::Agents::GroupAuthorization
|
||||
feature_categories:
|
||||
- kubernetes_management
|
||||
description: TODO
|
||||
description: Configuration for a group that is authorized to use a particular cluster agent
|
||||
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/68023
|
||||
milestone: '14.3'
|
||||
|
|
|
@ -4,6 +4,6 @@ classes:
|
|||
- Clusters::Agents::ProjectAuthorization
|
||||
feature_categories:
|
||||
- kubernetes_management
|
||||
description: TODO
|
||||
description: Configuration for a project that is authorized to use a particular cluster agent
|
||||
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/67295
|
||||
milestone: '14.3'
|
||||
|
|
|
@ -4,6 +4,6 @@ classes:
|
|||
- Aws::Role
|
||||
feature_categories:
|
||||
- kubernetes_management
|
||||
description: TODO
|
||||
description: (Deprecated) AWS IAM role for creating EKS clusters via GitLab
|
||||
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/17057
|
||||
milestone: '12.4'
|
||||
|
|
|
@ -4,6 +4,6 @@ classes:
|
|||
- Ci::PipelineChatData
|
||||
feature_categories:
|
||||
- chatops
|
||||
description: TODO
|
||||
description: Stores information about a CI pipeline created via chatops
|
||||
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/4466
|
||||
milestone: '10.6'
|
||||
|
|
|
@ -4,6 +4,6 @@ classes:
|
|||
- Clusters::AgentToken
|
||||
feature_categories:
|
||||
- kubernetes_management
|
||||
description: TODO
|
||||
description: Tokens used by cluster agents to connect to GitLab
|
||||
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/33228
|
||||
milestone: '13.3'
|
||||
|
|
|
@ -4,6 +4,6 @@ classes:
|
|||
- Clusters::Agent
|
||||
feature_categories:
|
||||
- kubernetes_management
|
||||
description: TODO
|
||||
description: Represents a GitLab Agent for Kubernetes installed in a Kubernetes cluster
|
||||
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/33228
|
||||
milestone: '13.3'
|
||||
|
|
|
@ -4,6 +4,6 @@ classes:
|
|||
- Clusters::Group
|
||||
feature_categories:
|
||||
- kubernetes_management
|
||||
description: TODO
|
||||
description: (Deprecated) Join table between 'clusters' and 'namespaces'
|
||||
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/commit/0e15eec86d83cbdfefe17966bf5c02e4d419a34d
|
||||
milestone: '11.5'
|
||||
|
|
|
@ -4,6 +4,6 @@ classes:
|
|||
- Clusters::Platforms::Kubernetes
|
||||
feature_categories:
|
||||
- kubernetes_management
|
||||
description: TODO
|
||||
description: (Deprecated) Kubernetes specific details for a cluster integration
|
||||
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/commit/d0cff7f5855f91b5479f9fdaa39d8d95ec691a9e
|
||||
milestone: '10.2'
|
||||
|
|
|
@ -4,6 +4,6 @@ classes:
|
|||
- Clusters::Project
|
||||
feature_categories:
|
||||
- kubernetes_management
|
||||
description: TODO
|
||||
description: (Deprecated) Join table between 'clusters' and 'projects'
|
||||
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/commit/d0cff7f5855f91b5479f9fdaa39d8d95ec691a9e
|
||||
milestone: '10.2'
|
||||
|
|
|
@ -4,6 +4,6 @@ classes:
|
|||
- Clusters::Providers::Aws
|
||||
feature_categories:
|
||||
- kubernetes_management
|
||||
description: TODO
|
||||
description: (Deprecated) AWS specific details for an EKS cluster integration
|
||||
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/17057
|
||||
milestone: '12.4'
|
||||
|
|
|
@ -4,6 +4,6 @@ classes:
|
|||
- Clusters::Providers::Gcp
|
||||
feature_categories:
|
||||
- kubernetes_management
|
||||
description: TODO
|
||||
description: (Deprecated) GCP specific details for a GKE cluster integration
|
||||
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/commit/d0cff7f5855f91b5479f9fdaa39d8d95ec691a9e
|
||||
milestone: '10.2'
|
||||
|
|
|
@ -4,6 +4,6 @@ classes:
|
|||
- Clusters::Applications::CertManager
|
||||
feature_categories:
|
||||
- kubernetes_management
|
||||
description: TODO
|
||||
description: (Deprecated) A GitLab managed cert-manager installation in a Kubernetes cluster
|
||||
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/commit/8837519445c319a699e0f3ced1c6912c839f3389
|
||||
milestone: '11.6'
|
||||
|
|
|
@ -4,6 +4,6 @@ classes:
|
|||
- Clusters::Applications::Crossplane
|
||||
feature_categories:
|
||||
- kubernetes_management
|
||||
description: TODO
|
||||
description: (Deprecated) A GitLab managed Crossplane installation in a Kubernetes cluster
|
||||
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/18797
|
||||
milestone: '12.5'
|
||||
|
|
|
@ -4,6 +4,6 @@ classes:
|
|||
- Clusters::Applications::ElasticStack
|
||||
feature_categories:
|
||||
- kubernetes_management
|
||||
description: TODO
|
||||
description: (Deprecated) A GitLab managed Elastic Stack installation in a Kubernetes cluster
|
||||
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/18015
|
||||
milestone: '12.5'
|
||||
|
|
|
@ -4,6 +4,6 @@ classes:
|
|||
- Clusters::Applications::Helm
|
||||
feature_categories:
|
||||
- kubernetes_management
|
||||
description: TODO
|
||||
description: (Deprecated) A GitLab managed Helm installation in a Kubernetes cluster
|
||||
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/commit/64be8d70ae20928df351e495a3442bb6036bc3e7
|
||||
milestone: '10.2'
|
||||
|
|
|
@ -4,6 +4,6 @@ classes:
|
|||
- Clusters::Applications::Ingress
|
||||
feature_categories:
|
||||
- kubernetes_management
|
||||
description: TODO
|
||||
description: (Deprecated) A GitLab managed Ingress installation in a Kubernetes cluster
|
||||
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/commit/d8223468ae2ae061020cc26336c51dc93cc75571
|
||||
milestone: '10.2'
|
||||
|
|
|
@ -4,6 +4,6 @@ classes:
|
|||
- Clusters::Applications::Jupyter
|
||||
feature_categories:
|
||||
- kubernetes_management
|
||||
description: TODO
|
||||
description: (Deprecated) A GitLab managed Jupyter installation in a Kubernetes cluster
|
||||
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/commit/db9f765852d9fef464e69c0bf47a382f2ab7219d
|
||||
milestone: '11.0'
|
||||
|
|
|
@ -4,6 +4,6 @@ classes:
|
|||
- Clusters::Applications::Knative
|
||||
feature_categories:
|
||||
- kubernetes_management
|
||||
description: TODO
|
||||
description: (Deprecated) A GitLab managed Knative installation in a Kubernetes cluster
|
||||
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/commit/b5155b90ee233e2824c168fbb06b3ce5d3aeb194
|
||||
milestone: '11.5'
|
||||
|
|
|
@ -4,6 +4,6 @@ classes:
|
|||
- Clusters::Applications::Runner
|
||||
feature_categories:
|
||||
- kubernetes_management
|
||||
description: TODO
|
||||
description: (Deprecated) A GitLab managed Runner installation in a Kubernetes cluster
|
||||
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/commit/c607008ee55e35465e04a938a341f2f24cb6761f
|
||||
milestone: '10.6'
|
||||
|
|
|
@ -4,6 +4,6 @@ classes:
|
|||
- Clusters::KubernetesNamespace
|
||||
feature_categories:
|
||||
- kubernetes_management
|
||||
description: TODO
|
||||
description: (Deprecated) A Kubernetes namespace in a GitLab managed Kubernetes cluster
|
||||
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/commit/e3ca493876ab71ed29817a0af436fc563f564bbe
|
||||
milestone: '11.5'
|
||||
|
|
|
@ -3,7 +3,7 @@ table_name: deployment_clusters
|
|||
classes:
|
||||
- DeploymentCluster
|
||||
feature_categories:
|
||||
- deployment_management
|
||||
description: TODO
|
||||
- kubernetes_management
|
||||
description: (Deprecated) Join table between `deployments` and `clusters`
|
||||
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/24235
|
||||
milestone: '12.8'
|
||||
|
|
|
@ -4,6 +4,6 @@ classes:
|
|||
- ProjectAutoDevops
|
||||
feature_categories:
|
||||
- auto_devops
|
||||
description: TODO
|
||||
description: Auto DevOps settings for a project
|
||||
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/commit/6ed490401f49a8941dc7a9e3757ec4012f14ef0b
|
||||
milestone: '10.0'
|
||||
|
|
|
@ -3,7 +3,7 @@ table_name: serverless_domain_cluster
|
|||
classes:
|
||||
- Serverless::DomainCluster
|
||||
feature_categories:
|
||||
- deployment_management
|
||||
description: TODO
|
||||
- kubernetes_management
|
||||
description: (Deprecated) A custom domain for a GitLab managed Knative installation
|
||||
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/19835
|
||||
milestone: '12.6'
|
||||
|
|
|
@ -4,6 +4,6 @@ classes:
|
|||
- Terraform::StateVersion
|
||||
feature_categories:
|
||||
- infrastructure_as_code
|
||||
description: TODO
|
||||
description: Represents a Terraform state file at a point in time, with a corresponding file stored in object storage
|
||||
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/35211
|
||||
milestone: '13.4'
|
||||
|
|
|
@ -4,6 +4,6 @@ classes:
|
|||
- Terraform::State
|
||||
feature_categories:
|
||||
- infrastructure_as_code
|
||||
description: TODO
|
||||
description: Represents a Terraform state backend
|
||||
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/26619
|
||||
milestone: '13.0'
|
||||
|
|
|
@ -556,7 +556,11 @@ Returns [`Vulnerability`](#vulnerability).
|
|||
|
||||
### `Query.workItem`
|
||||
|
||||
Find a work item. Returns `null` if `work_items` feature flag is disabled. The feature is experimental and is subject to change without notice.
|
||||
Find a work item. Returns `null` if `work_items` feature flag is disabled.
|
||||
|
||||
WARNING:
|
||||
**Deprecated** in 15.1.
|
||||
This feature is in Alpha, and can be removed or changed at any point.
|
||||
|
||||
Returns [`WorkItem`](#workitem).
|
||||
|
||||
|
@ -5365,7 +5369,11 @@ Input type: `VulnerabilityRevertToDetectedInput`
|
|||
|
||||
### `Mutation.workItemCreate`
|
||||
|
||||
Creates a work item. Available only when feature flag `work_items` is enabled. The feature is experimental and is subject to change without notice.
|
||||
Creates a work item. Available only when feature flag `work_items` is enabled.
|
||||
|
||||
WARNING:
|
||||
**Deprecated** in 15.1.
|
||||
This feature is in Alpha, and can be removed or changed at any point.
|
||||
|
||||
Input type: `WorkItemCreateInput`
|
||||
|
||||
|
@ -5389,7 +5397,11 @@ Input type: `WorkItemCreateInput`
|
|||
|
||||
### `Mutation.workItemCreateFromTask`
|
||||
|
||||
Creates a work item from a task in another work item's description. Available only when feature flag `work_items` is enabled. This feature is experimental and is subject to change without notice.
|
||||
Creates a work item from a task in another work item's description. Available only when feature flag `work_items` is enabled.
|
||||
|
||||
WARNING:
|
||||
**Deprecated** in 15.1.
|
||||
This feature is in Alpha, and can be removed or changed at any point.
|
||||
|
||||
Input type: `WorkItemCreateFromTaskInput`
|
||||
|
||||
|
@ -5412,7 +5424,11 @@ Input type: `WorkItemCreateFromTaskInput`
|
|||
|
||||
### `Mutation.workItemDelete`
|
||||
|
||||
Deletes a work item. Available only when feature flag `work_items` is enabled. The feature is experimental and is subject to change without notice.
|
||||
Deletes a work item. Available only when feature flag `work_items` is enabled.
|
||||
|
||||
WARNING:
|
||||
**Deprecated** in 15.1.
|
||||
This feature is in Alpha, and can be removed or changed at any point.
|
||||
|
||||
Input type: `WorkItemDeleteInput`
|
||||
|
||||
|
@ -5433,7 +5449,11 @@ Input type: `WorkItemDeleteInput`
|
|||
|
||||
### `Mutation.workItemDeleteTask`
|
||||
|
||||
Deletes a task in a work item's description. Available only when feature flag `work_items` is enabled. This feature is experimental and is subject to change without notice.
|
||||
Deletes a task in a work item's description. Available only when feature flag `work_items` is enabled.
|
||||
|
||||
WARNING:
|
||||
**Deprecated** in 15.1.
|
||||
This feature is in Alpha, and can be removed or changed at any point.
|
||||
|
||||
Input type: `WorkItemDeleteTaskInput`
|
||||
|
||||
|
@ -5456,7 +5476,11 @@ Input type: `WorkItemDeleteTaskInput`
|
|||
|
||||
### `Mutation.workItemUpdate`
|
||||
|
||||
Updates a work item by Global ID. Available only when feature flag `work_items` is enabled. The feature is experimental and is subject to change without notice.
|
||||
Updates a work item by Global ID. Available only when feature flag `work_items` is enabled.
|
||||
|
||||
WARNING:
|
||||
**Deprecated** in 15.1.
|
||||
This feature is in Alpha, and can be removed or changed at any point.
|
||||
|
||||
Input type: `WorkItemUpdateInput`
|
||||
|
||||
|
@ -5479,7 +5503,11 @@ Input type: `WorkItemUpdateInput`
|
|||
|
||||
### `Mutation.workItemUpdateTask`
|
||||
|
||||
Updates a work item's task by Global ID. Available only when feature flag `work_items` is enabled. The feature is experimental and is subject to change without notice.
|
||||
Updates a work item's task by Global ID. Available only when feature flag `work_items` is enabled.
|
||||
|
||||
WARNING:
|
||||
**Deprecated** in 15.1.
|
||||
This feature is in Alpha, and can be removed or changed at any point.
|
||||
|
||||
Input type: `WorkItemUpdateTaskInput`
|
||||
|
||||
|
|
|
@ -246,11 +246,11 @@ page](https://go.dev/dl).
|
|||
# Remove former Go installation folder
|
||||
sudo rm -rf /usr/local/go
|
||||
|
||||
curl --remote-name --location --progress-bar "https://go.dev/dl/go1.16.10.linux-amd64.tar.gz"
|
||||
echo '414cd18ce1d193769b9e97d2401ad718755ab47816e13b2a1cde203d263b55cf go1.16.10.linux-amd64.tar.gz' | shasum -a256 -c - && \
|
||||
sudo tar -C /usr/local -xzf go1.16.10.linux-amd64.tar.gz
|
||||
curl --remote-name --location --progress-bar "https://go.dev/dl/go1.17.10.linux-amd64.tar.gz""
|
||||
echo '87fc728c9c731e2f74e4a999ef53cf07302d7ed3504b0839027bd9c10edaa3fd go1.17.10.linux-amd64.tar.gz' | shasum -a256 -c - && \
|
||||
sudo tar -C /usr/local -xzf go1.17.10.linux-amd64.tar.gz
|
||||
sudo ln -sf /usr/local/go/bin/{go,gofmt} /usr/local/bin/
|
||||
rm go1.16.10.linux-amd64.tar.gz
|
||||
rm go1.17.10.linux-amd64.tar.gz
|
||||
```
|
||||
|
||||
## 4. Node
|
||||
|
|
|
@ -107,11 +107,11 @@ Download and install Go (for Linux, 64-bit):
|
|||
# Remove former Go installation folder
|
||||
sudo rm -rf /usr/local/go
|
||||
|
||||
curl --remote-name --location --progress-bar "https://go.dev/dl/go1.16.10.linux-amd64.tar.gz"
|
||||
echo '414cd18ce1d193769b9e97d2401ad718755ab47816e13b2a1cde203d263b55cf go1.16.10.linux-amd64.tar.gz' | shasum -a256 -c - && \
|
||||
sudo tar -C /usr/local -xzf go1.16.10.linux-amd64.tar.gz
|
||||
curl --remote-name --location --progress-bar "https://go.dev/dl/go1.17.10.linux-amd64.tar.gz"
|
||||
echo '87fc728c9c731e2f74e4a999ef53cf07302d7ed3504b0839027bd9c10edaa3fd go1.17.10.linux-amd64.tar.gz' | shasum -a256 -c - && \
|
||||
sudo tar -C /usr/local -xzf go1.17.10.linux-amd64.tar.gz
|
||||
sudo ln -sf /usr/local/go/bin/{go,gofmt} /usr/local/bin/
|
||||
rm go1.16.10.linux-amd64.tar.gz
|
||||
rm go1.17.10.linux-amd64.tar.gz
|
||||
```
|
||||
|
||||
### 6. Update Git
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
RSpec.shared_examples 'it runs batched background migration jobs' do |tracking_database, feature_flag:|
|
||||
RSpec.shared_examples 'it runs batched background migration jobs' do |tracking_database|
|
||||
include ExclusiveLeaseHelpers
|
||||
|
||||
describe 'defining the job attributes' do
|
||||
|
@ -40,12 +40,16 @@ RSpec.shared_examples 'it runs batched background migration jobs' do |tracking_d
|
|||
end
|
||||
|
||||
describe '.enabled?' do
|
||||
it 'does not raise an error' do
|
||||
expect { described_class.enabled? }.not_to raise_error
|
||||
it 'returns true when execute_batched_migrations_on_schedule feature flag is enabled' do
|
||||
stub_feature_flags(execute_batched_migrations_on_schedule: true)
|
||||
|
||||
expect(described_class.enabled?).to be_truthy
|
||||
end
|
||||
|
||||
it 'returns true' do
|
||||
expect(described_class.enabled?).to be_truthy
|
||||
it 'returns false when execute_batched_migrations_on_schedule feature flag is disabled' do
|
||||
stub_feature_flags(execute_batched_migrations_on_schedule: false)
|
||||
|
||||
expect(described_class.enabled?).to be_falsey
|
||||
end
|
||||
end
|
||||
|
||||
|
@ -86,7 +90,7 @@ RSpec.shared_examples 'it runs batched background migration jobs' do |tracking_d
|
|||
|
||||
context 'when the feature flag is disabled' do
|
||||
before do
|
||||
stub_feature_flags(feature_flag => false)
|
||||
stub_feature_flags(execute_batched_migrations_on_schedule: false)
|
||||
end
|
||||
|
||||
it 'does nothing' do
|
||||
|
@ -101,7 +105,7 @@ RSpec.shared_examples 'it runs batched background migration jobs' do |tracking_d
|
|||
let(:base_model) { Gitlab::Database.database_base_models[tracking_database] }
|
||||
|
||||
before do
|
||||
stub_feature_flags(feature_flag => true)
|
||||
stub_feature_flags(execute_batched_migrations_on_schedule: true)
|
||||
|
||||
allow(Gitlab::Database::BackgroundMigration::BatchedMigration).to receive(:active_migration)
|
||||
.with(connection: base_model.connection)
|
||||
|
@ -292,7 +296,7 @@ RSpec.shared_examples 'it runs batched background migration jobs' do |tracking_d
|
|||
WHERE some_column = #{migration_records - 5};
|
||||
SQL
|
||||
|
||||
stub_feature_flags(feature_flag => true)
|
||||
stub_feature_flags(execute_batched_migrations_on_schedule: true)
|
||||
|
||||
stub_const('Gitlab::BackgroundMigration::ExampleDataMigration', migration_class)
|
||||
end
|
||||
|
|
|
@ -3,5 +3,5 @@
|
|||
require 'spec_helper'
|
||||
|
||||
RSpec.describe Database::BatchedBackgroundMigration::CiDatabaseWorker, :clean_gitlab_redis_shared_state do
|
||||
it_behaves_like 'it runs batched background migration jobs', 'ci', feature_flag: :execute_batched_migrations_on_schedule_ci_database
|
||||
it_behaves_like 'it runs batched background migration jobs', :ci
|
||||
end
|
||||
|
|
|
@ -3,5 +3,5 @@
|
|||
require 'spec_helper'
|
||||
|
||||
RSpec.describe Database::BatchedBackgroundMigrationWorker do
|
||||
it_behaves_like 'it runs batched background migration jobs', :main, feature_flag: :execute_batched_migrations_on_schedule
|
||||
it_behaves_like 'it runs batched background migration jobs', :main
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue