Skip to content

Commit f72996e

Browse files
author
GitLab Bot
committed
Add latest changes from gitlab-org/gitlab@master
1 parent f9eb480 commit f72996e

File tree

52 files changed

+638
-164
lines changed

Some content is hidden

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

52 files changed

+638
-164
lines changed

app/assets/javascripts/ml/model_registry/apps/show_ml_model_version.vue

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,7 @@ export default {
260260
<template #metadata-versions-count>
261261
<div
262262
v-if="showCreatedDetail"
263-
class="detail-page-header-body mb-3 gl-flex-wrap gl-gap-x-2"
263+
class="detail-page-header-body gl-flex-wrap gl-gap-x-2"
264264
data-testid="metadata"
265265
>
266266
<gl-icon name="machine-learning" />
@@ -300,7 +300,7 @@ export default {
300300
<div class="gl-grid gl-gap-3 md:gl-grid-cols-4">
301301
<div class="md:gl-col-span-3 md:gl-pr-8">
302302
<load-or-error-or-show :is-loading="isLoading" :error-message="errorMessage">
303-
<gl-tabs class="gl-mt-4" :value="tabIndex">
303+
<gl-tabs :value="tabIndex">
304304
<gl-tab
305305
:title="$options.i18n.tabs.modelVersionCard"
306306
@click="goTo($options.ROUTE_DETAILS)"
@@ -315,12 +315,13 @@ export default {
315315
:title="$options.i18n.tabs.performance"
316316
@click="goTo($options.ROUTE_PERFORMANCE)"
317317
/>
318+
319+
<router-view :model-version="modelVersion" import-path allow-artifact-import />
318320
</gl-tabs>
319-
<router-view :model-version="modelVersion" import-path allow-artifact-import />
320321
</load-or-error-or-show>
321322
</div>
322323
323-
<div class="gl-pt-6 md:gl-col-span-1">
324+
<div class="gl-pt-4 md:gl-col-span-1">
324325
<div class="gl-text-lg gl-font-bold">{{ $options.i18n.authorTitle }}</div>
325326
<div class="gl-mt-3 gl-text-subtle" data-testid="sidebar-author">
326327
<gl-link

app/assets/javascripts/ml/model_registry/components/import_artifact_zone.vue

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,7 @@ export default {
231231
};
232232
</script>
233233
<template>
234-
<div class="gl-p-5">
234+
<div>
235235
<gl-form-group
236236
label-for="subfolderId"
237237
data-testid="subfolderGroup"
@@ -282,20 +282,20 @@ export default {
282282
<div
283283
v-if="upload.loading()"
284284
:data-testid="`formatted-progress-${index}`"
285-
class="col-md-2 text-right"
285+
class="col-md-2 gl-text-right"
286286
>
287287
{{ upload.formattedProgressLoaded() }}
288288
</div>
289289
<div v-else :data-testid="`formatted-file-size-${index}`" class="col-md-2 text-right">
290290
{{ upload.formattedFileSize }}
291291
</div>
292-
<div class="col-md-2 text-right">
292+
<div class="col-md-2 gl-text-right">
293293
<gl-button
294294
v-if="upload.isCancelable()"
295295
:data-testid="`cancel-button-${index}`"
296296
category="secondary"
297297
variant="danger"
298-
class="mb-2"
298+
class="gl-mb-1"
299299
@click="upload.cancelUpload"
300300
>{{ $options.i18n.cancelButtonText }}
301301
</gl-button>
@@ -304,7 +304,7 @@ export default {
304304
<gl-icon v-if="upload.canceled()" name="status_canceled" variant="warning" />
305305
</div>
306306
</div>
307-
<p v-if="errors[index]" :data-testid="`fb-${index}`" class="row m-0 p-0 gl-text-subtle">
307+
<p v-if="errors[index]" :data-testid="`fb-${index}`" class="row m-0 p-0 gl-text-danger">
308308
{{ errors[index] }}
309309
</p>
310310
</div>

app/assets/javascripts/ml/model_registry/components/model_version_artifacts.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ export default {
4545
:package-type="packageType"
4646
>
4747
<template v-if="showImportArtifactZone" #upload="{ refetch }">
48-
<h3 data-testid="uploadHeader" class="gl-text-lg">
48+
<h3 data-testid="uploadHeader" class="gl-my-2 gl-text-base">
4949
{{ __('Upload artifacts') }}
5050
</h3>
5151
<import-artifact-zone :path="importPath" @change="refetch" />

app/assets/javascripts/ml/model_registry/components/model_version_detail.vue

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ export default {
5858
<div class="issue-details issuable-details">
5959
<div
6060
v-if="modelVersion.descriptionHtml"
61-
class="detail-page-description js-detail-page-description gl-pt-4"
61+
class="detail-page-description js-detail-page-description"
6262
>
6363
<issuable-description
6464
data-testid="description"
@@ -67,6 +67,7 @@ export default {
6767
:can-edit="canEditRequirement"
6868
:data-update-url="dataUpdateUrl"
6969
:task-list-update-path="taskListUpdatePath"
70+
class="gl-leading-20"
7071
/>
7172
</div>
7273
<div v-else class="gl-text-subtle" data-testid="emptyDescriptionState">

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

Lines changed: 14 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -370,7 +370,7 @@ export default {
370370
:title="__('Assets')"
371371
:count="filesTableRows.length"
372372
icon="doc-compressed"
373-
class="gl-mt-6"
373+
class="gl-mt-5"
374374
>
375375
<template #actions>
376376
<gl-button
@@ -501,15 +501,19 @@ export default {
501501
</div>
502502
</template>
503503
</gl-table>
504-
<div class="gl-flex gl-justify-center">
505-
<gl-keyset-pagination
506-
:disabled="isLoading"
507-
v-bind="pageInfo"
508-
class="gl-mt-3"
509-
@prev="fetchPreviousFilesPage"
510-
@next="fetchNextFilesPage"
511-
/>
512-
</div>
504+
</template>
505+
506+
<template #pagination>
507+
<gl-keyset-pagination
508+
:disabled="isLoading"
509+
v-bind="pageInfo"
510+
class="gl-mt-3"
511+
@prev="fetchPreviousFilesPage"
512+
@next="fetchNextFilesPage"
513+
/>
514+
</template>
515+
516+
<template #footer>
513517
<slot name="upload" :refetch="refetchPackageFiles"></slot>
514518
</template>
515519

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ export default {
128128
this.protectionRulesQueryPageInfo.hasNextPage
129129
);
130130
},
131-
showTopLevelLoadingIcon() {
131+
showTopLevelLoading() {
132132
return this.isLoadingprotectionRules && !this.containsTableItems;
133133
},
134134
containerRepositoryMinimumAccessLevelOptions() {
@@ -293,7 +293,7 @@ export default {
293293
ref="containerProtectionCrud"
294294
:title="$options.i18n.settingBlockTitle"
295295
:description="$options.i18n.settingBlockDescription"
296-
:is-loading="showTopLevelLoadingIcon"
296+
:is-loading="showTopLevelLoading"
297297
:toggle-text="s__('ContainerRegistry|Add protection rule')"
298298
>
299299
<template #form>

app/models/application_setting_implementation.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -320,7 +320,7 @@ def defaults # rubocop:disable Metrics/AbcSize
320320
code_suggestions_api_rate_limit: 60,
321321
require_personal_access_token_expiry: true,
322322
pages_extra_deployments_default_expiry_seconds: 86400,
323-
scan_execution_policies_action_limit: 10,
323+
scan_execution_policies_action_limit: 0,
324324
scan_execution_policies_schedule_limit: 0,
325325
seat_control: 0,
326326
show_migrate_from_jenkins_banner: true,

app/models/concerns/namespaces/adjourned_deletable.rb

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,6 @@ def self_or_ancestor_marked_for_deletion
3030
ancestors(hierarchy_order: :asc).joins(:deletion_schedule).first
3131
end
3232

33-
def permanent_deletion_date(date)
34-
date + deletion_adjourned_period.days
35-
end
36-
3733
def deletion_adjourned_period
3834
::Gitlab::CurrentSettings.deletion_adjourned_period
3935
end
Lines changed: 84 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,84 @@
1+
{
2+
"$schema": "http://json-schema.org/draft-07/schema#",
3+
"description": "Ai Conversation Message Extras",
4+
"type": "object",
5+
"required": [],
6+
"properties": {
7+
"additional_context": {
8+
"type": "array",
9+
"items": {
10+
"type": "object",
11+
"properties": {
12+
"category": {
13+
"type": "string"
14+
},
15+
"content": {
16+
"type": "string"
17+
},
18+
"id": {
19+
"type": "string"
20+
},
21+
"metadata": {
22+
"type": "object"
23+
}
24+
},
25+
"additionalProperties": true
26+
}
27+
},
28+
"agent_scratchpad": {
29+
"type": "array",
30+
"items": {
31+
"type": "object",
32+
"properties": {
33+
"action": {
34+
"type": "object",
35+
"properties": {
36+
"thought": {
37+
"type": "string"
38+
},
39+
"tool": {
40+
"type": "string"
41+
},
42+
"tool_input": {
43+
"type": "string"
44+
}
45+
},
46+
"additionalProperties": true
47+
},
48+
"observation": {
49+
"type": "string"
50+
}
51+
},
52+
"additionalProperties": true
53+
}
54+
},
55+
"has_feedback": {
56+
"type": "boolean"
57+
},
58+
"sources": {
59+
"type": "array",
60+
"items": {
61+
"type": "object",
62+
"properties": {
63+
"title": {
64+
"type": "string"
65+
},
66+
"source_url": {
67+
"type": "string"
68+
},
69+
"source_type": {
70+
"type": "string"
71+
},
72+
"source": {
73+
"type": "string"
74+
},
75+
"md5sum": {
76+
"type": "string"
77+
}
78+
},
79+
"additionalProperties": true
80+
}
81+
}
82+
},
83+
"additionalProperties": true
84+
}

app/views/shared/_label.html.haml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
- toggle_subscription_path = toggle_subscription_label_path(label, @project) if current_user
77
- tooltip_title = label_status_tooltip(label, status) if status
88

9-
%li.js-label-list-item.gl-list-none.gl-border-b.last-of-type:gl-border-b-0{ id: label_css_id, data: { id: label.id } }
9+
%li.js-label-list-item.gl-list-none.gl-border-b.gl-border-section.last-of-type:gl-border-b-0{ id: label_css_id, data: { id: label.id } }
1010
.label-content.gl-pl-5.gl-pr-3.gl-py-4.gl-rounded-base{ class: "#{ 'gl-py-3' if force_priority }" }
1111
= render "shared/label_row", label: label, force_priority: force_priority
1212
%ul.label-actions-list

0 commit comments

Comments
 (0)