From 3104fdfb6bdad6312e00b5a9f2cd5811f811312e Mon Sep 17 00:00:00 2001 From: GitLab Bot Date: Fri, 10 May 2024 03:18:04 +0000 Subject: [PATCH] Add latest changes from gitlab-org/gitlab@master --- .gitlab/ci/rules.gitlab-ci.yml | 3 + .../components/ci_variable_drawer.vue | 32 ++++++++-- app/models/design_management/version.rb | 3 +- app/models/project_setting.rb | 2 +- .../{wip => beta}/ci_canceling_status.yml | 6 +- .../15-9-insecure-ci-job-token.yml | 2 +- .../16-3-CI-job-token-scope-update.yml | 2 +- ...en_scope_enabled-attribute-deprecation.yml | 2 +- .../16-5-ci-job-token-limit-setting.yml | 2 +- .../16-9-job-token-remove-scope-direction.yml | 2 +- ...ode_suggestions_enabled_project_setting.rb | 13 ++++ db/schema_migrations/20240501201630 | 1 + db/structure.sql | 1 - doc/ci/yaml/script.md | 4 +- doc/update/deprecations.md | 36 +++++------ doc/user/packages/dependency_proxy/index.md | 2 +- locale/gitlab.pot | 16 +++-- .../components/ci_variable_drawer_spec.js | 61 +++++++++++-------- .../design_management/upload_spec.rb | 18 +++++- .../variable_list_drawer_shared_examples.rb | 25 +++++--- 20 files changed, 153 insertions(+), 80 deletions(-) rename config/feature_flags/{wip => beta}/ci_canceling_status.yml (85%) create mode 100644 db/post_migrate/20240501201630_remove_code_suggestions_enabled_project_setting.rb create mode 100644 db/schema_migrations/20240501201630 diff --git a/.gitlab/ci/rules.gitlab-ci.yml b/.gitlab/ci/rules.gitlab-ci.yml index 767cfd5a8fc..94d91326842 100644 --- a/.gitlab/ci/rules.gitlab-ci.yml +++ b/.gitlab/ci/rules.gitlab-ci.yml @@ -1701,6 +1701,9 @@ # Run tests automatically for MRs that touch QA files - <<: *if-merge-request changes: *qa-patterns + # Run tests automatically for MRS that touch GITALY_SERVER_VERSION + - <<: *if-merge-request + changes: *gitaly-patterns # Otherwise, only run tests after the MR is approved - <<: *if-merge-request-not-approved when: never diff --git a/app/assets/javascripts/ci/ci_variable_list/components/ci_variable_drawer.vue b/app/assets/javascripts/ci/ci_variable_list/components/ci_variable_drawer.vue index 34e14abefc2..ad1965d8951 100644 --- a/app/assets/javascripts/ci/ci_variable_list/components/ci_variable_drawer.vue +++ b/app/assets/javascripts/ci/ci_variable_list/components/ci_variable_drawer.vue @@ -15,6 +15,8 @@ import { GlModal, GlModalDirective, GlSprintf, + GlFormRadio, + GlFormRadioGroup, } from '@gitlab/ui'; import { __, s__, sprintf } from '~/locale'; import { DRAWER_Z_INDEX } from '~/lib/utils/constants'; @@ -55,16 +57,19 @@ export const i18n = { expandedField: s__('CiVariables|Expand variable reference'), expandedDescription: EXPANDED_VARIABLES_NOTE, flags: __('Flags'), + visibility: __('Visibility'), flagsLinkTitle: FLAG_LINK_TITLE, key: __('Key'), keyFeedback: s__("CiVariables|A variable key can only contain letters, numbers, and '_'."), keyHelpText: s__( 'CiVariables|You can use CI/CD variables with the same name in different places, but the variables might overwrite each other. %{linkStart}What is the order of precedence for variables?%{linkEnd}', ), - maskedField: s__('CiVariables|Mask variable'), + maskedField: s__('CiVariables|Masked'), + visibleField: s__('CiVariables|Visible'), maskedDescription: s__( - 'CiVariables|Variable will be masked in job logs. Requires values to meet regular expression requirements.', + 'CiVariables|Masked in job logs but value can be revealed in CI/CD settings. Requires values to meet regular expressions requirements.', ), + visibleDescription: s__('CiVariables|Can be seen in job logs.'), maskedValueMinLengthValidationText: s__( 'CiVariables|The value must have at least %{charsAmount} characters.', ), @@ -112,6 +117,8 @@ export default { GlLink, GlModal, GlSprintf, + GlFormRadio, + GlFormRadioGroup, }, directives: { GlModalDirective, @@ -464,6 +471,23 @@ export default { readonly /> + + + + + {{ $options.i18n.visibleField }} + + + + {{ $options.i18n.maskedField }} + + + +