Skip to content

Commit

Permalink
Merge pull request #53817 from callstack-internal/chore/remove-report…
Browse files Browse the repository at this point in the history
…ActionID

[No QA] chore: remove reportActionID from report type
  • Loading branch information
puneetlath authored Dec 10, 2024
2 parents 3982ed0 + ab90c6d commit f481d64
Show file tree
Hide file tree
Showing 5 changed files with 0 additions and 9 deletions.
2 changes: 0 additions & 2 deletions src/libs/DebugUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -458,7 +458,6 @@ function validateReportDraftProperty(key: keyof Report, value: string) {
case 'policyID':
case 'reportName':
case 'reportID':
case 'reportActionID':
case 'chatReportID':
case 'type':
case 'lastMessageTranslationKey':
Expand Down Expand Up @@ -595,7 +594,6 @@ function validateReportDraftProperty(key: keyof Report, value: string) {
hasParentAccess: CONST.RED_BRICK_ROAD_PENDING_ACTION,
isDeletedParentAction: CONST.RED_BRICK_ROAD_PENDING_ACTION,
reportName: CONST.RED_BRICK_ROAD_PENDING_ACTION,
reportActionID: CONST.RED_BRICK_ROAD_PENDING_ACTION,
chatReportID: CONST.RED_BRICK_ROAD_PENDING_ACTION,
stateNum: CONST.RED_BRICK_ROAD_PENDING_ACTION,
statusNum: CONST.RED_BRICK_ROAD_PENDING_ACTION,
Expand Down
3 changes: 0 additions & 3 deletions src/types/onyx/Report.ts
Original file line number Diff line number Diff line change
Expand Up @@ -127,9 +127,6 @@ type Report = OnyxCommon.OnyxValueWithOfflineFeedback<
/** ID of the report */
reportID: string;

/** ID of the report action */
reportActionID?: string;

/** ID of the chat report */
chatReportID?: string;

Expand Down
1 change: 0 additions & 1 deletion src/types/utils/whitelistedReportKeys.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ type WhitelistedReport = OnyxCommon.OnyxValueWithOfflineFeedback<
policyID: unknown;
reportName: unknown;
reportID: string;
reportActionID: unknown;
chatReportID: unknown;
stateNum: unknown;
statusNum: unknown;
Expand Down
2 changes: 0 additions & 2 deletions tests/unit/MiddlewareTest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@ describe('Middleware', () => {
TestHelper.assertFormDataMatchesObject(
{
reportID: '1234',
reportActionID: '5678',
},
((global.fetch as jest.Mock).mock.calls.at(1) as FormDataObject[]).at(1)?.body,
);
Expand Down Expand Up @@ -109,7 +108,6 @@ describe('Middleware', () => {
TestHelper.assertFormDataMatchesObject(
{
reportID: '5555',
reportActionID: '5678',
},
((global.fetch as jest.Mock).mock.calls.at(1) as FormDataObject[]).at(1)?.body,
);
Expand Down
1 change: 0 additions & 1 deletion tests/utils/collections/optionData.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ export default function createRandomOptionData(index: number): OptionData {
description: randWord(),
isDeletedParentAction: randBoolean(),
reportName: randWord(),
reportActionID: `reportAction_${index}`,
chatReportID: `chatReport_${index}`,
stateNum: rand(Object.values(CONST.REPORT.STATE_NUM)),
statusNum: rand(Object.values(CONST.REPORT.STATUS_NUM)),
Expand Down

0 comments on commit f481d64

Please sign in to comment.