Skip to content

Commit bb164cb

Browse files
author
GitLab Bot
committed
Add latest changes from gitlab-org/gitlab@master
1 parent 61066c9 commit bb164cb

36 files changed

+270
-57
lines changed

.gitlab/ci/qa-common/variables.gitlab-ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ variables:
1818
# Helm chart ref used by test-on-cng pipeline
1919
GITLAB_HELM_CHART_REF: "074bb942c9c65613c2576ce418f59b8577fff37c"
2020
# Specific ref for cng-mirror project to trigger builds for
21-
GITLAB_CNG_MIRROR_REF: "01f587c24c52e4bbf8a67135ae4f6adafa19fa2b"
21+
GITLAB_CNG_MIRROR_REF: "56b6a062b05d549e0b69f79b759107e4956151eb"
2222
# Makes sure some of the common scripts from pipeline-common use bundler to execute commands
2323
RUN_WITH_BUNDLE: "true"
2424
# Makes sure reporting script defined in .gitlab-qa-report from pipeline-common is executed from correct folder

app/assets/javascripts/work_items/components/create_work_item.vue

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,8 @@ import {
3636
I18N_WORK_ITEM_ERROR_CREATING,
3737
sprintfWorkItem,
3838
i18n,
39+
NAME_TO_LOWERCASE_TEXT_MAP,
40+
NAME_TO_TEXT_MAP,
3941
WIDGET_TYPE_ASSIGNEES,
4042
WIDGET_TYPE_COLOR,
4143
NEW_WORK_ITEM_IID,
@@ -52,8 +54,6 @@ import {
5254
WIDGET_TYPE_MILESTONE,
5355
DEFAULT_EPIC_COLORS,
5456
WIDGET_TYPE_HIERARCHY,
55-
WORK_ITEM_TYPE_NAME_LOWERCASE_MAP,
56-
WORK_ITEM_TYPE_NAME_MAP,
5757
WORK_ITEM_TYPE_NAME_INCIDENT,
5858
WORK_ITEM_TYPE_NAME_EPIC,
5959
WIDGET_TYPE_CUSTOM_FIELDS,
@@ -322,7 +322,7 @@ export default {
322322
return getDisplayReference(this.selectedProjectFullPath, this.relatedItem.reference);
323323
},
324324
relatedItemType() {
325-
return WORK_ITEM_TYPE_NAME_LOWERCASE_MAP[this.relatedItem?.type];
325+
return NAME_TO_LOWERCASE_TEXT_MAP[this.relatedItem?.type];
326326
},
327327
workItemAssignees() {
328328
return findWidget(WIDGET_TYPE_ASSIGNEES, this.workItem);
@@ -382,7 +382,7 @@ export default {
382382
383383
return workItemTypes.map((workItemType) => ({
384384
value: workItemType.id,
385-
text: WORK_ITEM_TYPE_NAME_MAP[workItemType.name],
385+
text: NAME_TO_TEXT_MAP[workItemType.name],
386386
}));
387387
},
388388
selectedWorkItemType() {

app/assets/javascripts/work_items/components/create_work_item_cancel_confirmation_modal.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<script>
22
import { GlButton, GlModal } from '@gitlab/ui';
33
import { s__, sprintf } from '~/locale';
4-
import { WORK_ITEM_TYPE_NAME_LOWERCASE_MAP } from '../constants';
4+
import { NAME_TO_LOWERCASE_TEXT_MAP } from '../constants';
55
66
export default {
77
components: {
@@ -22,7 +22,7 @@ export default {
2222
cancelConfirmationText() {
2323
return sprintf(
2424
s__('WorkItem|Are you sure you want to cancel creating this %{workItemType}?'),
25-
{ workItemType: WORK_ITEM_TYPE_NAME_LOWERCASE_MAP[this.workItemType] },
25+
{ workItemType: NAME_TO_LOWERCASE_TEXT_MAP[this.workItemType] },
2626
);
2727
},
2828
},

app/assets/javascripts/work_items/components/create_work_item_modal.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@ import { __, s__ } from '~/locale';
55
import { isMetaClick } from '~/lib/utils/common_utils';
66
import { convertTypeEnumToName, newWorkItemPath } from '~/work_items/utils';
77
import {
8+
NAME_TO_LOWERCASE_TEXT_MAP,
89
sprintfWorkItem,
910
ROUTES,
1011
RELATED_ITEM_ID_URL_QUERY_PARAM,
11-
WORK_ITEM_TYPE_NAME_LOWERCASE_MAP,
1212
WORK_ITEM_TYPE_ENUM_INCIDENT,
1313
NAME_TO_ENUM_MAP,
1414
} from '../constants';
@@ -136,7 +136,7 @@ export default {
136136
});
137137
},
138138
selectedWorkItemTypeLowercase() {
139-
return WORK_ITEM_TYPE_NAME_LOWERCASE_MAP[this.selectedWorkItemTypeName];
139+
return NAME_TO_LOWERCASE_TEXT_MAP[this.selectedWorkItemTypeName];
140140
},
141141
newWorkItemButtonText() {
142142
return this.alwaysShowWorkItemTypeSelect && this.selectedWorkItemTypeName

app/assets/javascripts/work_items/components/work_item_change_type_modal.vue

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,13 @@ import { __, s__, sprintf } from '~/locale';
66
import { findDesignsWidget, getParentGroupName, isMilestoneWidget } from '~/work_items/utils';
77
import glFeatureFlagMixin from '~/vue_shared/mixins/gl_feature_flags_mixin';
88
import {
9+
NAME_TO_TEXT_MAP,
910
ALLOWED_CONVERSION_TYPES,
1011
sprintfWorkItem,
1112
WIDGET_TYPE_DESIGNS,
1213
WIDGET_TYPE_HIERARCHY,
1314
WIDGET_TYPE_MILESTONE,
1415
WORK_ITEM_TYPE_NAME_EPIC,
15-
WORK_ITEM_TYPE_NAME_MAP,
1616
WORK_ITEM_WIDGETS_NAME_MAP,
1717
} from '../constants';
1818
@@ -151,16 +151,15 @@ export default {
151151
);
152152
},
153153
selectOptions() {
154-
return [
155-
{
156-
id: null,
157-
name: __('Select type'),
158-
},
159-
...this.allowedConversionTypes,
160-
].map((item) => ({
161-
text: item.text || item.name,
154+
const selectOptions = this.allowedConversionTypes.map((item) => ({
155+
text: item.text || NAME_TO_TEXT_MAP[item.name],
162156
value: item.id,
163157
}));
158+
selectOptions.unshift({
159+
text: __('Select type'),
160+
value: null,
161+
});
162+
return selectOptions;
164163
},
165164
workItemsAlphaEnabled() {
166165
return this.glFeatures.workItemsAlpha;
@@ -372,7 +371,7 @@ export default {
372371
'WorkItem|%{workItemType} does not support the %{childItemType} child item types. Remove child items to change type.',
373372
),
374373
{
375-
workItemType: WORK_ITEM_TYPE_NAME_MAP[this.selectedWorkItemType.name],
374+
workItemType: NAME_TO_TEXT_MAP[this.selectedWorkItemType.name],
376375
childItemType: this.allowedChildTypes?.[0]?.name?.toLocaleLowerCase(),
377376
},
378377
);

app/assets/javascripts/work_items/constants.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -329,7 +329,7 @@ export const ALLOWED_CONVERSION_TYPES = [
329329
WORK_ITEM_TYPE_NAME_ISSUE,
330330
];
331331

332-
export const WORK_ITEM_TYPE_NAME_MAP = {
332+
export const NAME_TO_TEXT_MAP = {
333333
[WORK_ITEM_TYPE_NAME_EPIC]: s__('WorkItem|Epic'),
334334
[WORK_ITEM_TYPE_NAME_INCIDENT]: s__('WorkItem|Incident'),
335335
[WORK_ITEM_TYPE_NAME_ISSUE]: s__('WorkItem|Issue'),
@@ -341,7 +341,7 @@ export const WORK_ITEM_TYPE_NAME_MAP = {
341341
[WORK_ITEM_TYPE_NAME_TICKET]: s__('WorkItem|Ticket'),
342342
};
343343

344-
export const WORK_ITEM_TYPE_NAME_LOWERCASE_MAP = {
344+
export const NAME_TO_LOWERCASE_TEXT_MAP = {
345345
[WORK_ITEM_TYPE_NAME_EPIC]: s__('WorkItem|epic'),
346346
[WORK_ITEM_TYPE_NAME_INCIDENT]: s__('WorkItem|incident'),
347347
[WORK_ITEM_TYPE_NAME_ISSUE]: s__('WorkItem|issue'),

app/controllers/glql/base_controller.rb

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,10 @@ class BaseController < GraphqlController
1414
# failures within the time window trigger throttling.
1515
def execute
1616
start_time = Gitlab::Metrics::System.monotonic_time
17-
super
17+
18+
::Gitlab::Database::LoadBalancing::SessionMap.use_replica_if_available do
19+
super
20+
end
1821
rescue StandardError => error
1922
# We catch all errors here so they are tracked by SLIs.
2023
# But we only increment the rate limiter failure count for ActiveRecord::QueryAborted.

app/models/namespace.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,11 @@ class Namespace < ApplicationRecord
2222
include SafelyChangeColumnDefault
2323
include Todoable
2424

25-
ignore_column :unlock_membership_to_ldap, remove_with: '16.7', remove_after: '2023-11-16'
25+
ignore_column :unlock_membership_to_ldap, remove_with: '18.1', remove_after: '2025-05-20'
2626

2727
cross_database_ignore_tables %w[routes redirect_routes], url: 'https://gitlab.com/gitlab-org/gitlab/-/issues/424277'
2828

29-
ignore_column :emails_disabled, remove_with: '17.0', remove_after: '2024-04-24'
29+
ignore_column :emails_disabled, remove_with: '18.1', remove_after: '2025-05-20'
3030

3131
columns_changing_default :organization_id
3232

config/feature_flags/ops/batched_migrations_health_status_autovacuum.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@ rollout_issue_url: https://gitlab.com/gitlab-org/gitlab/-/issues/360331
55
milestone: '15.2'
66
type: ops
77
group: group::database
8-
default_enabled: false
8+
default_enabled: true

config/initializers/1_settings.rb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1018,6 +1018,9 @@
10181018
Settings.cron_jobs['delete_expired_vulnerability_exports_worker'] ||= {}
10191019
Settings.cron_jobs['delete_expired_vulnerability_exports_worker']['cron'] ||= '0 4 * * *'
10201020
Settings.cron_jobs['delete_expired_vulnerability_exports_worker']['job_class'] = 'Vulnerabilities::DeleteExpiredExportsWorker'
1021+
Settings.cron_jobs['ai_duo_workflows_fail_stuck_workflows_worker'] ||= {}
1022+
Settings.cron_jobs['ai_duo_workflows_fail_stuck_workflows_worker']['cron'] ||= '*/30 * * * *'
1023+
Settings.cron_jobs['ai_duo_workflows_fail_stuck_workflows_worker']['job_class'] ||= 'Ai::DuoWorkflows::FailStuckWorkflowsWorker'
10211024

10221025
Gitlab.com do
10231026
Settings.cron_jobs['disable_legacy_open_source_license_for_inactive_projects'] ||= {}

0 commit comments

Comments
 (0)