From a58667ab4b4fc4b0d1e47e95d91c27ccadd0acd3 Mon Sep 17 00:00:00 2001 From: GitLab Bot Date: Tue, 14 Dec 2021 09:10:42 +0000 Subject: [PATCH] Add latest changes from gitlab-org/gitlab@master --- GITALY_SERVER_VERSION | 2 +- app/assets/javascripts/labels/index.js | 8 +- .../list/components/issuable_item.vue | 1 - app/views/admin/labels/index.html.haml | 24 +- doc/api/api_resources.md | 280 +++++++++--------- .../testing_guide/testing_levels.md | 4 +- doc/user/group/index.md | 5 +- doc/user/packages/package_registry/index.md | 2 +- locale/gitlab.pot | 12 +- .../container_registry_omnibus_spec.rb | 137 ++++----- spec/features/admin/admin_labels_spec.rb | 2 +- 11 files changed, 251 insertions(+), 226 deletions(-) diff --git a/GITALY_SERVER_VERSION b/GITALY_SERVER_VERSION index 8f1b75bbb09..57be36455ed 100644 --- a/GITALY_SERVER_VERSION +++ b/GITALY_SERVER_VERSION @@ -1 +1 @@ -bba495c8c929b75f8cbcdc6d07d07431736aa8d1 +125f0fc0e49db4dd46f2e905f34178ce880dd79e diff --git a/app/assets/javascripts/labels/index.js b/app/assets/javascripts/labels/index.js index 15706435e25..22a9c0a89c0 100644 --- a/app/assets/javascripts/labels/index.js +++ b/app/assets/javascripts/labels/index.js @@ -113,8 +113,9 @@ export function initLabelIndex() { } export function initAdminLabels() { - const pagination = document.querySelector('.labels .gl-pagination'); - const emptyState = document.querySelector('.labels .nothing-here-block.hidden'); + const labelsContainer = document.querySelector('.js-admin-labels-container'); + const pagination = labelsContainer?.querySelector('.gl-pagination'); + const emptyState = document.querySelector('.js-admin-labels-empty-state'); function removeLabelSuccessCallback() { this.closest('li').classList.add('gl-display-none!'); @@ -125,7 +126,8 @@ export function initAdminLabels() { // display the empty state if there are no more labels if (labelsCount < 1 && !pagination && emptyState) { - emptyState.classList.remove('hidden'); + emptyState.classList.remove('gl-display-none'); + labelsContainer.classList.add('gl-display-none'); } } diff --git a/app/assets/javascripts/vue_shared/issuable/list/components/issuable_item.vue b/app/assets/javascripts/vue_shared/issuable/list/components/issuable_item.vue index de22afe4a30..efff3aa618d 100644 --- a/app/assets/javascripts/vue_shared/issuable/list/components/issuable_item.vue +++ b/app/assets/javascripts/vue_shared/issuable/list/components/issuable_item.vue @@ -166,7 +166,6 @@ export default { class="issue gl-display-flex! gl-px-5!" :class="{ closed: issuable.closedAt, today: createdInPastDay }" :data-labels="labelIdsString" - data-qa-selector="issuable_item_container" :data-qa-issue-id="issuableId" >