From 767a9f2fcd98edb3713f9c258da1c4c93118fbfe Mon Sep 17 00:00:00 2001 From: Scott Deeter Date: Sun, 26 May 2024 15:20:49 -0700 Subject: [PATCH 1/2] Define & hide any deprecated report actions from OldDot --- src/libs/ReportActionsUtils.ts | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/libs/ReportActionsUtils.ts b/src/libs/ReportActionsUtils.ts index 07bfbf5590305..d205cca69ea7f 100644 --- a/src/libs/ReportActionsUtils.ts +++ b/src/libs/ReportActionsUtils.ts @@ -501,6 +501,17 @@ function isReportActionDeprecated(reportAction: OnyxEntry, key: st return true; } + const deprecatedOldDotReportActions = [ + 'DELETEDACCOUNT', + 'REIMBURSEMENTREQUESTED', + 'REIMBURSEMENTSETUPREQUESTED', + 'DONATION', + ]; + if (deprecatedOldDotReportActions.includes(String(reportAction.actionName))) { + Log.info('Front end filtered out reportAction for being an older, deprecated report action', false, reportAction); + return true; + } + return false; } From f9f565d8668d935e071a7d87a3717ec5a3c042fb Mon Sep 17 00:00:00 2001 From: Scott Deeter Date: Mon, 27 May 2024 14:00:07 -0700 Subject: [PATCH 2/2] Prettier update --- src/libs/ReportActionsUtils.ts | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/libs/ReportActionsUtils.ts b/src/libs/ReportActionsUtils.ts index d205cca69ea7f..1d945633c0ef0 100644 --- a/src/libs/ReportActionsUtils.ts +++ b/src/libs/ReportActionsUtils.ts @@ -501,12 +501,7 @@ function isReportActionDeprecated(reportAction: OnyxEntry, key: st return true; } - const deprecatedOldDotReportActions = [ - 'DELETEDACCOUNT', - 'REIMBURSEMENTREQUESTED', - 'REIMBURSEMENTSETUPREQUESTED', - 'DONATION', - ]; + const deprecatedOldDotReportActions = ['DELETEDACCOUNT', 'REIMBURSEMENTREQUESTED', 'REIMBURSEMENTSETUPREQUESTED', 'DONATION']; if (deprecatedOldDotReportActions.includes(String(reportAction.actionName))) { Log.info('Front end filtered out reportAction for being an older, deprecated report action', false, reportAction); return true;