From 1bee0901f0b23d885cdeed263a930cd11e23a4ee Mon Sep 17 00:00:00 2001 From: GitLab Bot Date: Thu, 9 Nov 2023 03:12:10 +0000 Subject: [PATCH] Add latest changes from gitlab-org/gitlab@master --- .../shared/work_item_link_child_contents.vue | 10 +- .../work_item_children_wrapper.vue | 6 + .../work_item_links/work_item_link_child.vue | 7 + .../work_item_links/work_item_links.vue | 20 +- .../work_item_links/work_item_tree.vue | 16 + .../work_item_tree_children.vue | 6 + .../work_item_relationship_list.vue | 6 + .../work_item_relationships.vue | 23 +- .../javascripts/work_items/constants.js | 1 + app/models/application_setting.rb | 2 +- .../16-6-maven-group-permissions.yml | 15 + db/docs/fork_network_members.yml | 2 +- db/docs/fork_networks.yml | 2 +- db/docs/labels.yml | 2 +- db/docs/lfs_file_locks.yml | 2 +- db/docs/zoekt_nodes.yml | 10 + db/migrate/20231102142553_add_zoekt_nodes.rb | 19 + ...554_migrate_zoekt_shards_to_zoekt_nodes.rb | 34 + ...add_zoekt_node_id_to_indexed_namespaces.rb | 13 + ..._node_foreign_key_to_indexed_namespaces.rb | 17 + ...ill_zoekt_node_id_on_indexed_namespaces.rb | 19 + ...guest_and_below_to_application_settings.rb | 9 + ...null_constraint_from_indexed_namespaces.rb | 14 + db/schema_migrations/20231102142553 | 1 + db/schema_migrations/20231102142554 | 1 + db/schema_migrations/20231102142555 | 1 + db/schema_migrations/20231102142557 | 1 + db/schema_migrations/20231102142565 | 1 + db/schema_migrations/20231103223224 | 1 + db/schema_migrations/20231108093031 | 1 + db/structure.sql | 48 +- doc/administration/pages/index.md | 4 +- doc/api/import.md | 12 - doc/ci/cloud_services/azure/index.md | 21 + doc/ci/secrets/azure_key_vault.md | 66 +- doc/development/github_importer.md | 16 - doc/install/aws/eks_clusters_aws.md | 49 +- doc/install/aws/gitlab_hybrid_on_aws.md | 380 +------ doc/install/aws/gitlab_sre_for_aws.md | 98 +- doc/install/aws/index.md | 936 +++++++++++++++--- doc/install/aws/manual_install_aws.md | 859 +--------------- doc/solutions/cloud/aws/gitaly_sre_for_aws.md | 91 ++ .../cloud/aws/gitlab_aws_integration.md | 15 +- .../cloud/aws/gitlab_instance_on_aws.md | 55 + .../cloud/aws/gitlab_single_box_on_aws.md | 51 + doc/solutions/cloud/aws/index.md | 74 +- doc/solutions/index.md | 4 + doc/update/deprecations.md | 20 + .../compliance/compliance_center/index.md | 6 +- .../troubleshoot_container_registry.md | 21 + locale/gitlab.pot | 3 + package.json | 2 +- .../work_item_link_child_contents_spec.js | 47 +- .../work_item_link_child_spec.js | 1 + .../work_item_links/work_item_links_spec.js | 19 + .../work_item_links/work_item_tree_spec.js | 19 + .../work_item_relationship_list_spec.js.snap | 1 + .../work_item_relationships_spec.js | 33 +- .../database/no_cross_db_foreign_keys_spec.rb | 1 + ...igrate_zoekt_shards_to_zoekt_nodes_spec.rb | 44 + ...oekt_node_id_on_indexed_namespaces_spec.rb | 79 ++ spec/models/application_setting_spec.rb | 2 + .../features/work_items_shared_examples.rb | 9 +- yarn.lock | 8 +- 64 files changed, 1787 insertions(+), 1569 deletions(-) create mode 100644 data/deprecations/16-6-maven-group-permissions.yml create mode 100644 db/docs/zoekt_nodes.yml create mode 100644 db/migrate/20231102142553_add_zoekt_nodes.rb create mode 100644 db/migrate/20231102142554_migrate_zoekt_shards_to_zoekt_nodes.rb create mode 100644 db/migrate/20231102142555_add_zoekt_node_id_to_indexed_namespaces.rb create mode 100644 db/migrate/20231102142565_add_zoekt_node_foreign_key_to_indexed_namespaces.rb create mode 100644 db/migrate/20231103223224_backfill_zoekt_node_id_on_indexed_namespaces.rb create mode 100644 db/migrate/20231108093031_add_allow_project_creation_for_guest_and_below_to_application_settings.rb create mode 100644 db/post_migrate/20231102142557_remove_zoekt_shard_null_constraint_from_indexed_namespaces.rb create mode 100644 db/schema_migrations/20231102142553 create mode 100644 db/schema_migrations/20231102142554 create mode 100644 db/schema_migrations/20231102142555 create mode 100644 db/schema_migrations/20231102142557 create mode 100644 db/schema_migrations/20231102142565 create mode 100644 db/schema_migrations/20231103223224 create mode 100644 db/schema_migrations/20231108093031 create mode 100644 doc/solutions/cloud/aws/gitaly_sre_for_aws.md create mode 100644 doc/solutions/cloud/aws/gitlab_instance_on_aws.md create mode 100644 doc/solutions/cloud/aws/gitlab_single_box_on_aws.md create mode 100644 spec/migrations/20231102142554_migrate_zoekt_shards_to_zoekt_nodes_spec.rb create mode 100644 spec/migrations/20231103223224_backfill_zoekt_node_id_on_indexed_namespaces_spec.rb diff --git a/app/assets/javascripts/work_items/components/shared/work_item_link_child_contents.vue b/app/assets/javascripts/work_items/components/shared/work_item_link_child_contents.vue index dd4461a280e..cbe7de4abcd 100644 --- a/app/assets/javascripts/work_items/components/shared/work_item_link_child_contents.vue +++ b/app/assets/javascripts/work_items/components/shared/work_item_link_child_contents.vue @@ -52,6 +52,11 @@ export default { required: false, default: false, }, + showLabels: { + type: Boolean, + required: false, + default: true, + }, }, data() { return { @@ -114,6 +119,9 @@ export default { showRemove() { return this.canUpdate && this.isFocused; }, + displayLabels() { + return this.showLabels && this.labels.length; + }, }, methods: { showScopedLabel(label) { @@ -180,7 +188,7 @@ export default { class="gl-ml-6 ml-xl-0" /> -
+
@@ -241,6 +247,7 @@ export default { :work-item-id="issuableGid" :work-item-type="workItemType" :children="children" + :show-labels="showLabels" @removeChild="removeChild" @click="$emit('click', $event)" /> diff --git a/app/assets/javascripts/work_items/components/work_item_links/work_item_links.vue b/app/assets/javascripts/work_items/components/work_item_links/work_item_links.vue index 2ec3f8355f5..dd0a26c0b9c 100644 --- a/app/assets/javascripts/work_items/components/work_item_links/work_item_links.vue +++ b/app/assets/javascripts/work_items/components/work_item_links/work_item_links.vue @@ -5,6 +5,7 @@ import { GlIcon, GlLoadingIcon, GlTooltipDirective, + GlToggle, } from '@gitlab/ui'; import { isEmpty } from 'lodash'; import { s__ } from '~/locale'; @@ -15,7 +16,12 @@ import { isMetaKey } from '~/lib/utils/common_utils'; import { getParameterByName, setUrlParams, updateHistory } from '~/lib/utils/url_utility'; import AbuseCategorySelector from '~/abuse_reports/components/abuse_category_selector.vue'; -import { FORM_TYPES, WIDGET_ICONS, WORK_ITEM_STATUS_TEXT } from '../../constants'; +import { + FORM_TYPES, + WIDGET_ICONS, + WORK_ITEM_STATUS_TEXT, + I18N_WORK_ITEM_SHOW_LABELS, +} from '../../constants'; import { findHierarchyWidgetChildren } from '../../utils'; import { removeHierarchyChild } from '../../graphql/cache_utils'; import groupWorkItemByIidQuery from '../../graphql/group_work_item_by_iid.query.graphql'; @@ -36,6 +42,7 @@ export default { WorkItemDetailModal, AbuseCategorySelector, WorkItemChildrenWrapper, + GlToggle, }, directives: { GlTooltip: GlTooltipDirective, @@ -104,6 +111,7 @@ export default { reportedUserId: 0, reportedUrl: '', widgetName: 'tasks', + showLabels: true, }; }, computed: { @@ -201,6 +209,7 @@ export default { addChildButtonLabel: s__('WorkItem|Add'), addChildOptionLabel: s__('WorkItem|Existing task'), createChildOptionLabel: s__('WorkItem|New task'), + showLabelsLabel: I18N_WORK_ITEM_SHOW_LABELS, }, WIDGET_TYPE_TASK_ICON: WIDGET_ICONS.TASK, WORK_ITEM_STATUS_TEXT, @@ -224,6 +233,14 @@ export default {