Skip to content

Commit 90faa82

Browse files
authored
Merge pull request Expensify#60328 from Expensify/cmartins-disableMovedActions
[CP Staging] Disable moved actions
2 parents 85d9b93 + 9ac4e33 commit 90faa82

2 files changed

Lines changed: 6 additions & 0 deletions

File tree

src/libs/ReportActionsUtils.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -745,6 +745,10 @@ function isReportActionDeprecated(reportAction: OnyxEntry<ReportAction>, key: st
745745
CONST.REPORT.ACTIONS.TYPE.REIMBURSEMENT_SETUP_REQUESTED,
746746
CONST.REPORT.ACTIONS.TYPE.DONATION,
747747
CONST.REPORT.ACTIONS.TYPE.REIMBURSED,
748+
749+
// We're temporarily deprecating the actions below since the feature is still WIP and these actions are being shown as duplicated
750+
CONST.REPORT.ACTIONS.TYPE.UNREPORTED_TRANSACTION,
751+
CONST.REPORT.ACTIONS.TYPE.MOVED_TRANSACTION,
748752
];
749753
if (deprecatedOldDotReportActions.includes(reportAction.actionName)) {
750754
Log.info('Front end filtered out reportAction for being an older, deprecated report action', false, reportAction);

tests/utils/collections/reportActions.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,8 @@ const deprecatedReportActions: ReportActionName[] = [
3131
CONST.REPORT.ACTIONS.TYPE.REIMBURSEMENT_REQUESTED,
3232
CONST.REPORT.ACTIONS.TYPE.REIMBURSEMENT_SETUP_REQUESTED,
3333
CONST.REPORT.ACTIONS.TYPE.DONATION,
34+
CONST.REPORT.ACTIONS.TYPE.MOVED_TRANSACTION,
35+
CONST.REPORT.ACTIONS.TYPE.UNREPORTED_TRANSACTION,
3436
] as const;
3537

3638
export default function createRandomReportAction(index: number): ReportAction {

0 commit comments

Comments
 (0)