From 942229d2b424e0c505aa676cbd8e173e4c99d83a Mon Sep 17 00:00:00 2001 From: GitLab Bot Date: Mon, 25 Oct 2021 18:12:16 +0000 Subject: [PATCH] Add latest changes from gitlab-org/gitlab@master --- app/assets/javascripts/editor/schema/ci.json | 4 +- .../ide/components/jobs/detail.vue | 5 +- .../jobs/components/table/index.js | 7 +- .../registration/registration_dropdown.vue | 1 + .../javascripts/runner/group_runners/index.js | 2 + .../set_status_modal_wrapper.vue | 2 +- app/assets/javascripts/terraform/index.js | 1 + .../runner_instructions/constants.js | 2 + .../runner_instructions_modal.vue | 21 +- app/graphql/types/ci/runner_setup_type.rb | 2 +- app/models/legacy_diff_note.rb | 6 +- app/models/protected_branch.rb | 7 +- app/models/users/credit_card_validation.rb | 1 + .../upsert_credit_card_validation_service.rb | 1 + app/views/profiles/show.html.haml | 2 +- .../show_relevant_approval_rule_approvers.yml | 2 +- ...ip_legacy_diff_note_callback_on_import.yml | 8 + .../usage_data_instrumentation.yml | 8 + ...network_to_user_credit_card_validations.rb | 9 + ...network_on_user_credit_card_validations.rb | 13 ++ ...network_on_user_credit_card_validations.rb | 17 ++ db/schema_migrations/20211013080714 | 1 + db/schema_migrations/20211013080715 | 1 + db/schema_migrations/20211013080716 | 1 + db/structure.sql | 4 + doc/.vale/gitlab/Acronyms.yml | 1 + .../geo/setup/external_database.md | 6 +- .../operations/fast_ssh_key_lookup.md | 38 ++++ .../reference_architectures/10k_users.md | 4 +- .../reference_architectures/25k_users.md | 4 +- .../reference_architectures/2k_users.md | 4 +- .../reference_architectures/3k_users.md | 6 +- .../reference_architectures/50k_users.md | 4 +- doc/api/graphql/reference/index.md | 8 +- doc/ci/cloud_deployment/index.md | 2 +- doc/ci/services/postgres.md | 6 +- .../database/loose_foreign_keys.md | 182 ++++++++++++++++++ .../documentation/styleguide/word_list.md | 4 +- doc/install/aws/gitlab_hybrid_on_aws.md | 6 +- doc/install/aws/manual_install_aws.md | 2 +- .../admin_area/merge_requests_approvals.md | 2 +- .../settings/account_and_limit_settings.md | 6 +- doc/user/admin_area/settings/index.md | 10 +- .../settings/instance_template_repository.md | 2 +- doc/user/discussions/index.md | 4 +- ...asic_search.png => basic_search_v14_4.png} | Bin doc/user/search/img/issues_mrs_shortcut.png | Bin 4523 -> 0 bytes .../search/img/issues_mrs_shortcut_v14_4.png | Bin 0 -> 6741 bytes doc/user/search/index.md | 4 +- lib/api/users.rb | 1 + lib/gitlab/usage/metric.rb | 4 + .../metrics/names_suggestions/generator.rb | 4 + lib/gitlab/usage_data.rb | 45 +++-- lib/gitlab/usage_data_metrics.rb | 12 +- lib/gitlab/usage_data_non_sql_metrics.rb | 7 +- lib/gitlab/usage_data_queries.rb | 7 +- lib/gitlab/utils/usage_data.rb | 5 + locale/gitlab.pot | 55 ++++-- .../runner_instructions_modal_spec.js | 32 ++- spec/lib/gitlab/usage/metric_spec.rb | 6 + .../names_suggestions/generator_spec.rb | 28 ++- spec/lib/gitlab/usage_data_metrics_spec.rb | 12 ++ spec/lib/gitlab/usage_data_spec.rb | 173 +++++++++++++++-- spec/lib/gitlab/utils/usage_data_spec.rb | 22 ++- spec/models/legacy_diff_note_spec.rb | 54 ++++++ spec/models/protected_branch_spec.rb | 17 +- .../users/credit_card_validation_spec.rb | 1 + spec/requests/api/users_spec.rb | 2 + ...ert_credit_card_validation_service_spec.rb | 13 +- 69 files changed, 799 insertions(+), 134 deletions(-) create mode 100644 config/feature_flags/development/skip_legacy_diff_note_callback_on_import.yml create mode 100644 config/feature_flags/development/usage_data_instrumentation.yml create mode 100644 db/migrate/20211013080714_add_network_to_user_credit_card_validations.rb create mode 100644 db/migrate/20211013080715_limit_network_on_user_credit_card_validations.rb create mode 100644 db/migrate/20211013080716_index_include_network_on_user_credit_card_validations.rb create mode 100644 db/schema_migrations/20211013080714 create mode 100644 db/schema_migrations/20211013080715 create mode 100644 db/schema_migrations/20211013080716 create mode 100644 doc/development/database/loose_foreign_keys.md rename doc/user/search/img/{basic_search.png => basic_search_v14_4.png} (100%) delete mode 100644 doc/user/search/img/issues_mrs_shortcut.png create mode 100644 doc/user/search/img/issues_mrs_shortcut_v14_4.png diff --git a/app/assets/javascripts/editor/schema/ci.json b/app/assets/javascripts/editor/schema/ci.json index 0052bc00406..bce823f1106 100644 --- a/app/assets/javascripts/editor/schema/ci.json +++ b/app/assets/javascripts/editor/schema/ci.json @@ -555,7 +555,7 @@ }, "start_in": { "type": "string", - "description": "Used in conjunction with 'when: delayed' to set how long to delay before starting a job.", + "description": "Used in conjunction with 'when: delayed' to set how long to delay before starting a job. e.g. '5', 5 seconds, 30 minutes, 1 week, etc. Read more: https://docs.gitlab.com/ee/ci/jobs/job_control.html#run-a-job-after-a-delay", "minLength": 1 }, "allow_failure": { @@ -939,7 +939,7 @@ "stage": { "type": "string", "description": "Define what stage the job will run in.", - "default": "test" + "minLength": 1 }, "only": { "$ref": "#/definitions/filter", diff --git a/app/assets/javascripts/ide/components/jobs/detail.vue b/app/assets/javascripts/ide/components/jobs/detail.vue index 96cb4f3d495..55ae5501cdb 100644 --- a/app/assets/javascripts/ide/components/jobs/detail.vue +++ b/app/assets/javascripts/ide/components/jobs/detail.vue @@ -1,5 +1,5 @@