From 8bdfdd49b38f822462ca25e1e6f4a25d40dedb85 Mon Sep 17 00:00:00 2001 From: GitLab Bot Date: Tue, 3 May 2022 18:07:53 +0000 Subject: [PATCH] Add latest changes from gitlab-org/gitlab@master --- .eslintrc.yml | 9 + .../components/alert_management_table.vue | 14 +- .../usage_trends/components/users_chart.vue | 4 +- .../boards/components/board_content.vue | 3 +- .../components/board_settings_sidebar.vue | 8 +- .../boards/components/board_top_bar.vue | 4 +- .../javascripts/captcha/captcha_modal.vue | 4 +- .../commit/pipelines/pipelines_table.vue | 1 - .../components/bubble_menus/code_block.vue | 4 +- .../components/bubble_menus/formatting.vue | 4 +- .../components/bubble_menus/link.vue | 4 +- .../components/wrappers/table_cell_base.vue | 4 +- .../design_management/pages/design/index.vue | 4 +- .../diffs/components/hidden_files_warning.vue | 2 +- .../diffs/components/image_diff_overlay.vue | 4 +- .../folder/environments_folder_view.vue | 4 +- .../ide/components/commit_sidebar/form.vue | 4 +- .../incidents/components/incidents_list.vue | 9 +- .../components/invite_members_modal.vue | 27 ++- .../components/invite_modal_base.vue | 174 +++++++++----- .../components/members_token_select.vue | 4 +- .../components/user_limit_notification.vue | 64 ++--- .../javascripts/invite_members/constants.js | 24 +- .../init_invite_members_modal.js | 9 +- .../components/jira_import_form.vue | 5 +- .../jobs/components/table/jobs_table_tabs.vue | 4 +- .../monitoring/components/dashboard.vue | 4 +- .../components/details_page/delete_modal.vue | 8 +- .../components/details_page/tags_list.vue | 4 +- .../explorer/pages/list.vue | 5 +- .../details/components/app.vue | 5 +- .../list/components/infrastructure_search.vue | 2 +- .../pages/groups/new/components/app.vue | 4 +- .../editor/ci_config_merged_preview.vue | 4 +- .../header/pipeline_editor_mini_graph.vue | 4 +- .../empty_state/ios_templates.vue | 4 +- .../pipelines_list/pipeline_stage.vue | 4 +- .../pipelines_list/pipelines_table.vue | 4 +- .../commit_box_pipeline_mini_graph.vue | 4 +- .../components/add_issuable_form.vue | 5 +- ...registration_token_reset_dropdown_item.vue | 8 +- .../javascripts/runner/runner_search_utils.js | 6 - .../serverless/components/area.vue | 2 +- .../components/edit_area.vue | 4 +- .../components/extensions/base.vue | 5 +- .../filtered_search_bar_root.vue | 2 +- .../filtered_search_bar/tokens/base_token.vue | 16 +- .../vue_shared/components/markdown/header.vue | 18 +- .../metric_images/metric_images_tab.vue | 4 +- .../metric_images/metric_images_table.vue | 8 +- .../vue_shared/components/navigation_tabs.vue | 4 +- app/assets/stylesheets/framework/filters.scss | 2 +- .../stylesheets/startup/startup-dark.scss | 2 +- .../stylesheets/startup/startup-general.scss | 2 +- .../resolvers/group_packages_resolver.rb | 9 +- .../resolvers/package_pipelines_resolver.rb | 89 ++++++- .../resolvers/project_packages_resolver.rb | 13 +- .../types/packages/package_details_type.rb | 7 - app/graphql/types/packages/package_type.rb | 6 +- .../integrations/slack_mattermost_notifier.rb | 12 +- app/models/container_repository.rb | 2 +- app/models/packages/build_info.rb | 4 +- .../cleanup_service.rb | 3 +- .../packages_graphql_pipelines_resolver.yml | 8 + ...eted_tags_count_to_container_repository.rb | 7 + db/schema_migrations/20220421180321 | 1 + db/structure.sql | 1 + doc/api/graphql/reference/index.md | 4 +- locale/gitlab.pot | 83 +++---- package.json | 2 +- .../components/invite_members_modal_spec.js | 80 ++++++- .../components/invite_modal_base_spec.js | 106 ++++++++- .../user_limit_notification_spec.js | 30 +-- .../invite_members/mock_data/member_modal.js | 2 + .../invite_members/mock_data/modal_base.js | 3 + .../details_page/details_header_spec.js | 27 +-- .../settings/components/settings_form_spec.js | 19 +- .../runner/runner_search_utils_spec.js | 12 +- .../package_pipelines_resolver_spec.rb | 220 +++++++++++++----- spec/models/container_repository_spec.rb | 5 + .../cleanup_service_spec.rb | 6 +- .../packages_resolvers_shared_examples.rb | 6 +- ...ack_mattermost_notifier_shared_examples.rb | 27 ++- ...d_project_packages_list_shared_examples.rb | 87 +++++++ yarn.lock | 8 +- 85 files changed, 1050 insertions(+), 384 deletions(-) create mode 100644 config/feature_flags/development/packages_graphql_pipelines_resolver.yml create mode 100644 db/migrate/20220421180321_add_last_cleanup_deleted_tags_count_to_container_repository.rb create mode 100644 db/schema_migrations/20220421180321 diff --git a/.eslintrc.yml b/.eslintrc.yml index 3a08547c53d..d29af93319e 100644 --- a/.eslintrc.yml +++ b/.eslintrc.yml @@ -38,6 +38,15 @@ rules: promise/always-return: off promise/no-callback-in-promise: off '@gitlab/no-global-event-off': error + '@gitlab/vue-no-new-non-primitive-in-template': + - error + - allowNames: + - 'class(es)?$' + - '^style$' + - '^to$' + - '^$' + - '^variables$' + - 'attrs?$' no-param-reassign: - error - props: true diff --git a/app/assets/javascripts/alert_management/components/alert_management_table.vue b/app/assets/javascripts/alert_management/components/alert_management_table.vue index 929f5d10956..8de793bc798 100644 --- a/app/assets/javascripts/alert_management/components/alert_management_table.vue +++ b/app/assets/javascripts/alert_management/components/alert_management_table.vue @@ -283,13 +283,17 @@ export default { diff --git a/app/assets/javascripts/boards/components/board_content.vue b/app/assets/javascripts/boards/components/board_content.vue index 1d6a71aca47..5c6d7748edd 100644 --- a/app/assets/javascripts/boards/components/board_content.vue +++ b/app/assets/javascripts/boards/components/board_content.vue @@ -85,10 +85,11 @@ export default { :list="list" :data-draggable-item-type="$options.draggableItemTypes.list" :disabled="disabled" + :class="{ 'gl-xs-display-none!': addColumnFormVisible }" /> - + diff --git a/app/assets/javascripts/boards/components/board_settings_sidebar.vue b/app/assets/javascripts/boards/components/board_settings_sidebar.vue index 24071c6f0b4..c559e4cdbd3 100644 --- a/app/assets/javascripts/boards/components/board_settings_sidebar.vue +++ b/app/assets/javascripts/boards/components/board_settings_sidebar.vue @@ -135,14 +135,14 @@ export default { :modal-id="$options.modalId" :title="$options.i18n.modalAction" size="sm" - :action-primary="{ + :action-primary="/* eslint-disable @gitlab/vue-no-new-non-primitive-in-template */ { text: $options.i18n.modalAction, attributes: [{ variant: 'danger' }], - }" - :action-secondary="{ + } /* eslint-enable @gitlab/vue-no-new-non-primitive-in-template */" + :action-secondary="/* eslint-disable @gitlab/vue-no-new-non-primitive-in-template */ { text: $options.i18n.modalCancel, attributes: [{ variant: 'default' }], - }" + } /* eslint-enable @gitlab/vue-no-new-non-primitive-in-template */" @primary="handleModalPrimary" >

{{ $options.i18n.modalCopy }}

diff --git a/app/assets/javascripts/boards/components/board_top_bar.vue b/app/assets/javascripts/boards/components/board_top_bar.vue index f90ac1e9079..54a6e3000a4 100644 --- a/app/assets/javascripts/boards/components/board_top_bar.vue +++ b/app/assets/javascripts/boards/components/board_top_bar.vue @@ -33,7 +33,7 @@ export default { class="issues-details-filters filtered-search-block gl-display-flex gl-flex-direction-column gl-lg-flex-direction-row row-content-block second-block" >
@@ -41,7 +41,7 @@ export default {
diff --git a/app/assets/javascripts/captcha/captcha_modal.vue b/app/assets/javascripts/captcha/captcha_modal.vue index b8b90b04beb..36aa098d5ff 100644 --- a/app/assets/javascripts/captcha/captcha_modal.vue +++ b/app/assets/javascripts/captcha/captcha_modal.vue @@ -107,7 +107,9 @@ export default { ref="modal" :modal-id="modalId" :title="__('Please solve the captcha')" - :action-cancel="{ text: __('Cancel') }" + :action-cancel="/* eslint-disable @gitlab/vue-no-new-non-primitive-in-template */ { + text: __('Cancel'), + } /* eslint-enable @gitlab/vue-no-new-non-primitive-in-template */" @shown="shown" @hide="hide" @hidden="$emit('hidden')" diff --git a/app/assets/javascripts/commit/pipelines/pipelines_table.vue b/app/assets/javascripts/commit/pipelines/pipelines_table.vue index b92f3d5a97b..29530ddb7a2 100644 --- a/app/assets/javascripts/commit/pipelines/pipelines_table.vue +++ b/app/assets/javascripts/commit/pipelines/pipelines_table.vue @@ -212,7 +212,6 @@ export default { diff --git a/app/assets/javascripts/environments/folder/environments_folder_view.vue b/app/assets/javascripts/environments/folder/environments_folder_view.vue index 3c608ad0ba9..adb14ce3d6f 100644 --- a/app/assets/javascripts/environments/folder/environments_folder_view.vue +++ b/app/assets/javascripts/environments/folder/environments_folder_view.vue @@ -54,7 +54,9 @@ export default { :key="`${tab.name}-${i}`" :active="tab.isActive" :title-item-class="tab.isActive ? 'gl-outline-none' : ''" - :title-link-attributes="{ 'data-testid': `environments-tab-${tab.scope}` }" + :title-link-attributes="/* eslint-disable @gitlab/vue-no-new-non-primitive-in-template */ { + 'data-testid': `environments-tab-${tab.scope}`, + } /* eslint-enable @gitlab/vue-no-new-non-primitive-in-template */" @click="onChangeTab(tab.scope)" >