Skip to content

Commit b095d90

Browse files
author
GitLab Bot
committed
Add latest changes from gitlab-org/gitlab@master
1 parent 59053c8 commit b095d90

File tree

78 files changed

+452
-678
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

78 files changed

+452
-678
lines changed

.gitlab/ci/as-if-foss.gitlab-ci.yml

-1
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,6 @@ start-as-if-foss:
9292
ENABLE_RSPEC_MIGRATION: $ENABLE_RSPEC_MIGRATION
9393
ENABLE_RSPEC_BACKGROUND_MIGRATION: $ENABLE_RSPEC_BACKGROUND_MIGRATION
9494
ENABLE_RSPEC_FRONTEND_FIXTURE: $ENABLE_RSPEC_FRONTEND_FIXTURE
95-
ENABLE_BUILD_ASSETS_IMAGE: $ENABLE_BUILD_ASSETS_IMAGE
9695
ENABLE_BUILD_QA_IMAGE: $ENABLE_BUILD_QA_IMAGE
9796
ENABLE_COMPILE_PRODUCTION_ASSETS: $ENABLE_COMPILE_PRODUCTION_ASSETS
9897
ENABLE_COMPILE_STORYBOOK: $ENABLE_COMPILE_STORYBOOK

.gitlab/ci/build-images.gitlab-ci.yml

-27
Original file line numberDiff line numberDiff line change
@@ -50,30 +50,3 @@ build-gdk-image:
5050
optional: true
5151
script:
5252
- run_with_custom_exit_code scripts/build_gdk_image
53-
54-
# NOTE: release-tools verifies the presence on this job for a commit that is
55-
# candidate to an auto-deploy package. This job name can't be changed without
56-
# changing the code in release-tools.
57-
# TODO: assets image is built in compile-production-assets job, update release-tools to not depend on this job
58-
build-assets-image:
59-
extends:
60-
- .base-image-build-buildx
61-
- .build-images:rules:build-assets-image
62-
stage: build-images
63-
needs: ["compile-production-assets"]
64-
variables:
65-
GLCI_BUILD_ASSETS_IMAGE: "true"
66-
ARCH: linux/amd64,linux/arm64
67-
script:
68-
- scripts/build_assets_image
69-
artifacts:
70-
expire_in: 7 days
71-
paths:
72-
- cached-assets-hash.txt
73-
74-
build-assets-image as-if-foss:
75-
extends:
76-
- build-assets-image
77-
- .as-if-foss
78-
- .qa:rules:test-on-omnibus-ce:follow-up
79-
needs: ["compile-production-assets as-if-foss"]

.gitlab/ci/frontend.gitlab-ci.yml

+1-2
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,7 @@ compile-production-assets:
5555
name: webpack-report
5656
expire_in: 31d
5757
paths:
58-
# These assets are used in multiple locations:
59-
# - in `build-assets-image` job to create assets image for packaging systems
58+
# These assets are used in:
6059
# - GitLab UI for integration tests: https://gitlab.com/gitlab-org/gitlab-ui/-/blob/e88493b3c855aea30bf60baee692a64606b0eb1e/.storybook/preview-head.pug#L1
6160
- cached-assets-hash.txt
6261
- public/assets/

.gitlab/ci/qa.gitlab-ci.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ e2e:test-on-omnibus-ce:
191191
- e2e:test-on-omnibus-ee
192192
- .qa:rules:test-on-omnibus-ce:follow-up
193193
needs:
194-
- build-assets-image as-if-foss
194+
- compile-production-assets as-if-foss
195195
- build-qa-image as-if-foss
196196
- e2e-test-pipeline-generate as-if-foss
197197
variables:

.gitlab/ci/review.gitlab-ci.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ start-review-app-pipeline:
7878
optional: true
7979
- job: rails-production-server-boot-puma-cng
8080
optional: true
81-
- job: build-assets-image
81+
- job: compile-production-assets
8282
artifacts: false
8383
# We do not want to have ALL global variables passed as trigger variables,
8484
# as they cannot be overridden. See this issue for more context:

.gitlab/ci/rules.gitlab-ci.yml

-22
Original file line numberDiff line numberDiff line change
@@ -1146,27 +1146,6 @@
11461146
- <<: *if-merge-request
11471147
changes: *code-qa-patterns
11481148

