From cf98b5d69a84324cad0f23b786a0ec0937c90944 Mon Sep 17 00:00:00 2001 From: GitLab Bot Date: Mon, 5 Jul 2021 09:07:37 +0000 Subject: [PATCH] Add latest changes from gitlab-org/gitlab@master --- .rubocop_manual_todo.yml | 5 - .rubocop_todo.yml | 17 ---- Gemfile | 6 +- Gemfile.lock | 4 +- .../components/collapsed_files_warning.vue | 7 +- app/finders/security/jobs_finder.rb | 2 +- app/models/blob_viewer/markup.rb | 4 +- .../projects/overwrite_project_service.rb | 2 +- app/services/releases/base_service.rb | 11 +++ app/services/releases/create_service.rb | 2 + app/services/releases/destroy_service.rb | 2 + app/services/releases/update_service.rb | 2 + .../dependency_proxy/file_uploader.rb | 2 +- ...=> allow_archive_as_web_access_format.yml} | 12 +-- doc/ci/variables/index.md | 8 ++ .../documentation/styleguide/index.md | 2 +- lib/gitlab/auth/auth_finders.rb | 6 +- .../user_mentions/models/note.rb | 2 +- lib/gitlab/diff/file.rb | 2 +- lib/gitlab/git.rb | 2 +- .../import_export/relation_tree_restorer.rb | 2 +- .../collapsed_files_warning_spec.js | 99 ++++++++++++------- spec/lib/gitlab/auth/auth_finders_spec.rb | 24 ++++- spec/models/blob_viewer/markup_spec.rb | 10 -- spec/requests/api/services_spec.rb | 2 +- spec/services/releases/create_service_spec.rb | 15 +++ .../services/releases/destroy_service_spec.rb | 15 +++ spec/services/releases/update_service_spec.rb | 15 +++ .../helpers/cycle_analytics_helpers.rb | 10 +- .../relation_factory_shared_examples.rb | 2 +- 30 files changed, 194 insertions(+), 100 deletions(-) rename config/feature_flags/development/{cached_markdown_blob.yml => allow_archive_as_web_access_format.yml} (54%) diff --git a/.rubocop_manual_todo.yml b/.rubocop_manual_todo.yml index bb4ff14c8c3..09655694c80 100644 --- a/.rubocop_manual_todo.yml +++ b/.rubocop_manual_todo.yml @@ -2146,11 +2146,6 @@ Gitlab/NamespacedClass: - 'spec/tasks/gitlab/task_helpers_spec.rb' - 'spec/uploaders/object_storage_spec.rb' -Style/ClassEqualityComparison: - Exclude: - - spec/lib/peek/views/active_record_spec.rb - - ee/spec/lib/peek/views/active_record_spec.rb - # WIP See https://gitlab.com/gitlab-org/gitlab/-/issues/207950 Cop/UserAdmin: Exclude: diff --git a/.rubocop_todo.yml b/.rubocop_todo.yml index 0bc600771e3..09aa4471a4c 100644 --- a/.rubocop_todo.yml +++ b/.rubocop_todo.yml @@ -660,23 +660,6 @@ Style/BisectedAttrAccessor: Style/CaseLikeIf: Enabled: false -# Offense count: 10 -# Cop supports --auto-correct. -# Configuration parameters: IgnoredMethods. -# IgnoredMethods: ==, equal?, eql? -Style/ClassEqualityComparison: - Exclude: - - 'app/finders/security/jobs_finder.rb' - - 'app/services/projects/overwrite_project_service.rb' - - 'app/uploaders/dependency_proxy/file_uploader.rb' - - 'ee/app/graphql/resolvers/vulnerabilities/issue_links_resolver.rb' - - 'lib/gitlab/background_migration/user_mentions/models/note.rb' - - 'lib/gitlab/diff/file.rb' - - 'lib/gitlab/git.rb' - - 'lib/gitlab/import_export/relation_tree_restorer.rb' - - 'spec/requests/api/services_spec.rb' - - 'spec/support/shared_examples/lib/gitlab/import_export/relation_factory_shared_examples.rb' - # Offense count: 13 Style/CombinableLoops: Exclude: diff --git a/Gemfile b/Gemfile index 7e84b400947..14b7599826d 100644 --- a/Gemfile +++ b/Gemfile @@ -305,11 +305,7 @@ gem 'sentry-raven', '~> 3.1' # PostgreSQL query parsing # -# We need this fork until https://github.com/pganalyze/pg_query/pull/212 -# and https://github.com/pganalyze/pg_query/pull/213 are -# released. gitlab-labkit will need to be updated to use the pg_query -# version. -gem 'gitlab-pg_query', '~> 2.0.4', require: 'pg_query' +gem 'pg_query', '~> 2.1' gem 'premailer-rails', '~> 1.10.3' diff --git a/Gemfile.lock b/Gemfile.lock index b93eba7aa33..abf30697e26 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -921,6 +921,8 @@ GEM peek (1.1.0) railties (>= 4.0.0) pg (1.2.3) + pg_query (2.1.0) + google-protobuf (>= 3.17.1) plist (3.6.0) png_quantizator (0.2.1) po_to_json (1.0.1) @@ -1495,7 +1497,6 @@ DEPENDENCIES gitlab-markup (~> 1.7.1) gitlab-net-dns (~> 0.9.1) gitlab-omniauth-openid-connect (~> 0.4.0) - gitlab-pg_query (~> 2.0.4) gitlab-rdoc (~> 6.3.2) gitlab-sidekiq-fetcher (= 0.5.6) gitlab-styles (~> 6.2.0) @@ -1585,6 +1586,7 @@ DEPENDENCIES parslet (~> 1.8) peek (~> 1.1) pg (~> 1.1) + pg_query (~> 2.1) png_quantizator (~> 0.2.1) premailer-rails (~> 1.10.3) prometheus-client-mmap (~> 0.12.0) diff --git a/app/assets/javascripts/diffs/components/collapsed_files_warning.vue b/app/assets/javascripts/diffs/components/collapsed_files_warning.vue index 0cf1cdb17f8..240f102e600 100644 --- a/app/assets/javascripts/diffs/components/collapsed_files_warning.vue +++ b/app/assets/javascripts/diffs/components/collapsed_files_warning.vue @@ -1,5 +1,6 @@