From 5ca56fbe46ffaf7eaeff8d2f39f79f2a576b8e19 Mon Sep 17 00:00:00 2001 From: GitLab Bot Date: Wed, 28 Sep 2022 00:08:50 +0000 Subject: [PATCH] Add latest changes from gitlab-org/gitlab@master --- Gemfile | 3 + Gemfile.checksum | 1 + Gemfile.lock | 2 + .../add_context_commits_modal_wrapper.vue | 4 +- .../store/actions.js | 6 +- .../admin/deploy_keys/components/table.vue | 4 +- .../admin/statistics_panel/store/actions.js | 4 +- .../admin/users/components/users_table.vue | 4 +- .../components/alerts_settings_wrapper.vue | 42 ++++++------ .../alerts_settings/utils/cache_updates.js | 4 +- .../components/value_stream_metrics.vue | 4 +- .../usage_trends/components/usage_counts.vue | 4 +- .../components/cells/runner_actions_cell.vue | 7 +- .../components/runner_delete_button.vue | 32 +--------- app/assets/javascripts/runner/constants.js | 6 -- app/assets/stylesheets/framework/gfm.scss | 6 +- .../application_settings/_floc.html.haml | 2 +- .../_jira_connect_application_key.html.haml | 2 +- .../_repository_mirrors_form.html.haml | 2 +- .../_sourcegraph.html.haml | 2 +- .../application_settings/_usage.html.haml | 2 +- .../layouts/nav/sidebar/_profile.html.haml | 3 +- .../_pipeline_schedule.html.haml | 2 +- .../milestones/_participants_tab.html.haml | 8 +-- app/views/shared/notes/_note.html.haml | 2 +- app/views/shared/projects/_project.html.haml | 4 +- .../highlight_diffs_renewable_expiration.yml | 8 --- ...light_diffs_short_renewable_expiration.yml | 8 --- doc/user/clusters/agent/ci_cd_workflow.md | 15 +++++ doc/user/clusters/agent/install/index.md | 3 + .../entities/bulk_imports/entity_failure.rb | 5 +- lib/gitlab/diff/highlight_cache.rb | 18 +----- locale/gitlab.pot | 6 -- spec/features/groups/group_runners_spec.rb | 2 +- .../deploy_keys/components/table_spec.js | 4 +- .../users/components/users_table_spec.js | 4 +- .../alerts_settings_wrapper_spec.js | 26 ++++---- .../value_stream_metrics_spec.js | 4 +- .../cells/runner_actions_cell_spec.js | 4 +- .../components/runner_delete_button_spec.js | 31 +-------- .../bulk_imports/entity_failure_spec.rb | 15 +++++ spec/lib/gitlab/diff/highlight_cache_spec.rb | 64 ++++++------------- .../projects/_project.html.haml_spec.rb | 2 +- 43 files changed, 151 insertions(+), 230 deletions(-) delete mode 100644 config/feature_flags/development/highlight_diffs_renewable_expiration.yml delete mode 100644 config/feature_flags/development/highlight_diffs_short_renewable_expiration.yml diff --git a/Gemfile b/Gemfile index 026d7bee543..bdc0c246298 100644 --- a/Gemfile +++ b/Gemfile @@ -561,3 +561,6 @@ gem 'ed25519', '~> 1.3.0' # Error Tracking OpenAPI client # See https://gitlab.com/gitlab-org/gitlab/-/blob/master/doc/development/rake_tasks.md#update-openapi-client-for-error-tracking-feature gem 'error_tracking_open_api', path: 'vendor/gems/error_tracking_open_api' + +# Vulnerability advisories +gem 'cvss-suite', '~> 3.0.1', require: 'cvss_suite' diff --git a/Gemfile.checksum b/Gemfile.checksum index 4480ebef05e..02da640c42f 100644 --- a/Gemfile.checksum +++ b/Gemfile.checksum @@ -91,6 +91,7 @@ {"name":"creole","version":"0.5.0","platform":"ruby","checksum":"951701e2d80760f156b1cb2a93471ca97c076289becc067a33b745133ed32c03"}, {"name":"crystalball","version":"0.7.0","platform":"ruby","checksum":"6e729f372a5071daec877adb40c5df4cb25fe21f350635e2a9624373fc151ef2"}, {"name":"css_parser","version":"1.11.0","platform":"ruby","checksum":"568926c3193579446ad3e3f9d761c73e2918ee5b3b7757a1a49ec166c67d6de1"}, +{"name":"cvss-suite","version":"3.0.1","platform":"ruby","checksum":"b5ca9e9e94032a42fd0dc28c1e305378b62c949e35ed7111fc4a1d76f68ad3f9"}, {"name":"danger","version":"8.6.1","platform":"ruby","checksum":"d95eb58b41f68d3aaa9bbef697916b6b4d161a38819517c98562531be75cdfd8"}, {"name":"danger-gitlab","version":"8.0.0","platform":"ruby","checksum":"497dd7d0f6513913de651019223d8058cf494df10acbd17de92b175dfa04a3a8"}, {"name":"database_cleaner","version":"1.7.0","platform":"ruby","checksum":"bdf833c197afac7054015bcde2567c3834c366bbfe6a377c30151ca984b32016"}, diff --git a/Gemfile.lock b/Gemfile.lock index 54209a20cbd..6a360b08e6e 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -303,6 +303,7 @@ GEM git css_parser (1.11.0) addressable + cvss-suite (3.0.1) danger (8.6.1) claide (~> 1.0) claide-plugins (>= 0.9.2) @@ -1562,6 +1563,7 @@ DEPENDENCIES countries (~> 3.0) creole (~> 0.5.0) crystalball (~> 0.7.0) + cvss-suite (~> 3.0.1) database_cleaner (~> 1.7.0) deckar01-task_list (= 2.3.1) declarative_policy (~> 1.1.0) diff --git a/app/assets/javascripts/add_context_commits_modal/components/add_context_commits_modal_wrapper.vue b/app/assets/javascripts/add_context_commits_modal/components/add_context_commits_modal_wrapper.vue index 8ad218ab97b..a41ff42df20 100644 --- a/app/assets/javascripts/add_context_commits_modal/components/add_context_commits_modal_wrapper.vue +++ b/app/assets/javascripts/add_context_commits_modal/components/add_context_commits_modal_wrapper.vue @@ -2,7 +2,7 @@ import { GlModal, GlTabs, GlTab, GlSearchBoxByType, GlSprintf, GlBadge } from '@gitlab/ui'; import { mapState, mapActions } from 'vuex'; import ReviewTabContainer from '~/add_context_commits_modal/components/review_tab_container.vue'; -import createFlash from '~/flash'; +import { createAlert } from '~/flash'; import { BV_SHOW_MODAL } from '~/lib/utils/constants'; import { s__ } from '~/locale'; import eventHub from '../event_hub'; @@ -193,7 +193,7 @@ export default { window.location.reload(); } if (!values[0] && !values[1]) { - createFlash({ + createAlert({ message: s__( 'ContextCommits|Failed to create/remove context commits. Please try again.', ), diff --git a/app/assets/javascripts/add_context_commits_modal/store/actions.js b/app/assets/javascripts/add_context_commits_modal/store/actions.js index 4e5a2c7b371..d4c9db2fa33 100644 --- a/app/assets/javascripts/add_context_commits_modal/store/actions.js +++ b/app/assets/javascripts/add_context_commits_modal/store/actions.js @@ -1,6 +1,6 @@ import _ from 'lodash'; import Api from '~/api'; -import createFlash from '~/flash'; +import { createAlert } from '~/flash'; import axios from '~/lib/utils/axios_utils'; import { s__ } from '~/locale'; import * as types from './mutation_types'; @@ -71,7 +71,7 @@ export const createContextCommits = ({ state }, { commits, forceReload = false } }) .catch(() => { if (forceReload) { - createFlash({ + createAlert({ message: s__('ContextCommits|Failed to create context commits. Please try again.'), }); } @@ -113,7 +113,7 @@ export const removeContextCommits = ({ state }, forceReload = false) => }) .catch(() => { if (forceReload) { - createFlash({ + createAlert({ message: s__('ContextCommits|Failed to delete context commits. Please try again.'), }); } diff --git a/app/assets/javascripts/admin/deploy_keys/components/table.vue b/app/assets/javascripts/admin/deploy_keys/components/table.vue index 6b140590938..be85ee43891 100644 --- a/app/assets/javascripts/admin/deploy_keys/components/table.vue +++ b/app/assets/javascripts/admin/deploy_keys/components/table.vue @@ -5,7 +5,7 @@ import { __ } from '~/locale'; import Api, { DEFAULT_PER_PAGE } from '~/api'; import TimeAgoTooltip from '~/vue_shared/components/time_ago_tooltip.vue'; import { cleanLeadingSeparator } from '~/lib/utils/url_utility'; -import createFlash from '~/flash'; +import { createAlert } from '~/flash'; import csrf from '~/lib/utils/csrf'; export default { @@ -151,7 +151,7 @@ export default { }), ); } catch (error) { - createFlash({ + createAlert({ message: this.$options.i18n.apiErrorMessage, captureError: true, error, diff --git a/app/assets/javascripts/admin/statistics_panel/store/actions.js b/app/assets/javascripts/admin/statistics_panel/store/actions.js index 77782cdc187..4f952698d7a 100644 --- a/app/assets/javascripts/admin/statistics_panel/store/actions.js +++ b/app/assets/javascripts/admin/statistics_panel/store/actions.js @@ -1,5 +1,5 @@ import Api from '~/api'; -import createFlash from '~/flash'; +import { createAlert } from '~/flash'; import { convertObjectPropsToCamelCase } from '~/lib/utils/common_utils'; import { s__ } from '~/locale'; import * as types from './mutation_types'; @@ -21,7 +21,7 @@ export const receiveStatisticsSuccess = ({ commit }, statistics) => export const receiveStatisticsError = ({ commit }, error) => { commit(types.RECEIVE_STATISTICS_ERROR, error); - createFlash({ + createAlert({ message: s__('AdminDashboard|Error loading the statistics. Please try again'), }); }; diff --git a/app/assets/javascripts/admin/users/components/users_table.vue b/app/assets/javascripts/admin/users/components/users_table.vue index b4b84594276..f569cda0a4b 100644 --- a/app/assets/javascripts/admin/users/components/users_table.vue +++ b/app/assets/javascripts/admin/users/components/users_table.vue @@ -1,6 +1,6 @@