From 4d0bc99be4b963effecd4f20cc2fc5b0bb34ab46 Mon Sep 17 00:00:00 2001 From: GitLab Bot Date: Mon, 25 Oct 2021 21:12:12 +0000 Subject: [PATCH] Add latest changes from gitlab-org/gitlab@master --- .gitlab/ci/frontend.gitlab-ci.yml | 2 - Gemfile | 2 +- Gemfile.lock | 4 +- .../create_group_description_details.vue | 2 +- .../header/pipeline_editor_header.vue | 1 + .../header/pipeline_editor_mini_graph.vue | 52 ++++++++++++++ .../components/header/pipeline_status.vue | 4 +- .../ui/pipeline_editor_messages.vue | 7 ++ .../javascripts/pipeline_editor/constants.js | 1 + .../javascripts/pipeline_editor/index.js | 1 + .../pipeline_editor/pipeline_editor_home.vue | 1 + .../registration/registration_dropdown.vue | 10 ++- app/models/integrations/jira.rb | 10 ++- .../merge_requests/retarget_chain_service.rb | 2 - ...ests.yml => jira_use_first_ref_by_oid.yml} | 12 ++-- .../dependency_scanning/index.md | 7 +- .../project/merge_requests/getting_started.md | 5 -- lib/gitlab/git/commit.rb | 14 +++- lib/gitlab/git/repository.rb | 11 +++ lib/gitlab/gitaly_client/ref_service.rb | 7 ++ locale/gitlab.pot | 8 ++- spec/features/admin/admin_runners_spec.rb | 2 + .../header/pipline_editor_mini_graph_spec.js | 72 ++++++++++++++++++- .../ui/pipeline_editor_messages_spec.js | 2 + spec/frontend/pipeline_editor/mock_data.js | 56 +++++++++++++++ spec/lib/gitlab/git/commit_spec.rb | 8 +++ spec/lib/gitlab/git/repository_spec.rb | 26 +++++++ .../gitlab/gitaly_client/ref_service_spec.rb | 15 ++++ spec/models/integrations/jira_spec.rb | 16 ++++- .../retarget_chain_service_spec.rb | 8 --- 30 files changed, 329 insertions(+), 39 deletions(-) rename config/feature_flags/development/{retarget_merge_requests.yml => jira_use_first_ref_by_oid.yml} (54%) diff --git a/.gitlab/ci/frontend.gitlab-ci.yml b/.gitlab/ci/frontend.gitlab-ci.yml index 7f38597758c..139888c12fc 100644 --- a/.gitlab/ci/frontend.gitlab-ci.yml +++ b/.gitlab/ci/frontend.gitlab-ci.yml @@ -193,9 +193,7 @@ graphql-schema-dump: # Disable warnings in browserslist which can break on backports # https://github.com/browserslist/browserslist/blob/a287ec6/node.js#L367-L384 BROWSERSLIST_IGNORE_OLD_DATA: "true" - SETUP_DB: "false" before_script: - - !reference [.default-before_script, before_script] - *yarn-install stage: test diff --git a/Gemfile b/Gemfile index 11bef61d487..3a04f1e1395 100644 --- a/Gemfile +++ b/Gemfile @@ -476,7 +476,7 @@ end gem 'spamcheck', '~> 0.1.0' # Gitaly GRPC protocol definitions -gem 'gitaly', '~> 14.3.0.pre.rc2' +gem 'gitaly', '~> 14.4.0.pre.rc43' # KAS GRPC protocol definitions gem 'kas-grpc', '~> 0.0.2' diff --git a/Gemfile.lock b/Gemfile.lock index 40b75863c65..7497734d6dc 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -450,7 +450,7 @@ GEM rails (>= 3.2.0) git (1.7.0) rchardet (~> 1.8) - gitaly (14.3.0.pre.rc2) + gitaly (14.4.0.pre.rc43) grpc (~> 1.0) github-markup (1.7.0) gitlab (4.16.1) @@ -1457,7 +1457,7 @@ DEPENDENCIES gettext (~> 3.3) gettext_i18n_rails (~> 1.8.0) gettext_i18n_rails_js (~> 1.3) - gitaly (~> 14.3.0.pre.rc2) + gitaly (~> 14.4.0.pre.rc43) github-markup (~> 1.7.0) gitlab-chronic (~> 0.10.5) gitlab-dangerfiles (~> 2.3.1) diff --git a/app/assets/javascripts/pages/groups/new/components/create_group_description_details.vue b/app/assets/javascripts/pages/groups/new/components/create_group_description_details.vue index ea08a0821a8..35193171fb8 100644 --- a/app/assets/javascripts/pages/groups/new/components/create_group_description_details.vue +++ b/app/assets/javascripts/pages/groups/new/components/create_group_description_details.vue @@ -20,7 +20,7 @@ export default { diff --git a/app/assets/javascripts/pipeline_editor/components/header/pipeline_editor_header.vue b/app/assets/javascripts/pipeline_editor/components/header/pipeline_editor_header.vue index fcc31f087ff..ec6ee52b6b2 100644 --- a/app/assets/javascripts/pipeline_editor/components/header/pipeline_editor_header.vue +++ b/app/assets/javascripts/pipeline_editor/components/header/pipeline_editor_header.vue @@ -63,6 +63,7 @@ export default { v-if="showPipelineStatus" :commit-sha="commitSha" :class="$options.pipelineStatusClasses" + v-on="$listeners" /> diff --git a/app/assets/javascripts/pipeline_editor/components/header/pipeline_editor_mini_graph.vue b/app/assets/javascripts/pipeline_editor/components/header/pipeline_editor_mini_graph.vue index 75b1398a3c2..25a78aab933 100644 --- a/app/assets/javascripts/pipeline_editor/components/header/pipeline_editor_mini_graph.vue +++ b/app/assets/javascripts/pipeline_editor/components/header/pipeline_editor_mini_graph.vue @@ -1,17 +1,52 @@ diff --git a/app/assets/javascripts/pipeline_editor/components/header/pipeline_status.vue b/app/assets/javascripts/pipeline_editor/components/header/pipeline_status.vue index 2b7888532fb..97e21d67fa5 100644 --- a/app/assets/javascripts/pipeline_editor/components/header/pipeline_status.vue +++ b/app/assets/javascripts/pipeline_editor/components/header/pipeline_status.vue @@ -62,11 +62,12 @@ export default { }; }, update(data) { - const { id, commitPath = '', detailedStatus = {}, stages, status } = + const { id, iid, commitPath = '', detailedStatus = {}, stages, status } = data.project?.pipeline || {}; return { id, + iid, commitPath, detailedStatus, stages, @@ -174,6 +175,7 @@ export default { { ciExamplesHelpPagePath, ciHelpPagePath, configurationPaths, + dataMethod: 'graphql', defaultBranch, emptyStateIllustrationPath, helpPaths, diff --git a/app/assets/javascripts/pipeline_editor/pipeline_editor_home.vue b/app/assets/javascripts/pipeline_editor/pipeline_editor_home.vue index be8d1c09037..b82e9faee53 100644 --- a/app/assets/javascripts/pipeline_editor/pipeline_editor_home.vue +++ b/app/assets/javascripts/pipeline_editor/pipeline_editor_home.vue @@ -111,6 +111,7 @@ export default { :ci-config-data="ciConfigData" :commit-sha="commitSha" :is-new-ci-config-file="isNewCiConfigFile" + v-on="$listeners" />