Skip to content

Commit f481d64

Browse files
authored
Merge pull request #53817 from callstack-internal/chore/remove-reportActionID
[No QA] chore: remove reportActionID from report type
2 parents 3982ed0 + ab90c6d commit f481d64

File tree

5 files changed

+0
-9
lines changed

5 files changed

+0
-9
lines changed

src/libs/DebugUtils.ts

-2
Original file line numberDiff line numberDiff line change
@@ -458,7 +458,6 @@ function validateReportDraftProperty(key: keyof Report, value: string) {
458458
case 'policyID':
459459
case 'reportName':
460460
case 'reportID':
461-
case 'reportActionID':
462461
case 'chatReportID':
463462
case 'type':
464463
case 'lastMessageTranslationKey':
@@ -595,7 +594,6 @@ function validateReportDraftProperty(key: keyof Report, value: string) {
595594
hasParentAccess: CONST.RED_BRICK_ROAD_PENDING_ACTION,
596595
isDeletedParentAction: CONST.RED_BRICK_ROAD_PENDING_ACTION,
597596
reportName: CONST.RED_BRICK_ROAD_PENDING_ACTION,
598-
reportActionID: CONST.RED_BRICK_ROAD_PENDING_ACTION,
599597
chatReportID: CONST.RED_BRICK_ROAD_PENDING_ACTION,
600598
stateNum: CONST.RED_BRICK_ROAD_PENDING_ACTION,
601599
statusNum: CONST.RED_BRICK_ROAD_PENDING_ACTION,

src/types/onyx/Report.ts

-3
Original file line numberDiff line numberDiff line change
@@ -127,9 +127,6 @@ type Report = OnyxCommon.OnyxValueWithOfflineFeedback<
127127
/** ID of the report */
128128
reportID: string;
129129

130-
/** ID of the report action */
131-
reportActionID?: string;
132-
133130
/** ID of the chat report */
134131
chatReportID?: string;
135132

src/types/utils/whitelistedReportKeys.ts

-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ type WhitelistedReport = OnyxCommon.OnyxValueWithOfflineFeedback<
2626
policyID: unknown;
2727
reportName: unknown;
2828
reportID: string;
29-
reportActionID: unknown;
3029
chatReportID: unknown;
3130
stateNum: unknown;
3231
statusNum: unknown;

tests/unit/MiddlewareTest.ts

-2
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,6 @@ describe('Middleware', () => {
5454
TestHelper.assertFormDataMatchesObject(
5555
{
5656
reportID: '1234',
57-
reportActionID: '5678',
5857
},
5958
((global.fetch as jest.Mock).mock.calls.at(1) as FormDataObject[]).at(1)?.body,
6059
);
@@ -109,7 +108,6 @@ describe('Middleware', () => {
109108
TestHelper.assertFormDataMatchesObject(
110109
{
111110
reportID: '5555',
112-
reportActionID: '5678',
113111
},
114112
((global.fetch as jest.Mock).mock.calls.at(1) as FormDataObject[]).at(1)?.body,
115113
);

tests/utils/collections/optionData.ts

-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@ export default function createRandomOptionData(index: number): OptionData {
3636
description: randWord(),
3737
isDeletedParentAction: randBoolean(),
3838
reportName: randWord(),
39-
reportActionID: `reportAction_${index}`,
4039
chatReportID: `chatReport_${index}`,
4140
stateNum: rand(Object.values(CONST.REPORT.STATE_NUM)),
4241
statusNum: rand(Object.values(CONST.REPORT.STATUS_NUM)),

0 commit comments

Comments
 (0)