1149-
.build-images:rules:build-assets-image:
1150-
rules:
1151-
- <<: *if-not-canonical-namespace
1152-
when: never
1153-
- <<: *if-merge-request-labels-pipeline-expedite
1154-
when: never
1155-
- if: '$ENABLE_BUILD_ASSETS_IMAGE == "true"'
1156-
- <<: *if-tag
1157-
- <<: *if-sync-changes-on-stable-branches
1158-
- !reference [".frontend:rules:assets-shared", rules]
1159-
# Always build on stable branches to serve release-environments pipeline
1160-
# Do not refer directly to .release-environments:rules:start-release-environments-security-pipeline
1161-
# to avoid the side effect of "never" rules
1162-
- !reference [".releases:rules:canonical-dot-com-security-gitlab-stable-branch-only", rules]
1163-
1164-
.build-images:rules:build-assets-image-as-if-foss:
1165-
rules:
1166-
- <<: *if-not-ee
1167-
when: never
1168-
- !reference [".build-images:rules:build-assets-image", "rules"]
1169-
11701149
#################
11711150
# Caching rules #
11721151
#################
@@ -3144,7 +3123,6 @@
31443123
# We want to start this for any FOSS jobs we want to run. For example:
31453124
# (This is not an exhaustive list and can be outdated!)
31463125
# .build-images:rules:build-qa-image-merge-requests
3147-
# .build-images:rules:build-assets-image
31483126
# .frontend:rules:compile-production-assets
31493127
# .rails:rules:single-db
31503128
# .rails:rules:single-db-ci-connection

.gitlab/ci/setup.gitlab-ci.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@ e2e-test-pipeline-generate:
212212

213213
# This is the start of the chain of E2E jobs for CE
214214
# After playing this, it'll follow up with:
215-
# compile-production-assets as-if-foss -> build-assets-image as-if-foss --\
215+
# compile-production-assets as-if-foss --\
216216
# \-> e2e:test-on-omnibus-ce
217217
# build-qa-image as-if-foss ----------------------------------------------/
218218
e2e-test-pipeline-generate as-if-foss:

.gitlab/ci/test-on-cng/main.gitlab-ci.yml

-2
Original file line numberDiff line numberDiff line change
@@ -95,8 +95,6 @@ build-cng-env:
9595
needs:
9696
- pipeline: $PARENT_PIPELINE_ID
9797
job: clone-gitlab-repo
98-
- pipeline: $PARENT_PIPELINE_ID
99-
job: compile-production-assets
10098
variables:
10199
CNG_COMMIT_SHA: $GITLAB_CNG_MIRROR_REF
102100
CNG_ACCESS_TOKEN: $CNG_MIRROR_ACCESS_TOKEN

GITALY_SERVER_VERSION

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
c45474cf95ee58efeeebe7adf6a6892b511db5ef
1+
a588d34c7e1cc71a5038efa9745ee637b23bf8c7

