From 56865fdf95db03cc0ccd01a88d9457ba0a050153 Mon Sep 17 00:00:00 2001 From: GitLab Bot Date: Mon, 22 Jan 2024 09:08:28 +0000 Subject: [PATCH] Add latest changes from gitlab-org/gitlab@master --- Gemfile.lock | 1 + app/assets/javascripts/awards_handler.js | 8 +-- .../components/registry/registry_search.vue | 20 +++----- app/finders/namespaces/projects_finder.rb | 8 +++ app/graphql/types/notes/note_type.rb | 2 +- app/views/award_emoji/_awards_block.html.haml | 14 ++---- app/views/users/unsubscribes/show.html.haml | 5 +- ...dency-scanning-incorrect-sbom-medatada.yml | 20 ++++++++ .../16-9-deprecate-sentry-old-versions.yml | 24 +++++++++ db/docs/ci_build_report_results.yml | 5 +- .../ci_daily_build_group_report_results.yml | 5 +- db/docs/ci_unit_tests.yml | 2 + db/docs/project_ci_feature_usages.yml | 13 ++++- doc/api/graphql/reference/index.md | 2 +- doc/api/users.md | 6 +-- doc/api/vulnerabilities.md | 2 +- doc/development/cicd/components.md | 44 ++++++++++++---- doc/update/deprecations.md | 50 +++++++++++++++++++ doc/user/clusters/agent/vulnerabilities.md | 10 ++++ gems/gitlab-housekeeper/Gemfile.lock | 2 + .../gitlab-housekeeper.gemspec | 1 + .../lib/gitlab/housekeeper/git.rb | 5 -- .../lib/gitlab/housekeeper/runner.rb | 33 ++++++++---- .../spec/gitlab/housekeeper/git_spec.rb | 5 -- .../spec/gitlab/housekeeper/runner_spec.rb | 16 +++--- .../overdue_finalize_background_migration.rb | 4 -- lib/api/users.rb | 4 +- .../integrations/webhook_events_spec.rb | 5 +- .../namespaces/projects_finder_spec.rb | 45 +++++++++++++---- spec/frontend/awards_handler_spec.js | 12 ++--- .../registry/registry_search_spec.js | 13 +++-- spec/requests/api/users_spec.rb | 33 ++++++++---- .../features/packages_shared_examples.rb | 4 +- 33 files changed, 307 insertions(+), 116 deletions(-) create mode 100644 data/deprecations/16-9-dependency-scanning-incorrect-sbom-medatada.yml create mode 100644 data/deprecations/16-9-deprecate-sentry-old-versions.yml diff --git a/Gemfile.lock b/Gemfile.lock index 6cd5f3e16f3..4c734a403d2 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -34,6 +34,7 @@ PATH specs: gitlab-housekeeper (0.1.0) activesupport + awesome_print httparty rubocop diff --git a/app/assets/javascripts/awards_handler.js b/app/assets/javascripts/awards_handler.js index de67e01d650..d587964f961 100644 --- a/app/assets/javascripts/awards_handler.js +++ b/app/assets/javascripts/awards_handler.js @@ -294,7 +294,7 @@ export class AwardsHandler { } const normalizedEmoji = this.emoji.normalizeEmojiName(emoji); - const $emojiButton = this.findEmojiIcon(votesBlock, normalizedEmoji).parent(); + const $emojiButton = this.findEmojiIcon(votesBlock, normalizedEmoji).closest('button'); this.postEmoji($emojiButton, awardUrl, normalizedEmoji, () => { this.addAwardToEmojiBar(votesBlock, normalizedEmoji, checkMutuality); @@ -312,7 +312,7 @@ export class AwardsHandler { } this.addEmojiToFrequentlyUsedList(emoji); const normalizedEmoji = this.emoji.normalizeEmojiName(emoji); - const $emojiButton = this.findEmojiIcon(votesBlock, normalizedEmoji).parent(); + const $emojiButton = this.findEmojiIcon(votesBlock, normalizedEmoji).closest('button'); if ($emojiButton.length > 0) { if (this.isActive($emojiButton)) { this.decrementCounter($emojiButton, normalizedEmoji); @@ -355,7 +355,7 @@ export class AwardsHandler { const awardUrl = this.getAwardUrl(); if (emoji === 'thumbsup' || emoji === 'thumbsdown') { const mutualVote = emoji === 'thumbsup' ? 'thumbsdown' : 'thumbsup'; - const $emojiButton = votesBlock.find(`[data-name="${mutualVote}"]`).parent(); + const $emojiButton = votesBlock.find(`[data-name="${mutualVote}"]`).closest('button'); const isAlreadyVoted = $emojiButton.hasClass('active'); if (isAlreadyVoted) { this.addAward(votesBlock, awardUrl, mutualVote, false); @@ -430,7 +430,7 @@ export class AwardsHandler { } addYouToUserList(votesBlock, emoji) { - const awardBlock = this.findEmojiIcon(votesBlock, emoji).parent(); + const awardBlock = this.findEmojiIcon(votesBlock, emoji).closest('button'); const origTitle = this.getAwardTooltip(awardBlock); let users = []; if (origTitle) { diff --git a/app/assets/javascripts/vue_shared/components/registry/registry_search.vue b/app/assets/javascripts/vue_shared/components/registry/registry_search.vue index e41cd344b3f..e42bf405784 100644 --- a/app/assets/javascripts/vue_shared/components/registry/registry_search.vue +++ b/app/assets/javascripts/vue_shared/components/registry/registry_search.vue @@ -1,5 +1,5 @@