From 531a68a424fddcc936ba6271fbb10a5aa1da75a7 Mon Sep 17 00:00:00 2001 From: GitLab Bot Date: Fri, 3 Jun 2022 03:09:20 +0000 Subject: [PATCH] Add latest changes from gitlab-org/gitlab@master --- Gemfile.lock | 1 - .../incidents/components/incidents_list.vue | 4 +- app/assets/javascripts/incidents/list.js | 1 - .../projects/incidents_controller.rb | 1 - .../mutations/terraform/state/delete.rb | 4 +- .../mutations/user_preferences/update.rb | 17 ---- app/graphql/resolvers/base_issues_resolver.rb | 7 -- .../concerns/issue_resolver_arguments.rb | 1 - app/graphql/types/issue_sort_enum.rb | 4 +- app/models/concerns/issuable.rb | 2 - app/models/merge_request/cleanup_schedule.rb | 12 +++ app/models/terraform/state.rb | 12 +-- app/models/terraform/state_version.rb | 1 + .../terraform/remote_state_handler.rb | 14 ++-- .../terraform/states/destroy_service.rb | 27 +++++++ .../states/trigger_destroy_service.rb | 43 ++++++++++ app/workers/all_queues.yml | 9 +++ ...edule_merge_request_cleanup_refs_worker.rb | 1 + .../terraform/states/destroy_worker.rb | 23 ++++++ .../development/incident_escalations.yml | 8 -- config/sidekiq_queues.yml | 2 + ...1855_add_deleted_at_to_terraform_states.rb | 9 +++ db/schema_migrations/20220524021855 | 1 + db/structure.sql | 3 +- doc/administration/auth/index.md | 21 +---- .../packages/container_registry.md | 5 +- doc/api/graphql/reference/index.md | 40 ++++++++- .../incident_management/incidents.md | 12 +-- doc/operations/incident_management/paging.md | 6 +- lib/api/terraform/state.rb | 3 +- .../DAST-Default-Branch-Deploy.gitlab-ci.yml | 2 +- .../ci/templates/Jobs/Deploy.gitlab-ci.yml | 2 +- .../Jobs/Deploy.latest.gitlab-ci.yml | 2 +- .../database/load_balancing/load_balancer.rb | 12 +++ lib/tasks/gitlab/db.rake | 8 -- locale/gitlab.pot | 5 +- scripts/utils.sh | 2 +- .../projects/incidents_controller_spec.rb | 1 - spec/factories/terraform/state.rb | 4 + .../features/incidents/incidents_list_spec.rb | 13 --- .../components/incidents_list_spec.js | 15 ---- .../issues/set_escalation_status_spec.rb | 10 --- .../mutations/terraform/state/delete_spec.rb | 10 +-- .../graphql/resolvers/issues_resolver_spec.rb | 16 ---- spec/graphql/types/issue_type_spec.rb | 8 -- .../transaction_leaking_spec.rb | 81 +++++++++++++++++++ spec/models/concerns/issuable_spec.rb | 8 -- .../merge_request/cleanup_schedule_spec.rb | 35 ++++++++ spec/models/terraform/state_spec.rb | 18 ----- spec/models/terraform/state_version_spec.rb | 1 + .../issues/set_escalation_status_spec.rb | 8 -- .../mutations/user_preferences/update_spec.rb | 22 ----- .../graphql/terraform/state/delete_spec.rb | 8 +- spec/requests/api/terraform/state_spec.rb | 31 ++++++- .../issue_sidebar_basic_entity_spec.rb | 10 --- .../alerts/update_service_spec.rb | 8 -- .../prepare_update_service_spec.rb | 8 -- spec/services/issues/update_service_spec.rb | 8 -- .../terraform/remote_state_handler_spec.rb | 40 +++++++-- .../terraform/states/destroy_service_spec.rb | 35 ++++++++ .../states/trigger_destroy_service_spec.rb | 45 +++++++++++ ..._merge_request_cleanup_refs_worker_spec.rb | 6 ++ .../terraform/states/destroy_worker_spec.rb | 30 +++++++ 63 files changed, 522 insertions(+), 284 deletions(-) create mode 100644 app/services/terraform/states/destroy_service.rb create mode 100644 app/services/terraform/states/trigger_destroy_service.rb create mode 100644 app/workers/terraform/states/destroy_worker.rb delete mode 100644 config/feature_flags/development/incident_escalations.yml create mode 100644 db/migrate/20220524021855_add_deleted_at_to_terraform_states.rb create mode 100644 db/schema_migrations/20220524021855 create mode 100644 spec/lib/gitlab/database/load_balancing/transaction_leaking_spec.rb create mode 100644 spec/services/terraform/states/destroy_service_spec.rb create mode 100644 spec/services/terraform/states/trigger_destroy_service_spec.rb create mode 100644 spec/workers/terraform/states/destroy_worker_spec.rb diff --git a/Gemfile.lock b/Gemfile.lock index 41794b552ca..960422fc3b0 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -413,7 +413,6 @@ GEM fog-core (~> 2.1) fog-json (~> 1.1) fog-xml (~> 0.1) - ipaddress (~> 0.8) fog-core (2.1.0) builder excon (~> 0.58) diff --git a/app/assets/javascripts/incidents/components/incidents_list.vue b/app/assets/javascripts/incidents/components/incidents_list.vue index 922e870caa7..dbd2225167a 100644 --- a/app/assets/javascripts/incidents/components/incidents_list.vue +++ b/app/assets/javascripts/incidents/components/incidents_list.vue @@ -144,7 +144,6 @@ export default { 'assigneeUsernameQuery', 'slaFeatureAvailable', 'canCreateIncident', - 'incidentEscalationsAvailable', ], apollo: { incidents: { @@ -238,7 +237,6 @@ export default { const isHidden = { published: !this.publishedAvailable, incidentSla: !this.slaFeatureAvailable, - escalationStatus: !this.incidentEscalationsAvailable, }; return this.$options.fields.filter(({ key }) => !isHidden[key]); @@ -421,7 +419,7 @@ export default { -