app/assets/javascripts/packages_and_registries/package_registry/components/details/installation_title.vue

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ export default {
2626

2727
<template>
2828
<div class="gl-flex gl-items-center gl-justify-between">
29-
<h3 class="gl-text-lg">{{ __('Installation') }}</h3>
29+
<h2 class="gl-heading-2">{{ __('Installation') }}</h2>
3030
<div>
3131
<persisted-dropdown-selection
3232
:storage-key="storageKey"

app/assets/javascripts/packages_and_registries/package_registry/components/details/package_files.vue

+15-5
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ import {
4141
DELETE_ALL_PACKAGE_FILES_MODAL_CONTENT,
4242
DELETE_LAST_PACKAGE_FILE_MODAL_CONTENT,
4343
} from '~/packages_and_registries/package_registry/constants';
44+
import CrudComponent from '~/vue_shared/components/crud_component.vue';
4445
import getPackageFilesQuery from '~/packages_and_registries/package_registry/graphql/queries/get_package_files.query.graphql';
4546
import destroyPackageFilesMutation from '~/packages_and_registries/package_registry/graphql/mutations/destroy_package_files.mutation.graphql';
4647
@@ -61,6 +62,7 @@ export default {
6162
FileIcon,
6263
TimeAgoTooltip,
6364
FileSha,
65+
CrudComponent,
6466
},
6567
mixins: [Tracking.mixin()],
6668
trackingActions: {
@@ -171,6 +173,7 @@ export default {
171173
label: '',
172174
hide: !this.canDelete,
173175
thClass: 'gl-w-4',
176+
tdClass: 'gl-text-right',
174177
},
175178
].filter((c) => !c.hide);
176179
},
@@ -363,20 +366,26 @@ export default {
363366
</script>
364367
365368
<template>
366-
<div class="gl-pt-6">
367-
<div class="gl-flex gl-items-center gl-justify-between">
368-
<h3 class="gl-mt-5 gl-text-lg">{{ __('Assets') }}</h3>
369+
<crud-component
370+
:title="__('Assets')"
371+
:count="filesTableRows.length"
372+
icon="doc-compressed"
373+
class="gl-mt-6"
374+
>
375+
<template #actions>
369376
<gl-button
370377
v-if="!fetchPackageFilesError && canDelete"
371378
:disabled="isLoading || !areFilesSelected"
372379
category="secondary"
373380
variant="danger"
381+
size="small"
374382
data-testid="delete-selected"
375383
@click="handleFileDeleteSelected"
376384
>
377385
{{ $options.i18n.deleteSelected }}
378386
</gl-button>
379-
</div>
387+
</template>
388+
380389
<gl-alert
381390
v-if="fetchPackageFilesError"
382391
variant="danger"
@@ -394,6 +403,7 @@ export default {
394403
selectable
395404
select-mode="multi"
396405
selected-variant="primary"
406+
stacked="sm"
397407
:tbody-tr-attr="{ 'data-testid': 'file-row' }"
398408
@row-selected="updateSelectedReferences"
399409
>
@@ -531,5 +541,5 @@ export default {
531541
</template>
532542
</gl-sprintf>
533543
</gl-modal>
534-
</div>
544+
</crud-component>
535545
</template>

app/assets/javascripts/packages_and_registries/package_registry/components/details/package_history.vue

+2-2
Original file line numberDiff line numberDiff line change
@@ -129,8 +129,8 @@ export default {
129129
</script>
130130
131131
<template>
132-
<div class="issuable-discussion">
133-
<h3 class="gl-text-lg" data-testid="title">{{ __('History') }}</h3>
132+
<div class="issuable-discussion gl-mt-3">
133+
<h2 class="gl-heading-2" data-testid="title">{{ __('History') }}</h2>
134134
<gl-alert
135135
v-if="fetchPackagePipelinesError"
136136
variant="danger"

app/assets/javascripts/packages_and_registries/settings/project/components/container_expiration_policy.vue

+57-64
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<script>
2-
import { GlAlert, GlSprintf, GlLink, GlCard, GlButton, GlSkeletonLoader } from '@gitlab/ui';
2+
import { GlAlert, GlSprintf, GlLink, GlButton } from '@gitlab/ui';
33
import {
44
CONTAINER_CLEANUP_POLICY_TITLE,
55
CONTAINER_CLEANUP_POLICY_DESCRIPTION,
@@ -13,16 +13,16 @@ import {
1313
} from '~/packages_and_registries/settings/project/constants';
1414
import expirationPolicyEnabledQuery from '~/packages_and_registries/settings/project/graphql/queries/get_expiration_policy_enabled.query.graphql';
1515
import ContainerExpirationPolicyEnabledText from '~/packages_and_registries/settings/project/components/container_expiration_policy_enabled_text.vue';
16+
import CrudComponent from '~/vue_shared/components/crud_component.vue';
1617
1718
export default {
1819
components: {
1920
ContainerExpirationPolicyEnabledText,
2021
GlAlert,
2122
GlSprintf,
2223
GlLink,
23-
GlCard,
2424
GlButton,
25-
GlSkeletonLoader,
25+
CrudComponent,
2626
},
2727
inject: [
2828
'projectPath',
@@ -90,70 +90,63 @@ export default {
9090
</script>
9191
9292
<template>
93-
<gl-card data-testid="container-expiration-policy-project-settings">
94-
<template #header>
95-
<header class="gl-flex gl-flex-wrap gl-justify-between">
96-
<h2
97-
class="gl-m-0 gl-inline-flex gl-items-center gl-text-base gl-font-bold gl-leading-normal"
98-
>
99-
{{ $options.i18n.CONTAINER_CLEANUP_POLICY_TITLE }}
100-
</h2>
101-
<gl-button
102-
v-if="isEnabled"
103-
data-testid="rules-button"
104-
:href="cleanupSettingsPath"
105-
:loading="isLoading"
106-
category="secondary"
107-
size="small"
108-
variant="confirm"
109-
>
110-
{{ cleanupRulesButtonText }}
111-
</gl-button>
112-
</header>
93+
<crud-component
94+
:title="$options.i18n.CONTAINER_CLEANUP_POLICY_TITLE"
95+
:is-loading="isLoading"
96+
data-testid="container-expiration-policy-project-settings"
97+
>
98+
<template #actions>
99+
<gl-button
100+
v-if="isEnabled"
101+
data-testid="rules-button"
102+
:href="cleanupSettingsPath"
103+
:loading="isLoading"
104+
category="secondary"
105+
size="small"
106+
class="gl-self-start"
107+
>
108+
{{ cleanupRulesButtonText }}
109+
</gl-button>
113110
</template>
114-
<template #default>
115-
<p class="gl-text-subtle" data-testid="description">
116-
<gl-sprintf :message="$options.i18n.CONTAINER_CLEANUP_POLICY_DESCRIPTION">
111+
<template #description>
112+
<gl-sprintf :message="$options.i18n.CONTAINER_CLEANUP_POLICY_DESCRIPTION">
113+
<template #link="{ content }">
114+
<gl-link :href="helpPagePath">{{ content }}</gl-link>
115+
</template>
116+
</gl-sprintf>
117+
</template>
118+
119+
<template v-if="isEnabled">
120+
<container-expiration-policy-enabled-text
121+
v-if="isCleanupEnabled"
122+
:next-run-at="containerTagsExpirationPolicy.nextRunAt"
123+
/>
124+
<p v-else data-testid="empty-cleanup-policy" class="gl-mb-0 gl-text-subtle">
125+
{{
126+
s__(
127+
'ContainerRegistry|Registry cleanup disabled. Either no cleanup policies are enabled, or this project has no container images.',
128+
)
129+
}}
130+
</p>
131+
</template>
132+
<template v-else>
133+
<gl-alert
134+
v-if="showDisabledFormMessage"
135+
:dismissible="false"
136+
:title="$options.i18n.UNAVAILABLE_FEATURE_TITLE"
137+
variant="tip"
138+
>
139+
{{ $options.i18n.UNAVAILABLE_FEATURE_INTRO_TEXT }}
140+
141+
<gl-sprintf :message="unavailableFeatureMessage">
117142
<template #link="{ content }">
118-
<gl-link :href="helpPagePath">{{ content }}</gl-link>
143+
<gl-link :href="adminSettingsPath">{{ content }}</gl-link>
119144
</template>
120145
</gl-sprintf>
121-
</p>
122-
<div v-if="isLoading" class="gl-my-3">
123-
<gl-skeleton-loader :lines="1" />
124-
</div>
125-
<template v-else-if="isEnabled">
126-
<container-expiration-policy-enabled-text
127-
v-if="isCleanupEnabled"
128-
:next-run-at="containerTagsExpirationPolicy.nextRunAt"
129-
/>
130-
<p v-else data-testid="empty-cleanup-policy" class="gl-mb-0 gl-text-subtle">
131-
{{
132-
s__(
133-
'ContainerRegistry|Registry cleanup disabled. Either no cleanup policies are enabled, or this project has no container images.',
134-
)
135-
}}
136-
</p>
137-
</template>
138-
<template v-else>
139-
<gl-alert
140-
v-if="showDisabledFormMessage"
141-
:dismissible="false"
142-
:title="$options.i18n.UNAVAILABLE_FEATURE_TITLE"
143-
variant="tip"
144-
>
145-
{{ $options.i18n.UNAVAILABLE_FEATURE_INTRO_TEXT }}
146-
147-
<gl-sprintf :message="unavailableFeatureMessage">
148-
<template #link="{ content }">
149-
<gl-link :href="adminSettingsPath">{{ content }}</gl-link>
150-
</template>
151-
</gl-sprintf>
152-
</gl-alert>
153-
<gl-alert v-else-if="fetchSettingsError" variant="warning" :dismissible="false">
154-
<gl-sprintf :message="$options.i18n.FETCH_SETTINGS_ERROR_MESSAGE" />
155-
</gl-alert>
156-
</template>
146+
</gl-alert>
147+
<gl-alert v-else-if="fetchSettingsError" variant="warning" :dismissible="false">
148+
<gl-sprintf :message="$options.i18n.FETCH_SETTINGS_ERROR_MESSAGE" />
149+
</gl-alert>
157150
</template>
158-
</gl-card>
151+
</crud-component>
159152
</template>

0 commit comments

Comments
 (0)