From 85f7fa54f404f28b0f351c2be0f7a6e9d74fe65f Mon Sep 17 00:00:00 2001 From: GitLab Bot Date: Tue, 18 Aug 2020 18:10:10 +0000 Subject: Add latest changes from gitlab-org/gitlab@master --- CHANGELOG.md | 18 +- GITALY_SERVER_VERSION | 2 +- GITLAB_SHELL_VERSION | 2 +- Gemfile | 2 +- Gemfile.lock | 4 +- .../blob/components/blob_edit_header.vue | 2 +- .../components/dashboard_actions_menu.vue | 5 + .../monitoring/components/dashboard_panel.vue | 12 +- .../javascripts/pipelines/components/dag/dag.vue | 94 ++-- .../pipelines/components/dag/parsing_utils.js | 50 +- .../graphql/queries/get_dag_vis_data.query.graphql | 27 ++ .../pipelines/pipeline_details_bundle.js | 28 +- .../javascripts/pipelines/pipeline_details_dag.js | 39 ++ .../javascripts/snippets/components/edit.vue | 67 +-- .../components/snippet_blob_actions_edit.vue | 145 +++++- .../snippets/components/snippet_blob_edit.vue | 83 ++-- app/assets/javascripts/snippets/constants.js | 2 + .../components/states/work_in_progress.vue | 116 ++++- .../mixins/merge_request_query_variables.js | 10 + .../vue_merge_request_widget/mr_widget_options.vue | 23 + .../queries/get_state.query.graphql | 8 + .../queries/states/work_in_progress.query.graphql | 9 + .../queries/toggle_wip.mutation.graphql | 9 + .../stores/get_state_key.js | 12 +- .../stores/mr_widget_store.js | 24 +- .../vue_shared/components/gl_mentions.vue | 16 + .../vue_shared/components/markdown/field.vue | 2 +- app/assets/stylesheets/framework/filters.scss | 17 - .../projects/merge_requests_controller.rb | 1 + app/controllers/projects/snippets_controller.rb | 4 + app/controllers/projects_controller.rb | 4 + app/controllers/snippets_controller.rb | 4 + app/models/merge_request_diff.rb | 15 +- app/policies/group_policy.rb | 7 + app/policies/project_policy.rb | 7 + app/views/projects/pipelines/_with_tabs.html.haml | 2 +- app/views/shared/issuable/_search_bar.html.haml | 3 +- ...use-files-count-for-external-diff-migration.yml | 5 + ...repository-contributors-additions-deletions.yml | 5 + .../235797-fix-issues-analytics-feature-name.yml | 5 - ...37337-revisit-history-icon-on-recent-search.yml | 5 + changelogs/unreleased/33909-peek-api-requests.yml | 5 + .../astoicescu-fix_panel_more_actions_button.yml | 5 + changelogs/unreleased/pb-gitlab-shell-13-6-0.yml | 5 + config/initializers/peek.rb | 6 + ...143304_add_new_external_diff_migration_index.rb | 23 + ...356_remove_old_external_diff_migration_index.rb | 24 + db/schema_migrations/20200813143304 | 1 + db/schema_migrations/20200813143356 | 1 + db/structure.sql | 4 +- doc/README.md | 2 +- doc/administration/consul.md | 2 +- doc/administration/geo/replication/database.md | 2 +- doc/administration/gitaly/reference.md | 2 +- doc/api/environments.md | 6 +- doc/ci/merge_request_pipelines/index.md | 2 +- doc/ci/troubleshooting.md | 18 + doc/ci/yaml/README.md | 99 +++- doc/development/documentation/structure.md | 2 +- doc/development/fe_guide/style/scss.md | 4 +- doc/development/fe_guide/vue.md | 2 +- .../new_fe_guide/development/performance.md | 4 +- doc/operations/error_tracking.md | 12 +- doc/user/clusters/applications.md | 2 +- doc/user/compliance/license_compliance/index.md | 16 +- doc/user/group/saml_sso/index.md | 2 +- doc/user/infrastructure/index.md | 2 +- doc/user/instance_statistics/dev_ops_score.md | 2 +- doc/user/packages/index.md | 8 +- .../merge_requests/merge_when_pipeline_succeeds.md | 2 +- .../ssl_tls_concepts.md | 2 +- .../img/wysiwyg_editor_v13_0.png | Bin 49012 -> 0 bytes .../img/wysiwyg_editor_v13_3.png | Bin 0 -> 57177 bytes doc/user/project/static_site_editor/index.md | 3 +- lib/api/api.rb | 5 + lib/api/api_guard.rb | 11 +- lib/api/helpers/performance_bar_helpers.rb | 21 + lib/gitlab/auth.rb | 3 + lib/gitlab/ci/config/entry/processable.rb | 2 +- lib/gitlab/ci/runner_instructions.rb | 137 ++++++ .../runner_instructions/templates/linux/install.sh | 12 + .../runner_instructions/templates/osx/install.sh | 11 + .../templates/windows/install.ps1 | 13 + lib/gitlab/import_export/file_importer.rb | 4 +- locale/gitlab.pot | 39 +- scripts/sync-stable-branch.sh | 3 +- .../issues/filtered_search/recent_searches_spec.rb | 21 + spec/features/issues/gfm_autocomplete_spec.rb | 17 + .../blob/components/blob_edit_header_spec.js | 6 +- spec/frontend/pipelines/components/dag/dag_spec.js | 112 ++--- .../pipelines/components/dag/drawing_utils_spec.js | 4 +- .../frontend/pipelines/components/dag/mock_data.js | 436 ++++++++++++----- .../pipelines/components/dag/parsing_utils_spec.js | 69 +-- .../__snapshots__/snippet_blob_edit_spec.js.snap | 14 +- spec/frontend/snippets/components/edit_spec.js | 537 ++++++++------------- .../components/snippet_blob_actions_edit_spec.js | 290 ++++++++++- .../snippets/components/snippet_blob_edit_spec.js | 225 +++++---- spec/frontend/snippets/test_utils.js | 76 +++ spec/frontend/snippets/utils/blob_spec.js | 73 +-- .../vue_mr_widget/stores/get_state_key_spec.js | 52 +- spec/lib/gitlab/auth_spec.rb | 9 +- spec/lib/gitlab/ci/runner_instructions_spec.rb | 217 +++++++++ spec/models/merge_request_diff_spec.rb | 2 + spec/policies/group_policy_spec.rb | 46 ++ spec/requests/api/maven_packages_spec.rb | 46 ++ spec/requests/api/performance_bar_spec.rb | 41 ++ spec/requests/lfs_http_spec.rb | 15 +- spec/support/helpers/filtered_search_helpers.rb | 2 +- .../policies/project_policy_shared_examples.rb | 83 +++- 109 files changed, 2639 insertions(+), 1180 deletions(-) create mode 100644 app/assets/javascripts/pipelines/graphql/queries/get_dag_vis_data.query.graphql create mode 100644 app/assets/javascripts/pipelines/pipeline_details_dag.js create mode 100644 app/assets/javascripts/vue_merge_request_widget/mixins/merge_request_query_variables.js create mode 100644 app/assets/javascripts/vue_merge_request_widget/queries/get_state.query.graphql create mode 100644 app/assets/javascripts/vue_merge_request_widget/queries/states/work_in_progress.query.graphql create mode 100644 app/assets/javascripts/vue_merge_request_widget/queries/toggle_wip.mutation.graphql create mode 100644 changelogs/unreleased/227570-use-files-count-for-external-diff-migration.yml create mode 100644 changelogs/unreleased/233119-deprecate-repository-contributors-additions-deletions.yml delete mode 100644 changelogs/unreleased/235797-fix-issues-analytics-feature-name.yml create mode 100644 changelogs/unreleased/237337-revisit-history-icon-on-recent-search.yml create mode 100644 changelogs/unreleased/33909-peek-api-requests.yml create mode 100644 changelogs/unreleased/astoicescu-fix_panel_more_actions_button.yml create mode 100644 changelogs/unreleased/pb-gitlab-shell-13-6-0.yml create mode 100644 db/migrate/20200813143304_add_new_external_diff_migration_index.rb create mode 100644 db/migrate/20200813143356_remove_old_external_diff_migration_index.rb create mode 100644 db/schema_migrations/20200813143304 create mode 100644 db/schema_migrations/20200813143356 delete mode 100644 doc/user/project/static_site_editor/img/wysiwyg_editor_v13_0.png create mode 100644 doc/user/project/static_site_editor/img/wysiwyg_editor_v13_3.png create mode 100644 lib/api/helpers/performance_bar_helpers.rb create mode 100644 lib/gitlab/ci/runner_instructions.rb create mode 100644 lib/gitlab/ci/runner_instructions/templates/linux/install.sh create mode 100644 lib/gitlab/ci/runner_instructions/templates/osx/install.sh create mode 100644 lib/gitlab/ci/runner_instructions/templates/windows/install.ps1 create mode 100644 spec/frontend/snippets/test_utils.js create mode 100644 spec/lib/gitlab/ci/runner_instructions_spec.rb create mode 100644 spec/requests/api/performance_bar_spec.rb diff --git a/CHANGELOG.md b/CHANGELOG.md index cf3ef0434ea..3ea88385f9b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,7 +8,11 @@ entry. ## 13.2.5 (2020-08-17) -- No changes. +### Security (2 changes) + +- Stop deploy token being mis-used as user in ProjectPolicy and GroupPolicy. +- Project access is checked during deploy token authentication. + ## 13.2.4 (2020-08-11) @@ -1072,7 +1076,11 @@ entry. ## 13.1.7 (2020-08-17) -- No changes. +### Security (2 changes) + +- Stop deploy token being mis-used as user in ProjectPolicy and GroupPolicy. +- Project access is checked during deploy token authentication. + ## 13.1.6 (2020-08-05) @@ -1631,7 +1639,11 @@ entry. ## 13.0.13 (2020-08-17) -- No changes. +### Security (2 changes) + +- Stop deploy token being mis-used as user in ProjectPolicy and GroupPolicy. +- Project access is checked during deploy token authentication. + ## 13.0.12 (2020-08-05) diff --git a/GITALY_SERVER_VERSION b/GITALY_SERVER_VERSION index 379a56d288b..b0d59f532f4 100644 --- a/GITALY_SERVER_VERSION +++ b/GITALY_SERVER_VERSION @@ -1 +1 @@ -8302f636d0a3f1b83cb7e5420b2720e83e564306 +397a8aa41c8b1b159a667fb262aebc644719e074 diff --git a/GITLAB_SHELL_VERSION b/GITLAB_SHELL_VERSION index d224e69099c..649e128e1b0 100644 --- a/GITLAB_SHELL_VERSION +++ b/GITLAB_SHELL_VERSION @@ -1 +1 @@ -13.5.0 +13.6.0 \ No newline at end of file diff --git a/Gemfile b/Gemfile index 22fa6f997d1..d24850274d4 100644 --- a/Gemfile +++ b/Gemfile @@ -406,7 +406,7 @@ group :test do gem 'rspec_profiling', '~> 0.0.5' gem 'rspec-parameterized', require: false - gem 'capybara', '~> 3.22.0' + gem 'capybara', '~> 3.33.0' gem 'capybara-screenshot', '~> 1.0.22' gem 'selenium-webdriver', '~> 3.142' diff --git a/Gemfile.lock b/Gemfile.lock index 48fdb342e55..aa786f37ca0 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -143,7 +143,7 @@ GEM bundler (>= 1.2.0, < 3) thor (~> 0.18) byebug (9.1.0) - capybara (3.22.0) + capybara (3.33.0) addressable mini_mime (>= 0.1.3) nokogiri (~> 1.8) @@ -1219,7 +1219,7 @@ DEPENDENCIES browser (~> 4.2) bullet (~> 6.0.2) bundler-audit (~> 0.6.1) - capybara (~> 3.22.0) + capybara (~> 3.33.0) capybara-screenshot (~> 1.0.22) carrierwave (~> 1.3) charlock_holmes (~> 0.7.5) diff --git a/app/assets/javascripts/blob/components/blob_edit_header.vue b/app/assets/javascripts/blob/components/blob_edit_header.vue index 5d3a1f0ccdb..2cbbbddceeb 100644 --- a/app/assets/javascripts/blob/components/blob_edit_header.vue +++ b/app/assets/javascripts/blob/components/blob_edit_header.vue @@ -15,7 +15,7 @@ export default { canDelete: { type: Boolean, required: false, - default: false, + default: true, }, showDelete: { type: Boolean, diff --git a/app/assets/javascripts/monitoring/components/dashboard_actions_menu.vue b/app/assets/javascripts/monitoring/components/dashboard_actions_menu.vue index 943cee9b504..68afa2ace01 100644 --- a/app/assets/javascripts/monitoring/components/dashboard_actions_menu.vue +++ b/app/assets/javascripts/monitoring/components/dashboard_actions_menu.vue @@ -138,6 +138,11 @@ export default {