From e7f151b0c0e1da4112581b1a54fab1949c545ce4 Mon Sep 17 00:00:00 2001 From: GitLab Bot Date: Tue, 6 Feb 2024 18:08:07 +0000 Subject: [PATCH] Add latest changes from gitlab-org/gitlab@master --- .gitlab/ci/setup.gitlab-ci.yml | 1 + .../boards/components/board_cut_line.vue | 19 +++++ .../boards/components/board_list.vue | 46 +++++++++- .../boards/components/board_list_header.vue | 4 + .../boards/components/item_count.vue | 2 +- .../design_notes/design_reply_form.vue | 85 ++++++++----------- .../design_management/pages/design/index.vue | 3 - .../releases/components/app_edit_new.vue | 41 +++++---- .../stylesheets/page_bundles/boards.scss | 9 ++ .../cascading_namespace_setting_attribute.rb | 16 ++-- .../integrations/slack_slash_commands.rb | 4 +- app/models/namespace_setting.rb | 4 +- .../development/oidc_issuer_url.yml | 8 -- ...6-9-deprecate-terraform-module-fmt-job.yml | 27 ++++++ doc/administration/auth/index.md | 4 +- doc/administration/auth/smartcard.md | 47 +++++----- .../ci_pipeline_components/index.md | 2 +- doc/development/code_review.md | 5 +- doc/development/event_store.md | 23 ++++- doc/subscriptions/gitlab_dedicated/index.md | 2 +- doc/update/deprecations.md | 28 ++++++ doc/user/group/saml_sso/group_sync.md | 2 +- doc/user/project/issue_board.md | 4 +- .../merge_when_pipeline_succeeds.md | 62 ++++++++++---- lib/api/integrations.rb | 16 +--- lib/gitlab/ci/jwt_v2.rb | 2 +- locale/gitlab.pot | 6 ++ spec/frontend/boards/board_list_spec.js | 37 +++++--- .../boards/components/board_cut_line_spec.js | 27 ++++++ .../boards/components/item_count_spec.js | 26 +++--- .../design_notes/design_reply_form_spec.js | 43 ++++------ .../pages/design/index_spec.js | 20 ----- .../releases/components/app_edit_new_spec.js | 12 +-- spec/helpers/namespaces_helper_spec.rb | 8 +- .../api/helpers/integrations_helpers_spec.rb | 44 ++++++++++ spec/lib/gitlab/ci/jwt_v2_spec.rb | 30 ++----- spec/models/namespace_setting_spec.rb | 8 +- 37 files changed, 458 insertions(+), 269 deletions(-) create mode 100644 app/assets/javascripts/boards/components/board_cut_line.vue delete mode 100644 config/feature_flags/development/oidc_issuer_url.yml create mode 100644 data/deprecations/16-9-deprecate-terraform-module-fmt-job.yml create mode 100644 spec/frontend/boards/components/board_cut_line_spec.js create mode 100644 spec/lib/api/helpers/integrations_helpers_spec.rb diff --git a/.gitlab/ci/setup.gitlab-ci.yml b/.gitlab/ci/setup.gitlab-ci.yml index 47bc73a9558..dca23b96e1e 100644 --- a/.gitlab/ci/setup.gitlab-ci.yml +++ b/.gitlab/ci/setup.gitlab-ci.yml @@ -204,6 +204,7 @@ trigger-omnibus-env: SECURITY_SOURCES=$([[ ! "$CI_PROJECT_NAMESPACE" =~ ^gitlab-org\/security ]] || echo "true") echo "SECURITY_SOURCES=${SECURITY_SOURCES:-false}" > $BUILD_ENV echo "OMNIBUS_GITLAB_CACHE_UPDATE=${OMNIBUS_GITLAB_CACHE_UPDATE:-false}" >> $BUILD_ENV + echo "OMNIBUS_GITLAB_CACHE_EDITION=${OMNIBUS_GITLAB_CACHE_EDITION}" >> $BUILD_ENV for version_file in *_VERSION; do echo "$version_file=$(cat $version_file)" >> $BUILD_ENV; done echo "OMNIBUS_GITLAB_BUILD_ON_ALL_OS=${OMNIBUS_GITLAB_BUILD_ON_ALL_OS:-false}" >> $BUILD_ENV ruby -e 'puts "FULL_RUBY_VERSION=#{RUBY_VERSION}"' >> $BUILD_ENV diff --git a/app/assets/javascripts/boards/components/board_cut_line.vue b/app/assets/javascripts/boards/components/board_cut_line.vue new file mode 100644 index 00000000000..f0ab2288fee --- /dev/null +++ b/app/assets/javascripts/boards/components/board_cut_line.vue @@ -0,0 +1,19 @@ + + + diff --git a/app/assets/javascripts/boards/components/board_list.vue b/app/assets/javascripts/boards/components/board_list.vue index 09c0511a0a7..9a39008d440 100644 --- a/app/assets/javascripts/boards/components/board_list.vue +++ b/app/assets/javascripts/boards/components/board_list.vue @@ -29,6 +29,7 @@ import { shouldCloneCard, moveItemVariables } from '../boards_util'; import eventHub from '../eventhub'; import BoardCard from './board_card.vue'; import BoardNewIssue from './board_new_issue.vue'; +import BoardCutLine from './board_cut_line.vue'; export default { draggableItemTypes: DraggableItemTypes, @@ -42,6 +43,7 @@ export default { components: { BoardCard, BoardNewIssue, + BoardCutLine, BoardNewEpic: () => import('ee_component/boards/components/board_new_epic.vue'), GlLoadingIcon, GlIntersectionObserver, @@ -154,6 +156,16 @@ export default { boardListItems() { return this.currentList?.[`${this.issuableType}s`].nodes || []; }, + beforeCutLine() { + return this.boardItemsSizeExceedsMax + ? this.boardListItems.slice(0, this.list.maxIssueCount) + : this.boardListItems; + }, + afterCutLine() { + return this.boardItemsSizeExceedsMax + ? this.boardListItems.slice(this.list.maxIssueCount) + : []; + }, listQueryVariables() { return { fullPath: this.fullPath, @@ -174,6 +186,11 @@ export default { issuableType: this.isEpicBoard ? 'epics' : 'issues', }); }, + wipLimitText() { + return sprintf(__('Work in progress limit: %{wipLimit}'), { + wipLimit: this.list.maxIssueCount, + }); + }, toggleFormEventPrefix() { return this.isEpicBoard ? toggleFormEventPrefix.epic : toggleFormEventPrefix.issue; }, @@ -653,7 +670,7 @@ export default { :data-board="list.id" :data-board-type="list.listType" :class="{ - 'gl-bg-red-100 gl-rounded-bottom-left-base gl-rounded-bottom-right-base': boardItemsSizeExceedsMax, + 'gl-bg-red-50 gl-rounded-bottom-left-base gl-rounded-bottom-right-base': boardItemsSizeExceedsMax, 'gl-overflow-hidden': disableScrollingWhenMutationInProgress, 'gl-overflow-y-auto': !disableScrollingWhenMutationInProgress, }" @@ -664,7 +681,32 @@ export default { @end="handleDragOnEnd" > + + + + + 0 && this.itemsCount > this.list.maxIssueCount; + }, listAssignee() { return this.list?.assignee?.username || ''; }, @@ -333,6 +336,7 @@ export default { 'gl-h-full': list.collapsed, 'gl-bg-gray-50': isSwimlanesHeader, 'gl-border-t-solid gl-border-4 gl-rounded-top-left-base gl-rounded-top-right-base': isLabelList, + 'gl-bg-red-50 gl-rounded-top-left-base gl-rounded-top-right-base': boardItemsSizeExceedsMax, }" :style="headerStyle" class="board-header gl-relative" diff --git a/app/assets/javascripts/boards/components/item_count.vue b/app/assets/javascripts/boards/components/item_count.vue index dab82abb646..e88ae040d1c 100644 --- a/app/assets/javascripts/boards/components/item_count.vue +++ b/app/assets/javascripts/boards/components/item_count.vue @@ -26,7 +26,7 @@ export default {