Skip to content

Commit e774a65

Browse files
luacmartinsOSBotify
authored andcommitted
Merge pull request #60328 from Expensify/cmartins-disableMovedActions
[CP Staging] Disable moved actions (cherry picked from commit 90faa82) (CP triggered by marcaaron)
1 parent b63d6b8 commit e774a65

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
@@ -744,6 +744,10 @@ function isReportActionDeprecated(reportAction: OnyxEntry<ReportAction>, key: st
744744
CONST.REPORT.ACTIONS.TYPE.REIMBURSEMENT_SETUP_REQUESTED,
745745
CONST.REPORT.ACTIONS.TYPE.DONATION,
746746
CONST.REPORT.ACTIONS.TYPE.REIMBURSED,
747+
748+
// We're temporarily deprecating the actions below since the feature is still WIP and these actions are being shown as duplicated
749+
CONST.REPORT.ACTIONS.TYPE.UNREPORTED_TRANSACTION,
750+
CONST.REPORT.ACTIONS.TYPE.MOVED_TRANSACTION,
747751
];
748752
if (deprecatedOldDotReportActions.includes(reportAction.actionName)) {
749753
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)