From 29f6c0bff81cae77435342e46d1f439ac16a57d1 Mon Sep 17 00:00:00 2001 From: GitLab Bot Date: Tue, 20 Sep 2022 18:13:03 +0000 Subject: [PATCH] Add latest changes from gitlab-org/gitlab@master --- .rubocop_todo/layout/line_length.yml | 1 - .../style/percent_literal_delimiters.yml | 1 - Gemfile | 1 - Gemfile.lock | 4 - .../access_tokens/components/tokens_app.vue | 2 +- .../contributors/components/contributors.vue | 2 +- .../crm/contacts/components/contacts_root.vue | 11 +-- .../components/organizations_root.vue | 9 +- .../incidents/timeline_events_form.vue | 7 ++ .../components/profile_preferences.vue | 4 +- .../components/search_settings.vue | 41 +++++++-- .../javascripts/search_settings/mount.js | 1 + .../paginated_table_with_search_and_tabs.vue | 2 +- app/controllers/concerns/sends_blob.rb | 22 ++++- .../service_usage_data.html.haml | 39 ++++---- app/views/groups/projects.html.haml | 2 +- .../settings/access_tokens/index.html.haml | 2 +- .../settings/integrations/index.html.haml | 9 +- .../profiles/active_sessions/index.html.haml | 2 +- app/views/profiles/audit_log.html.haml | 2 +- app/views/profiles/chat_names/index.html.haml | 2 +- app/views/profiles/emails/index.html.haml | 2 +- app/views/profiles/gpg_keys/index.html.haml | 2 +- app/views/profiles/keys/index.html.haml | 2 +- .../profiles/notifications/show.html.haml | 2 +- app/views/profiles/passwords/edit.html.haml | 2 +- app/views/profiles/show.html.haml | 8 +- app/views/projects/hooks/index.html.haml | 2 +- app/views/projects/pages/new.html.haml | 11 ++- .../settings/access_tokens/index.html.haml | 2 +- .../settings/integrations/index.html.haml | 11 ++- .../doorkeeper/applications/_index.html.haml | 2 +- .../improve_blobs_cache_headers.yml | 8 ++ config/initializers/omniauth.rb | 2 +- config/initializers/sidekiq.rb | 7 +- .../packages/container_registry.md | 4 +- .../sidekiq/sidekiq_memory_killer.md | 20 +--- doc/development/gemfile.md | 13 +++ doc/raketasks/backup_gitlab.md | 2 - .../dependency_scanning/index.md | 9 +- doc/user/group/import/index.md | 35 +++++-- doc/user/group/settings/import_export.md | 12 ++- doc/user/project/settings/import_export.md | 17 ++-- lib/gitlab/sidekiq_middleware.rb | 3 +- .../sidekiq_middleware/memory_killer.rb | 91 ------------------- locale/gitlab.pot | 3 + .../designs/raw_images_controller_spec.rb | 2 +- .../projects/raw_controller_spec.rb | 25 ++++- .../component/contributors_spec.js | 5 +- spec/frontend/crm/contacts_root_spec.js | 14 ++- spec/frontend/crm/organizations_root_spec.js | 2 +- .../incidents/timeline_events_form_spec.js | 24 ++++- .../components/search_settings_spec.js | 44 ++++++++- .../sidekiq_middleware/memory_killer_spec.rb | 83 ----------------- .../sidekiq_middleware/server_metrics_spec.rb | 3 +- spec/lib/gitlab/sidekiq_middleware_spec.rb | 10 +- spec/spec_helper.rb | 3 +- .../wiki_actions_shared_examples.rb | 2 +- 58 files changed, 314 insertions(+), 341 deletions(-) create mode 100644 config/feature_flags/development/improve_blobs_cache_headers.yml delete mode 100644 lib/gitlab/sidekiq_middleware/memory_killer.rb delete mode 100644 spec/lib/gitlab/sidekiq_middleware/memory_killer_spec.rb diff --git a/.rubocop_todo/layout/line_length.yml b/.rubocop_todo/layout/line_length.yml index be7dfddfc24..07eb9f99154 100644 --- a/.rubocop_todo/layout/line_length.yml +++ b/.rubocop_todo/layout/line_length.yml @@ -3573,7 +3573,6 @@ Layout/LineLength: - 'lib/gitlab/sidekiq_daemon/monitor.rb' - 'lib/gitlab/sidekiq_middleware/duplicate_jobs/duplicate_job.rb' - 'lib/gitlab/sidekiq_middleware/duplicate_jobs/strategies/deduplicates_when_scheduling.rb' - - 'lib/gitlab/sidekiq_middleware/memory_killer.rb' - 'lib/gitlab/sidekiq_middleware/server_metrics.rb' - 'lib/gitlab/sidekiq_middleware/size_limiter/compressor.rb' - 'lib/gitlab/sidekiq_versioning.rb' diff --git a/.rubocop_todo/style/percent_literal_delimiters.yml b/.rubocop_todo/style/percent_literal_delimiters.yml index 9989ae3f8b3..7bf3d1a4df0 100644 --- a/.rubocop_todo/style/percent_literal_delimiters.yml +++ b/.rubocop_todo/style/percent_literal_delimiters.yml @@ -592,7 +592,6 @@ Style/PercentLiteralDelimiters: - 'lib/gitlab/search/abuse_detection.rb' - 'lib/gitlab/search_context.rb' - 'lib/gitlab/sidekiq_daemon/memory_killer.rb' - - 'lib/gitlab/sidekiq_middleware/memory_killer.rb' - 'lib/gitlab/slash_commands/presenters/base.rb' - 'lib/gitlab/ssh_public_key.rb' - 'lib/gitlab/task_helpers.rb' diff --git a/Gemfile b/Gemfile index 6631a889375..fdce5e0dc50 100644 --- a/Gemfile +++ b/Gemfile @@ -38,7 +38,6 @@ gem 'doorkeeper', '~> 5.5.0.rc2' gem 'doorkeeper-openid_connect', '~> 1.7.5' gem 'rexml', '~> 3.2.5' gem 'ruby-saml', '~> 1.13.0' -gem 'omniauth-rails_csrf_protection' gem 'omniauth', '~> 2.1.0' gem 'omniauth-auth0', '~> 2.0.0' gem 'omniauth-azure-activedirectory-v2', '~> 1.0' diff --git a/Gemfile.lock b/Gemfile.lock index 9074b48c56b..34f518a0f60 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -958,9 +958,6 @@ GEM omniauth (>= 1.9, < 3) omniauth-oauth2-generic (0.2.2) omniauth-oauth2 (~> 1.0) - omniauth-rails_csrf_protection (1.0.1) - actionpack (>= 4.2) - omniauth (~> 2.0) omniauth-saml (2.0.0) omniauth (~> 2.0) ruby-saml (~> 1.9) @@ -1702,7 +1699,6 @@ DEPENDENCIES omniauth-gitlab (~> 4.0.0)! omniauth-google-oauth2 (~> 1.0.1)! omniauth-oauth2-generic (~> 0.2.2) - omniauth-rails_csrf_protection omniauth-salesforce (~> 1.0.5)! omniauth-saml (~> 2.0.0) omniauth-shibboleth (~> 1.3.0) diff --git a/app/assets/javascripts/access_tokens/components/tokens_app.vue b/app/assets/javascripts/access_tokens/components/tokens_app.vue index 10d4d62d803..1f72f5e19e2 100644 --- a/app/assets/javascripts/access_tokens/components/tokens_app.vue +++ b/app/assets/javascripts/access_tokens/components/tokens_app.vue @@ -79,7 +79,7 @@ export default {