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

+5-4
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

+5-5
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

+1-1
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

+2-1
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

+14-10
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

+2-2
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

+1-1
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

-4
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
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

+1-1
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

data/deprecations/16-4-ci_job_token_scope_enabled-attribute-deprecation.yml

+2-3
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,11 @@
22
# REQUIRED FIELDS
33
#
44
- title: "The `ci_job_token_scope_enabled` projects API attribute is deprecated" # (required) Clearly explain the change, or planned change. For example, "The `confidential` field for a `Note` is deprecated" or "CI/CD job names will be limited to 250 characters."
5-
removal_milestone: "Pending" # (required) The milestone when this feature is planned to be removed
5+
removal_milestone: "19.0" # (required) The milestone when this feature is planned to be removed
66
announcement_milestone: "16.4" # (required) The milestone when this feature was first announced as deprecated.
77
breaking_change: true # (required) Change to false if this is not a breaking change.
8-
window: 3
98
reporter: jocelynjane # (required) GitLab username of the person reporting the change
10-
stage: govern # (required) String value of the stage that the feature was created in. e.g., Growth
9+
stage: Software Supply Chain Security # (required) String value of the stage that the feature was created in. e.g., Growth
1110
issue_url: https://gitlab.com/gitlab-org/gitlab/-/issues/423091 # (required) Link to the deprecation issue in GitLab
1211
impact: low # Can be one of: [critical, high, medium, low]
1312
scope: project # Can be one or a combination of: [instance, group, project]

data/deprecations/17-5-ci-job-token-outbound-removal.yml

+3-4
Original file line numberDiff line numberDiff line change
@@ -2,22 +2,21 @@
22

33
- title: "`ciJobTokenScopeAddProject` GraphQL mutation is deprecated"
44
# The milestones for the deprecation announcement, and the removal.
5-
removal_milestone: "Pending"
5+
removal_milestone: "19.0"
66
announcement_milestone: "17.5"
77
# Change breaking_change to false if needed.
88
breaking_change: true
99
# The stage and GitLab username of the person reporting the change,
1010
# and a link to the deprecation issue
11-
window: 3
1211
reporter: jocelynjane
13-
stage: Govern
12+
stage: Software Supply Chain Security
1413
issue_url: https://gitlab.com/gitlab-org/gitlab/-/issues/474175
1514
impact: low # Can be one of: [critical, high, medium, low]
1615
scope: project # Can be one or a combination of: [instance, group, project]
1716
resolution_role: Developer # Can be one of: [Admin, Owner, Maintainer, Developer]
1817
manual_task: true # Can be true or false. Use this to denote whether a resolution action must be performed manually (true), or if it can be automated by using the API or other automation (false).
1918
body: | # (required) Don't change this line.
20-
With the [upcoming default behavior change to the CI/CD job token](https://docs.gitlab.com/update/deprecations/#default-cicd-job-token-ci_job_token-scope-changed) in GitLab 18.0, we are also deprecating the associated `ciJobTokenScopeAddProject` GraphQL mutation as the associated feature will be no longer be available.
19+
With the [upcoming default behavior change to the CI/CD job token](https://docs.gitlab.com/update/deprecations/#default-cicd-job-token-ci_job_token-scope-changed) in GitLab 18.0, we are also deprecating the associated `ciJobTokenScopeAddProject` GraphQL mutation in favor of `ciJobTokenScopeAddGroupOrProject`.
2120
2221
# ==============================
2322
# OPTIONAL END-OF-SUPPORT FIELDS

db/docs/batched_background_migrations/backfill_bulk_import_trackers_namespace_id.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@ feature_category: importers
55
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/180437
66
milestone: '17.9'
77
queued_migration_version: 20250205195337
8-
finalized_by: # version of the migration that finalized this BBM
8+
finalized_by: 20250414075039

db/docs/batched_background_migrations/backfill_bulk_import_trackers_organization_id.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@ feature_category: importers
55
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/180437
66
milestone: '17.9'
77
queued_migration_version: 20250205195342
8-
finalized_by: # version of the migration that finalized this BBM
8+
finalized_by: 20250414075035

db/docs/batched_background_migrations/backfill_bulk_import_trackers_project_id.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@ feature_category: importers
55
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/180437
66
milestone: '17.9'
77
queued_migration_version: 20250205195332
8-
finalized_by: # version of the migration that finalized this BBM
8+
finalized_by: 20250414075044
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
---
2+
migration_job_name: DeleteOrphanedCiRunnerMachineRecordsOnSelfManaged
3+
description: >
4+
Removes ci_runner_machines records that don't have a matching ci_runners record.
5+
This can happen because there was a period in time where a FK didn't exist.
6+
The equivalent operation has already been done on .com by 20241112165507
7+
feature_category: fleet_visibility
8+
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/188083
9+
milestone: '18.0'
10+
queued_migration_version: 20250414101015
11+
finalized_by: # version of the migration that finalized this BBM
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# frozen_string_literal: true
2+
3+
class UpdateApplicationSettingDefaultScanExecutionPoliciesActionLimit < Gitlab::Database::Migration[2.2]
4+
milestone "18.0"
5+
disable_ddl_transaction!
6+
restrict_gitlab_migration gitlab_schema: :gitlab_main
7+
8+
def up
9+
execute <<~SQL
10+
UPDATE application_settings
11+
SET security_policies = jsonb_set(
12+
security_policies,
13+
'{scan_execution_policies_action_limit}',
14+
'0'::jsonb,
15+
true -- create_missing
16+
);
17+
SQL
18+
end
19+
20+
def down
21+
# irreversible
22+
end
23+
end

db/post_migrate/20250113164152_requeue_delete_orphaned_partitioned_ci_runner_machine_records.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ class RequeueDeleteOrphanedPartitionedCiRunnerMachineRecords < Gitlab::Database:
88
MIGRATION = "RequeueDeleteOrphanedPartitionedCiRunnerMachineRecords"
99

1010
def up
11-
# no-oped and deleted in 20250307070000_delete20250113164152_post_deployment_migration.rb
11+
# no-oped and deleted in 20250307070001_cleanup_requeue_delete_orphaned_partitioned_ci_runner_machine_records.rb
1212
# since this can collide with 20250307080000_replace_ci_runners_machines_with_partitioned_table which
1313
# is scheduled for 17.10 (no required stop between them)
1414
end

0 commit comments

Comments
 (0)