From ef55cde2292fd99d3d8dbe593bb6d497e60d3b1c Mon Sep 17 00:00:00 2001 From: GitLab Bot Date: Fri, 22 Nov 2024 00:28:39 +0000 Subject: [PATCH] Add latest changes from gitlab-org/gitlab@master --- .../new_user_organization_field.vue | 22 +- app/assets/javascripts/admin/users/edit.js | 8 +- app/helpers/admin/users_helper.rb | 2 +- data/deprecations/17-8-deprecate-centos-7.yml | 12 + .../17-8-deprecate-oracle-linux-7.yml | 12 + .../17-8-deprecate-pios-buster.yml | 12 + .../17-8-deprecate-scientific-linux.yml | 12 + .../17-9-deprecate-opensuse-15-5.yml | 12 + ...te_seat_control_in_application_settings.rb | 22 ++ db/schema_migrations/20241112123436 | 1 + doc/development/duo_workflow/index.md | 1 + doc/policy/experiment-beta-support.md | 1 + doc/update/deprecations.md | 105 +++++++++ .../troubleshooting_dependency_scanning.md | 8 + .../iac_scanning/index.md | 2 +- .../sast/gitlab_advanced_sast.md | 37 ++-- .../secret_detection/pipeline/index.md | 2 +- .../vulnerabilities/index.md | 17 +- doc/user/packages/package_registry/index.md | 2 +- doc/user/packages/pypi_repository/index.md | 207 ++++++++---------- doc/user/packages/workflows/build_packages.md | 2 +- locale/gitlab.pot | 9 +- .../support/formatters/coverband_formatter.rb | 2 +- .../projects/pipelines/pipelines_spec.rb | 4 +- .../new_user_organization_field_spec.js | 38 +++- spec/helpers/admin/users_helper_spec.rb | 6 +- ...at_control_in_application_settings_spec.rb | 27 +++ 27 files changed, 424 insertions(+), 161 deletions(-) create mode 100644 data/deprecations/17-8-deprecate-centos-7.yml create mode 100644 data/deprecations/17-8-deprecate-oracle-linux-7.yml create mode 100644 data/deprecations/17-8-deprecate-pios-buster.yml create mode 100644 data/deprecations/17-8-deprecate-scientific-linux.yml create mode 100644 data/deprecations/17-9-deprecate-opensuse-15-5.yml create mode 100644 db/migrate/20241112123436_update_seat_control_in_application_settings.rb create mode 100644 db/schema_migrations/20241112123436 create mode 100644 spec/migrations/20241112123436_update_seat_control_in_application_settings_spec.rb diff --git a/app/assets/javascripts/admin/users/components/new_user_organization_field.vue b/app/assets/javascripts/admin/users/components/new_user_organization_field.vue index a9ab720d941..4ba376f14e4 100644 --- a/app/assets/javascripts/admin/users/components/new_user_organization_field.vue +++ b/app/assets/javascripts/admin/users/components/new_user_organization_field.vue @@ -11,6 +11,8 @@ export default { AVATAR_SHAPE_OPTION_RECT, organizationsQuery, organizationInputId: 'user_organization_id', + organizationUserInputId: 'user_organization_users_id', + organizationUserInputName: 'user[organization_users][][id]', i18n: { organizationSelectLabel: s__('Organization|Select an organization'), }, @@ -24,10 +26,12 @@ export default { type: Object, required: true, }, - initialAccessLevel: { - type: String, + organizationUser: { + type: Object, required: false, - default: undefined, + default() { + return {}; + }, }, organizationInputName: { type: String, @@ -47,12 +51,22 @@ export default { value: this.initialOrganization.id, }; }, + isOrganizationUserDefined() { + return Object.keys(this.organizationUser).length; + }, }, };