From 146284d119185475742085e35d34a702a05a6fc4 Mon Sep 17 00:00:00 2001 From: GitLab Bot Date: Wed, 5 Oct 2022 12:09:04 +0000 Subject: [PATCH] Add latest changes from gitlab-org/gitlab@master --- .gitlab/ci/caching.gitlab-ci.yml | 3 +- .gitlab/ci/rules.gitlab-ci.yml | 1 + .../cycle_analytics/store/actions.js | 6 +- .../deploy_freeze/store/actions.js | 8 +- .../deploy_keys/components/app.vue | 8 +- .../design_notes/design_discussion.vue | 4 +- .../design_management/mixins/all_designs.js | 8 +- .../design_management/pages/design/index.vue | 4 +- .../design_management/utils/cache_update.js | 6 +- .../notes/components/noteable_note.vue | 2 +- .../components/legacy_pipeline_new_form.vue | 2 +- .../components/pipeline_new_form.vue | 2 +- app/assets/stylesheets/pages/notes.scss | 5 + app/controllers/search_controller.rb | 5 - app/helpers/search_helper.rb | 36 --- app/models/integrations/harbor.rb | 2 +- .../shared/_create_protected_tag.html.haml | 8 +- app/views/shared/web_hooks/_index.html.haml | 2 +- .../development/search_page_vertical_nav.yml | 8 - .../counts_28d/20210216181939_releases.yml | 1 + doc/administration/auth/oidc.md | 238 ++++++++------- doc/api/graphql/reference/index.md | 1 + doc/integration/azure.md | 2 +- lib/gitlab/github_import/client.rb | 6 +- .../usage_data_counters/hll_redis_counter.rb | 1 - .../known_events/epic_events.yml | 227 -------------- locale/gitlab.pot | 20 +- .../import/github_controller_spec.rb | 6 +- .../pages/design/index_spec.js | 10 +- .../design_management/pages/index_spec.js | 4 +- .../utils/cache_update_spec.js | 8 +- spec/helpers/search_helper_spec.rb | 285 ------------------ spec/lib/gitlab/github_import/client_spec.rb | 10 +- .../hll_redis_counter_spec.rb | 1 - 34 files changed, 210 insertions(+), 730 deletions(-) delete mode 100644 config/feature_flags/development/search_page_vertical_nav.yml delete mode 100644 lib/gitlab/usage_data_counters/known_events/epic_events.yml diff --git a/.gitlab/ci/caching.gitlab-ci.yml b/.gitlab/ci/caching.gitlab-ci.yml index 92f70fea80d..55f518c102d 100644 --- a/.gitlab/ci/caching.gitlab-ci.yml +++ b/.gitlab/ci/caching.gitlab-ci.yml @@ -30,10 +30,11 @@ cache-workhorse: WEBPACK_REPORT: "false" script: - !reference [.yarn-install, script] - - export GITLAB_ASSETS_HASH=$(bundle exec rake gitlab:assets:hash_sum | tee cached-assets-hash.txt) + - export GITLAB_ASSETS_HASH=$(bundle exec rake gitlab:assets:hash_sum) - source scripts/gitlab_component_helpers.sh - 'gitlab_assets_archive_doesnt_exist || { echoinfo "INFO: Exiting early as package exists."; exit 0; }' - run_timed_command "bin/rake gitlab:assets:compile" + - echo -n "${GITLAB_ASSETS_HASH}" > "cached-assets-hash.txt" - run_timed_command "create_gitlab_assets_package" - run_timed_command "upload_gitlab_assets_package" diff --git a/.gitlab/ci/rules.gitlab-ci.yml b/.gitlab/ci/rules.gitlab-ci.yml index 155c8bbd793..47cf52b8816 100644 --- a/.gitlab/ci/rules.gitlab-ci.yml +++ b/.gitlab/ci/rules.gitlab-ci.yml @@ -182,6 +182,7 @@ - "GITLAB_WORKHORSE_VERSION" - "workhorse/**/*" - ".gitlab/ci/workhorse.gitlab-ci.yml" + - "spec/support/gitlab-git-test.git/**/*" .yaml-lint-patterns: &yaml-lint-patterns - "*.yml" diff --git a/app/assets/javascripts/cycle_analytics/store/actions.js b/app/assets/javascripts/cycle_analytics/store/actions.js index 5c2e29bfa74..4a201e00582 100644 --- a/app/assets/javascripts/cycle_analytics/store/actions.js +++ b/app/assets/javascripts/cycle_analytics/store/actions.js @@ -6,7 +6,7 @@ import { getValueStreamStageCounts, } from '~/api/analytics_api'; import { normalizeHeaders, parseIntPagination } from '~/lib/utils/common_utils'; -import createFlash from '~/flash'; +import { createAlert } from '~/flash'; import { __ } from '~/locale'; import { DEFAULT_VALUE_STREAM, I18N_VSA_ERROR_STAGE_MEDIAN } from '../constants'; import * as types from './mutation_types'; @@ -97,7 +97,7 @@ export const fetchStageMedians = ({ .then((data) => commit(types.RECEIVE_STAGE_MEDIANS_SUCCESS, data)) .catch((error) => { commit(types.RECEIVE_STAGE_MEDIANS_ERROR, error); - createFlash({ message: I18N_VSA_ERROR_STAGE_MEDIAN }); + createAlert({ message: I18N_VSA_ERROR_STAGE_MEDIAN }); }); }; @@ -126,7 +126,7 @@ export const fetchStageCountValues = ({ .then((data) => commit(types.RECEIVE_STAGE_COUNTS_SUCCESS, data)) .catch((error) => { commit(types.RECEIVE_STAGE_COUNTS_ERROR, error); - createFlash({ + createAlert({ message: __('There was an error fetching stage total counts'), }); }); diff --git a/app/assets/javascripts/deploy_freeze/store/actions.js b/app/assets/javascripts/deploy_freeze/store/actions.js index 1ac6781a0e3..76a4eaaff3f 100644 --- a/app/assets/javascripts/deploy_freeze/store/actions.js +++ b/app/assets/javascripts/deploy_freeze/store/actions.js @@ -1,5 +1,5 @@ import Api from '~/api'; -import createFlash from '~/flash'; +import { createAlert } from '~/flash'; import { logError } from '~/lib/logger'; import { __ } from '~/locale'; import * as types from './mutation_types'; @@ -27,7 +27,7 @@ const receiveFreezePeriod = (store, request) => { dispatch('fetchFreezePeriods'); }) .catch((error) => { - createFlash({ + createAlert({ message: __('Error: Unable to create deploy freeze'), }); dispatch('receiveFreezePeriodError', error); @@ -59,7 +59,7 @@ export const deleteFreezePeriod = ({ state, commit }, { id }) => { return Api.deleteFreezePeriod(state.projectId, id) .then(() => commit(types.RECEIVE_DELETE_FREEZE_PERIOD_SUCCESS, id)) .catch((e) => { - createFlash({ + createAlert({ message: __('Error: Unable to delete deploy freeze'), }); commit(types.RECEIVE_DELETE_FREEZE_PERIOD_ERROR, id); @@ -76,7 +76,7 @@ export const fetchFreezePeriods = ({ commit, state }) => { commit(types.RECEIVE_FREEZE_PERIODS_SUCCESS, data); }) .catch(() => { - createFlash({ + createAlert({ message: __('There was an error fetching the deploy freezes.'), }); }); diff --git a/app/assets/javascripts/deploy_keys/components/app.vue b/app/assets/javascripts/deploy_keys/components/app.vue index 36d54f586f1..db5e9a954cf 100644 --- a/app/assets/javascripts/deploy_keys/components/app.vue +++ b/app/assets/javascripts/deploy_keys/components/app.vue @@ -1,6 +1,6 @@