Skip to content

Commit ebb15c0

Browse files
author
GitLab Bot
committed
Add latest changes from gitlab-org/gitlab@master
1 parent 6a7ae91 commit ebb15c0

File tree

85 files changed

+994
-254
lines changed

Some content is hidden

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

85 files changed

+994
-254
lines changed

CHANGELOG.md

+50
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,23 @@
22
documentation](doc/development/changelog.md) for instructions on adding your own
33
entry.
44

5+
## 17.11.1 (2025-04-22)
6+
7+
### Fixed (1 change)
8+
9+
- [Fix string conversion for CI Inputs](https://gitlab.com/gitlab-org/security/gitlab/-/commit/aceb71126fb8ea5be6259a2156c6255bbaa1f3de)
10+
11+
### Changed (1 change)
12+
13+
- [Put allow_composite_identities_to_run_pipelines behind ff](https://gitlab.com/gitlab-org/security/gitlab/-/commit/2287e37df7c9ed82aa54643759e00bbf30a788c8)
14+
15+
### Security (4 changes)
16+
17+
- [Add SecureHeaders middleware with the Nel header](https://gitlab.com/gitlab-org/security/gitlab/-/commit/5a586de4d56429eabe0fb6ebc524894925759d2e) ([merge request](https://gitlab.com/gitlab-org/security/gitlab/-/merge_requests/4934))
18+
- [Restrict forwarded headers in Maven dependency proxy](https://gitlab.com/gitlab-org/security/gitlab/-/commit/80244b98dd92312510f4a9276b5adfcbaba8e68a) ([merge request](https://gitlab.com/gitlab-org/security/gitlab/-/merge_requests/4929))
19+
- [Security unauthorized access to reading branch names](https://gitlab.com/gitlab-org/security/gitlab/-/commit/9f9724584d109181e764f79a3b61667520d2212f) ([merge request](https://gitlab.com/gitlab-org/security/gitlab/-/merge_requests/4933))
20+
- [Simplify detecting paragraphs for quick actions](https://gitlab.com/gitlab-org/security/gitlab/-/commit/78466ef2cd3ddee5fbf0db67056a5bccf7c59907) ([merge request](https://gitlab.com/gitlab-org/security/gitlab/-/merge_requests/4925))
21+
522
## 17.11.0 (2025-04-16)
623

724
### Added (211 changes)
@@ -767,6 +784,25 @@ entry.
767784
- [Remove feature flag allow_merge_request_pipelines_from_fork](https://gitlab.com/gitlab-org/gitlab/-/commit/b62f9187a57cc5ba66ce26889516cc55a425181a) ([merge request](https://gitlab.com/gitlab-org/gitlab/-/merge_requests/182862))
768785
- [Finalize migration BackfillNewAuditEventTables](https://gitlab.com/gitlab-org/gitlab/-/commit/1bc0f07ffd3af5b9fab8a0ea0b1af5f2759d25db) ([merge request](https://gitlab.com/gitlab-org/gitlab/-/merge_requests/181881))
769786

787+
## 17.10.5 (2025-04-22)
788+
789+
### Fixed (3 changes)
790+
791+
- [Fix 500 in Todo API when wiki page todo exists](https://gitlab.com/gitlab-org/security/gitlab/-/commit/71215f0615fad3167fb96b521b9628e11ea30a5d)
792+
- [Clear session cookie when browser is closed](https://gitlab.com/gitlab-org/security/gitlab/-/commit/7c77ca404d9be7166d8ef991013394483b3f0371)
793+
- [Fix workspaces reconciliation to send inventory config map correctly](https://gitlab.com/gitlab-org/security/gitlab/-/commit/aba508e925aea81c4d47555254e6a657edc94863) **GitLab Enterprise Edition**
794+
795+
### Security (4 changes)
796+
797+
- [Add SecureHeaders middleware with the Nel header](https://gitlab.com/gitlab-org/security/gitlab/-/commit/0e180be62768513438f86ea99f0a4a305cca46b6) ([merge request](https://gitlab.com/gitlab-org/security/gitlab/-/merge_requests/4919))
798+
- [Restrict forwarded headers in Maven dependency proxy](https://gitlab.com/gitlab-org/security/gitlab/-/commit/faa100503f89d08e51549e4f35f362c9945dbb6f) ([merge request](https://gitlab.com/gitlab-org/security/gitlab/-/merge_requests/4930))
799+
- [Security unauthorized access to reading branch names](https://gitlab.com/gitlab-org/security/gitlab/-/commit/dc2f917499f58ed9ccff23158b39528b62b71c2f) ([merge request](https://gitlab.com/gitlab-org/security/gitlab/-/merge_requests/4895))
800+
- [Simplify detecting paragraphs for quick actions](https://gitlab.com/gitlab-org/security/gitlab/-/commit/507e465f21b5be5297eda7a67f0ba75994df88d8) ([merge request](https://gitlab.com/gitlab-org/security/gitlab/-/merge_requests/4926))
801+
802+
### Other (1 change)
803+
804+
- [No-op FinalizeBackfillCiRunnerMachinesPartitionedTable migration](https://gitlab.com/gitlab-org/security/gitlab/-/commit/119891459658f48120bcef02b1b66e3e78c78865)
805+
770806
## 17.10.4 (2025-04-09)
771807

772808
### Fixed (2 changes)
@@ -1608,6 +1644,20 @@ No changes.
16081644
- [Quarantine a flaky test](https://gitlab.com/gitlab-org/gitlab/-/commit/998d8028213da6bf0c3c1c08301797c8b3395c28) ([merge request](https://gitlab.com/gitlab-org/gitlab/-/merge_requests/180234))
16091645
- [Quarantine a flaky test](https://gitlab.com/gitlab-org/gitlab/-/commit/8ae69a3765cfb7561db95e43faa30cc60fac6444) ([merge request](https://gitlab.com/gitlab-org/gitlab/-/merge_requests/177662))
16101646

1647+
## 17.9.7 (2025-04-22)
1648+
1649+
### Security (4 changes)
1650+
1651+
- [Add SecureHeaders middleware with the Nel header](https://gitlab.com/gitlab-org/security/gitlab/-/commit/5e9112ba2d6fac340e1dbfc4b0330bdcff2f82bc) ([merge request](https://gitlab.com/gitlab-org/security/gitlab/-/merge_requests/4920))
1652+
- [Restrict forwarded headers in Maven dependency proxy](https://gitlab.com/gitlab-org/security/gitlab/-/commit/24d73f3e778471c4e0153af174f2d8b44e106108) ([merge request](https://gitlab.com/gitlab-org/security/gitlab/-/merge_requests/4931))
1653+
- [Security unauthorized access to reading branch names](https://gitlab.com/gitlab-org/security/gitlab/-/commit/cb09987371857b97ec3cc5774b9f214c9db7c8a6) ([merge request](https://gitlab.com/gitlab-org/security/gitlab/-/merge_requests/4923))
1654+
- [Simplify detecting paragraphs for quick actions](https://gitlab.com/gitlab-org/security/gitlab/-/commit/29d3f746b02137aaff4364473ce62f701d208e27) ([merge request](https://gitlab.com/gitlab-org/security/gitlab/-/merge_requests/4927))
1655+
1656+
### Other (2 changes)
1657+
1658+
- [Clean up BackfillCiRunnerMachinesPartitionedTable migration](https://gitlab.com/gitlab-org/security/gitlab/-/commit/76d351431e07b3a695356c7b78ac16d23b180302)
1659+
- [No-op FinalizeBackfillCiRunnerMachinesPartitionedTable migration](https://gitlab.com/gitlab-org/security/gitlab/-/commit/fb16e2ebcc6188b3f9bb0bc30e7e2b709484f3b1)
1660+
16111661
## 17.9.6 (2025-04-09)
16121662

16131663
### Security (6 changes)

app/assets/javascripts/environments/graphql/resolvers/flux.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -117,11 +117,12 @@ const watchFluxResource = async ({
117117
};
118118

119119
try {
120+
const config = new Configuration(variables.configuration);
120121
await subscribeToSocket({
121122
watchId,
122123
watchParams,
123-
configuration: variables.configuration,
124124
cacheParams,
125+
config,
125126
});
126127
} catch {
127128
await watchFunction();
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
import { WebSocketWatchManager } from '@gitlab/cluster-client';
2+
3+
let watchManagerInstance = null;
4+
5+
export function resetWatchManager() {
6+
watchManagerInstance = null;
7+
}
8+
9+
export function getWatchManager(configuration) {
10+
if (!watchManagerInstance) {
11+
if (!configuration) {
12+
throw new Error('WebSocketWatchManager not initialized. Provide configuration first.');
13+
}
14+
watchManagerInstance = new WebSocketWatchManager(configuration);
15+
}
16+
17+
return watchManagerInstance;
18+
}

app/assets/javascripts/kubernetes_dashboard/graphql/helpers/resolver_helpers.js

+6-5
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@ import {
22
CoreV1Api,
33
Configuration,
44
WatchApi,
5-
webSocketWatchManager,
65
EVENT_DATA,
76
EVENT_TIMEOUT,
87
EVENT_ERROR,
98
} from '@gitlab/cluster-client';
9+
import { getWatchManager } from '~/environments/services/websocket_connection_service';
1010
import { connectionStatus } from '~/environments/graphql/resolvers/kubernetes/constants';
1111
import { updateConnectionStatus } from '~/environments/graphql/resolvers/kubernetes/k8s_connection_status';
1212
import { s__ } from '~/locale';
@@ -54,13 +54,14 @@ export const mapEventItem = ({
5454
type,
5555
}) => ({ lastTimestamp, eventTime, message, reason, source, type });
5656

57-
export const subscribeToSocket = async ({ watchId, watchParams, configuration, cacheParams }) => {
57+
export const subscribeToSocket = async ({ watchId, watchParams, cacheParams, config }) => {
5858
const { updateQueryCache, updateConnectionStatusFn } = cacheParams;
5959

6060
try {
61-
const watcher = await webSocketWatchManager.initConnection({
61+
const watcherConnection = getWatchManager(config);
62+
63+
const watcher = await watcherConnection.initConnection({
6264
message: { watchId, watchParams },
63-
configuration,
6465
});
6566

6667
const handleConnectionStatus = (status) => {
@@ -142,7 +143,7 @@ export const watchWorkloadItems = async ({
142143
};
143144

144145
try {
145-
await subscribeToSocket({ watchId, watchParams, configuration, cacheParams });
146+
await subscribeToSocket({ watchId, watchParams, cacheParams, config });
146147
} catch {
147148
await watchFunction();
148149
}

app/assets/javascripts/work_items/components/notes/work_item_add_note.vue

+3-3
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,14 @@ import * as Sentry from '~/sentry/sentry_browser_wrapper';
66
import Tracking from '~/tracking';
77
import { __ } from '~/locale';
88
import { clearDraft } from '~/lib/utils/autosave';
9-
import { findWidget } from '~/issues/list/utils';
109
import DiscussionReplyPlaceholder from '~/notes/components/discussion_reply_placeholder.vue';
1110
import ResolveDiscussionButton from '~/notes/components/discussion_resolve_button.vue';
1211
import { updateCacheAfterCreatingNote } from '../../graphql/cache_utils';
1312
import createNoteMutation from '../../graphql/notes/create_work_item_note.mutation.graphql';
1413
import workItemNotesByIidQuery from '../../graphql/notes/work_item_notes_by_iid.query.graphql';
1514
import workItemByIidQuery from '../../graphql/work_item_by_iid.query.graphql';
16-
import { TRACKING_CATEGORY_SHOW, WIDGET_TYPE_EMAIL_PARTICIPANTS, i18n } from '../../constants';
15+
import { TRACKING_CATEGORY_SHOW, i18n } from '../../constants';
16+
import { findEmailParticipantsWidget } from '../../utils';
1717
import WorkItemNoteSignedOut from './work_item_note_signed_out.vue';
1818
import WorkItemCommentLocked from './work_item_comment_locked.vue';
1919
import WorkItemCommentForm from './work_item_comment_form.vue';
@@ -223,7 +223,7 @@ export default {
223223
return this.isDiscussionResolved ? __('Unresolve thread') : __('Resolve thread');
224224
},
225225
hasEmailParticipantsWidget() {
226-
return Boolean(findWidget(WIDGET_TYPE_EMAIL_PARTICIPANTS, this.workItem));
226+
return Boolean(findEmailParticipantsWidget(this.workItem));
227227
},
228228
},
229229
watch: {

app/assets/javascripts/work_items/components/notes/work_item_comment_form.vue

+3-9
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,8 @@ import { GlButton, GlFormCheckbox, GlTooltipDirective } from '@gitlab/ui';
33
import { helpPagePath } from '~/helpers/help_page_helper';
44
import { s__, __ } from '~/locale';
55
import { capitalizeFirstCharacter } from '~/lib/utils/text_utility';
6-
import {
7-
STATE_OPEN,
8-
WORK_ITEM_TYPE_NAME_TASK,
9-
WIDGET_TYPE_EMAIL_PARTICIPANTS,
10-
i18n,
11-
} from '~/work_items/constants';
6+
import { STATE_OPEN, WORK_ITEM_TYPE_NAME_TASK, i18n } from '~/work_items/constants';
127
import { getDraft, clearDraft, updateDraft } from '~/lib/utils/autosave';
13-
import { findWidget } from '~/issues/list/utils';
148
import { confirmAction } from '~/lib/utils/confirm_via_gl_modal/confirm_via_gl_modal';
159
import glAbilitiesMixin from '~/vue_shared/mixins/gl_abilities_mixin';
1610
import MarkdownEditor from '~/vue_shared/components/markdown/markdown_editor.vue';
@@ -19,6 +13,7 @@ import WorkItemStateToggle from '~/work_items/components/work_item_state_toggle.
1913
import CommentFieldLayout from '~/notes/components/comment_field_layout.vue';
2014
import workItemByIidQuery from '../../graphql/work_item_by_iid.query.graphql';
2115
import workItemEmailParticipantsByIidQuery from '../../graphql/notes/work_item_email_participants_by_iid.query.graphql';
16+
import { findEmailParticipantsWidget } from '../../utils';
2217
2318
const DOCS_WORK_ITEM_LOCKED_TASKS_PATH = helpPagePath('user/tasks.html', {
2419
anchor: 'lock-discussion',
@@ -269,8 +264,7 @@ export default {
269264
},
270265
update(data) {
271266
return (
272-
findWidget(WIDGET_TYPE_EMAIL_PARTICIPANTS, data?.workspace?.workItem)?.emailParticipants
273-
?.nodes || []
267+
findEmailParticipantsWidget(data?.workspace?.workItem)?.emailParticipants?.nodes || []
274268
);
275269
},
276270
},

app/assets/javascripts/work_items/components/shared/work_item_relationship_popover_metadata.vue

+3-5
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,7 @@
22
import { GlTooltipDirective, GlAvatarsInline, GlAvatar, GlAvatarLink } from '@gitlab/ui';
33
import ItemMilestone from '~/issuable/components/issue_milestone.vue';
44
import { s__, sprintf } from '~/locale';
5-
import { WIDGET_TYPE_MILESTONE, WIDGET_TYPE_ASSIGNEES } from '~/work_items/constants';
6-
import { findWidget } from '~/issues/list/utils';
7-
import { getDisplayReference } from '../../utils';
5+
import { findAssigneesWidget, findMilestoneWidget, getDisplayReference } from '../../utils';
86
97
export default {
108
name: 'WorkItemRelationshipPopoverMetadata',
@@ -30,10 +28,10 @@ export default {
3028
assigneesDisplayLimit: 3,
3129
computed: {
3230
workItemAssignees() {
33-
return findWidget(WIDGET_TYPE_ASSIGNEES, this.workItem)?.assignees?.nodes || [];
31+
return findAssigneesWidget(this.workItem)?.assignees?.nodes || [];
3432
},
3533
workItemMilestone() {
36-
return findWidget(WIDGET_TYPE_MILESTONE, this.workItem)?.milestone;
34+
return findMilestoneWidget(this.workItem)?.milestone;
3735
},
3836
fullReference() {
3937
return getDisplayReference(this.workItemFullPath, this.workItem.reference);

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

+3-4
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,15 @@
11
<script>
22
import { GlLink, GlPopover, GlTooltipDirective, GlTruncateText } from '@gitlab/ui';
33
import { difference, groupBy, xor } from 'lodash';
4-
import { findWidget } from '~/issues/list/utils';
54
import { __, n__, s__ } from '~/locale';
65
import WorkItemSidebarDropdownWidget from '~/work_items/components/shared/work_item_sidebar_dropdown_widget.vue';
76
import Tracking from '~/tracking';
87
import getGroupContactsQuery from '~/crm/contacts/components/graphql/get_group_contacts.query.graphql';
98
import workItemByIidQuery from '~/work_items/graphql/work_item_by_iid.query.graphql';
109
import updateWorkItemMutation from '../graphql/update_work_item.mutation.graphql';
1110
import updateNewWorkItemMutation from '../graphql/update_new_work_item.mutation.graphql';
12-
import { i18n, TRACKING_CATEGORY_SHOW, WIDGET_TYPE_CRM_CONTACTS } from '../constants';
13-
import { newWorkItemFullPath, newWorkItemId } from '../utils';
11+
import { i18n, TRACKING_CATEGORY_SHOW } from '../constants';
12+
import { findCrmContactsWidget, newWorkItemFullPath, newWorkItemId } from '../utils';
1413
1514
export default {
1615
directives: {
@@ -86,7 +85,7 @@ export default {
8685
return this.groupByOrganization(this.selectedItems, false);
8786
},
8887
workItemCrmContacts() {
89-
return findWidget(WIDGET_TYPE_CRM_CONTACTS, this.workItem);
88+
return findCrmContactsWidget(this.workItem);
9089
},
9190
workItemFullPath() {
9291
return this.createFlow

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

+3-11
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,12 @@
11
<script>
22
import { GlIcon, GlAlert, GlTooltipDirective } from '@gitlab/ui';
33
import * as Sentry from '~/sentry/sentry_browser_wrapper';
4-
54
import { s__, __ } from '~/locale';
6-
import { findWidget } from '~/issues/list/utils';
7-
85
import workItemByIidQuery from '~/work_items/graphql/work_item_by_iid.query.graphql';
96
import workItemDevelopmentQuery from '~/work_items/graphql/work_item_development.query.graphql';
107
import workItemDevelopmentUpdatedSubscription from '~/work_items/graphql/work_item_development.subscription.graphql';
11-
import {
12-
sprintfWorkItem,
13-
WIDGET_TYPE_DEVELOPMENT,
14-
STATE_OPEN,
15-
DEVELOPMENT_ITEMS_ANCHOR,
16-
} from '~/work_items/constants';
17-
8+
import { sprintfWorkItem, STATE_OPEN, DEVELOPMENT_ITEMS_ANCHOR } from '~/work_items/constants';
9+
import { findDevelopmentWidget } from '~/work_items/utils';
1810
import CrudComponent from '~/vue_shared/components/crud_component.vue';
1911
import WorkItemActionsSplitButton from '~/work_items/components/work_item_links/work_item_actions_split_button.vue';
2012
import WorkItemDevelopmentRelationshipList from './work_item_development_relationship_list.vue';
@@ -204,7 +196,7 @@ export default {
204196
};
205197
},
206198
update(data) {
207-
return findWidget(WIDGET_TYPE_DEVELOPMENT, data?.workItem) || {};
199+
return findDevelopmentWidget(data?.workItem) || {};
208200
},
209201
skip() {
210202
return !this.workItemIid;

app/assets/javascripts/work_items/components/work_item_links/work_item_rolled_up_data.vue

+4-9
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,8 @@
22
import { GlIcon, GlTooltip, GlPopover } from '@gitlab/ui';
33
import { s__, __ } from '~/locale';
44
import workItemByIidQuery from '~/work_items/graphql/work_item_by_iid.query.graphql';
5-
import { findWidget } from '~/issues/list/utils';
6-
import {
7-
i18n,
8-
WIDGET_TYPE_WEIGHT,
9-
WORK_ITEM_TYPE_NAME_EPIC,
10-
WIDGET_TYPE_HEALTH_STATUS,
11-
} from '../../constants';
5+
import { i18n, WORK_ITEM_TYPE_NAME_EPIC } from '../../constants';
6+
import { findHealthStatusWidget, findWeightWidget } from '../../utils';
127
138
export default {
149
components: {
@@ -72,10 +67,10 @@ export default {
7267
},
7368
computed: {
7469
workItemWeight() {
75-
return findWidget(WIDGET_TYPE_WEIGHT, this.workItem);
70+
return findWeightWidget(this.workItem);
7671
},
7772
workItemHealthStatus() {
78-
return findWidget(WIDGET_TYPE_HEALTH_STATUS, this.workItem);
73+
return findHealthStatusWidget(this.workItem);
7974
},
8075
shouldRolledUpWeightBeVisible() {
8176
return this.showRolledUpWeight && this.rolledUpWeight !== null;

app/assets/javascripts/work_items/components/work_item_links/work_item_tree.vue

+1-2
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ import { GlAlert } from '@gitlab/ui';
33
import { sprintf, s__ } from '~/locale';
44
import { createAlert } from '~/alert';
55
import CrudComponent from '~/vue_shared/components/crud_component.vue';
6-
import { findWidget } from '~/issues/list/utils';
76
import { getParameterByName } from '~/lib/utils/url_utility';
87
import { getIdFromGraphQLId } from '~/graphql_shared/utils';
98
import {
@@ -192,7 +191,7 @@ export default {
192191
},
193192
computed: {
194193
workItemHierarchy() {
195-
return findWidget(WIDGET_TYPE_HIERARCHY, this.workItem);
194+
return findHierarchyWidget(this.workItem);
196195
},
197196
rolledUpCountsByType() {
198197
return this.workItemHierarchy?.rolledUpCountsByType || [];

app/assets/javascripts/work_items/graphql/cache_utils.js

+2-3
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ import { convertToGraphQLId } from '~/graphql_shared/utils';
88
import { getBaseURL } from '~/lib/utils/url_utility';
99
import { convertEachWordToTitleCase } from '~/lib/utils/text_utility';
1010
import { getDraft, clearDraft } from '~/lib/utils/autosave';
11-
import { findWidget } from '~/issues/list/utils';
1211
import {
1312
newWorkItemOptimisticUserPermissions,
1413
WIDGET_TYPE_ASSIGNEES,
@@ -32,6 +31,7 @@ import {
3231
} from 'ee_else_ce/work_items/constants';
3332
import {
3433
findCurrentUserTodosWidget,
34+
findDescriptionWidget,
3535
findHierarchyWidget,
3636
findHierarchyWidgetChildren,
3737
findNotesWidget,
@@ -350,8 +350,7 @@ export const setNewWorkItemCache = async (
350350
const draftData = JSON.parse(getDraft(autosaveKey));
351351

352352
const draftTitle = draftData?.workspace?.workItem?.title || '';
353-
const draftDescriptionWidget =
354-
findWidget(WIDGET_TYPE_DESCRIPTION, draftData?.workspace?.workItem) || {};
353+
const draftDescriptionWidget = findDescriptionWidget(draftData?.workspace?.workItem) || {};
355354
const draftDescription = draftDescriptionWidget?.description || null;
356355

357356
widgets.push({

app/assets/javascripts/work_items/graphql/resolvers.js

+8-4
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,12 @@ import { findWidget } from '~/issues/list/utils';
55
import { newDate, toISODateFormat } from '~/lib/utils/datetime_utility';
66
import { updateDraft } from '~/lib/utils/autosave';
77
import { getParameterByName } from '~/lib/utils/url_utility';
8-
import { getNewWorkItemAutoSaveKey, newWorkItemFullPath } from '../utils';
8+
import {
9+
findCustomFieldsWidget,
10+
findStartAndDueDateWidget,
11+
getNewWorkItemAutoSaveKey,
12+
newWorkItemFullPath,
13+
} from '../utils';
914
import {
1015
WIDGET_TYPE_ASSIGNEES,
1116
WIDGET_TYPE_COLOR,
@@ -15,7 +20,6 @@ import {
1520
WIDGET_TYPE_CRM_CONTACTS,
1621
WIDGET_TYPE_ITERATION,
1722
WIDGET_TYPE_WEIGHT,
18-
WIDGET_TYPE_START_AND_DUE_DATE,
1923
NEW_WORK_ITEM_IID,
2024
WIDGET_TYPE_MILESTONE,
2125
WIDGET_TYPE_HIERARCHY,
@@ -44,7 +48,7 @@ const updateDatesWidget = (draftData, dates) => {
4448
const dueDate = dates.dueDate ? toISODateFormat(newDate(dates.dueDate)) : null;
4549
const startDate = dates.startDate ? toISODateFormat(newDate(dates.startDate)) : null;
4650

47-
const widget = findWidget(WIDGET_TYPE_START_AND_DUE_DATE, draftData.workspace.workItem);
51+
const widget = findStartAndDueDateWidget(draftData.workspace.workItem);
4852
Object.assign(widget, {
4953
dueDate,
5054
startDate,
@@ -57,7 +61,7 @@ const updateDatesWidget = (draftData, dates) => {
5761
const updateCustomFieldsWidget = (sourceData, draftData, customField) => {
5862
if (!customField) return;
5963

60-
const widget = findWidget(WIDGET_TYPE_CUSTOM_FIELDS, draftData.workspace.workItem);
64+
const widget = findCustomFieldsWidget(draftData.workspace.workItem);
6165

6266
if (!widget) return;
6367

0 commit comments

Comments
 (0)