From f6b349ed51e973c4a01d2f1a85459816f478186c Mon Sep 17 00:00:00 2001 From: GitLab Bot Date: Fri, 23 Apr 2021 21:09:46 +0000 Subject: [PATCH] Add latest changes from gitlab-org/gitlab@master --- .haml-lint.yml | 1 - .../ide/components/commit_sidebar/actions.vue | 3 +- .../components/commit_sidebar/radio_group.vue | 1 + app/models/user.rb | 4 + app/views/admin/runners/index.html.haml | 2 +- ...ge_request_merge_method_settings.html.haml | 2 +- app/views/shared/_group_form.html.haml | 4 +- .../shared/tokens/_scopes_form.html.haml | 2 +- app/workers/all_queues.yml | 8 ++ .../batched_background_migration_worker.rb | 6 +- .../users/deactivate_dormant_users_worker.rb | 49 ++++++++ ...54-automate-dormant-users-deactivation.yml | 5 + config/initializers/1_settings.rb | 3 + ...e_dormant_users_to_application_settings.rb | 7 ++ ...10421022010_add_index_for_dormant_users.rb | 19 +++ db/schema_migrations/20210421021510 | 1 + db/schema_migrations/20210421022010 | 1 + db/structure.sql | 3 + doc/api/graphql/reference/index.md | 56 +++++++++ .../documentation/styleguide/index.md | 21 +++- doc/user/packages/npm_registry/index.md | 42 ++++++- lib/gitlab/database/migration_helpers.rb | 41 ++++++- locale/gitlab.pot | 18 ++- qa/qa.rb | 1 + qa/qa/page/base.rb | 29 ++--- qa/qa/page/component/access_tokens.rb | 4 +- qa/qa/page/component/visibility_setting.rb | 23 ++++ qa/qa/page/group/new.rb | 15 +-- qa/qa/page/group/settings/general.rb | 9 +- qa/qa/page/project/new.rb | 7 +- qa/qa/page/project/settings/merge_request.rb | 4 +- qa/qa/page/project/web_ide/edit.rb | 10 +- ...umn_using_background_migration_job_spec.rb | 32 +++-- .../gitlab/database/migration_helpers_spec.rb | 114 ++++++++++++++++-- spec/models/user_spec.rb | 43 +++++++ .../deactivate_dormant_users_worker_spec.rb | 61 ++++++++++ 36 files changed, 564 insertions(+), 87 deletions(-) create mode 100644 app/workers/users/deactivate_dormant_users_worker.rb create mode 100644 changelogs/unreleased/211754-automate-dormant-users-deactivation.yml create mode 100644 db/migrate/20210421021510_add_deactivate_dormant_users_to_application_settings.rb create mode 100644 db/migrate/20210421022010_add_index_for_dormant_users.rb create mode 100644 db/schema_migrations/20210421021510 create mode 100644 db/schema_migrations/20210421022010 create mode 100644 qa/qa/page/component/visibility_setting.rb create mode 100644 spec/workers/users/deactivate_dormant_users_worker_spec.rb diff --git a/.haml-lint.yml b/.haml-lint.yml index 622a70d047c..1d1c0fa1de2 100644 --- a/.haml-lint.yml +++ b/.haml-lint.yml @@ -110,7 +110,6 @@ linters: - Layout/EmptyLineAfterGuardClause - Layout/LeadingCommentSpace - Layout/SpaceAroundOperators - - Layout/SpaceBeforeBlockBraces - Layout/SpaceBeforeComma - Layout/SpaceBeforeFirstArg - Layout/SpaceInsideHashLiteralBraces diff --git a/app/assets/javascripts/ide/components/commit_sidebar/actions.vue b/app/assets/javascripts/ide/components/commit_sidebar/actions.vue index 273d8d972f7..fcc900bbc96 100644 --- a/app/assets/javascripts/ide/components/commit_sidebar/actions.vue +++ b/app/assets/javascripts/ide/components/commit_sidebar/actions.vue @@ -76,8 +76,9 @@ export default { :value="$options.commitToCurrentBranch" :disabled="!canPushToBranch" :title="$options.currentBranchPermissionsTooltip" + data-qa-selector="commit_to_current_branch_radio_container" > - +