Remove Manager McTest references from frontend#91084
Conversation
Manager McTest is no longer supported on the backend. This removes all frontend references including constants, utility functions, special handling in money request flows, Quick Action Bar restrictions, and participant filtering logic. Co-authored-by: Ishpaul Singh <ishpaul777@users.noreply.github.com>
…Policy and spy canCreateRequest The per diem test mocked isPaidGroupPolicy but the source code calls isControlPolicy. Both per diem and time tracking positive tests also need canCreateRequest mocked since the minimal test data doesn't satisfy the real canCreateRequest conditions. Co-authored-by: Ishpaul Singh <ishpaul777@users.noreply.github.com>
|
Fixed the failing
All 11 tests now pass. |
Codecov Report❌ Looks like you've decreased code coverage for some files. Please write tests to increase, or at least maintain, the existing level of code coverage. See our documentation here for how to interpret this table.
|
…cTest Co-authored-by: Ishpaul Singh <ishpaul777@users.noreply.github.com>
…tead of policy ID string After merging main, the new shouldRestrictUserBillableActions calls from PR \#88363 were passing defaultExpensePolicy.id (a string) where the function expects OnyxEntry<Policy>. This fixes all 5 call sites. Co-authored-by: Ishpaul Singh <ishpaul777@users.noreply.github.com>
|
Fixed the failing typecheck: after merging main, the new |
…t removal Co-authored-by: Ishpaul Singh <ishpaul777@users.noreply.github.com>
|
Fixed the failing ESLint checks: removed unused imports and variables left over from the Manager McTest removal ( The Jest failure in |
|
@MelvinBot the action are not running please run those |
|
The CI actions are already running — all checks currently show |
|
MelvinBot has made 5 consecutive commits trying to fix CI failures. Automatic CI fix dispatches are now paused for this PR. Next steps: A human should review the recent commits and resolve the conflicting CI errors manually. |
|
@codex review |
|
Codex Review: Didn't find any major issues. What shall we delve into next? ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
|
@MelvinBot please make it ready for review |
|
PR has been marked as ready for review as requested.
|
|
@linhvovan29546 Please copy/paste the Reviewer Checklist from here into a new comment on this PR and complete it. If you have the K2 extension, you can simply click: [this button] |
|
@MelvinBot please suggest testing steps for this and add it in PR description |
|
Updated the PR description with suggested testing steps covering the key areas affected by the Manager McTest removal:
Please review and adjust as needed before testing. |
|
@MelvinBot a few things to address before this is ready:
|
- Update JSDoc comment on isTestReceipt in Transaction.ts (remove manager_mctest reference) - Delete dangling EXPENSIFY_ACCOUNT_ID_MANAGER_MCTEST from .env.example - Restore eslint-disable comment in useSearchBulkActions.ts (unrelated removal) Co-authored-by: Ishpaul Singh <ishpaul777@users.noreply.github.com>
|
@ZhenjaHorbach Please copy/paste the Reviewer Checklist from here into a new comment on this PR and complete it. If you have the K2 extension, you can simply click: [this button] |
|
Pushed fixes in f069557:
Re: unrelated Note: I was unable to merge main into this branch due to unrelated histories (the branch was created from a standalone snapshot). If a main sync is needed, the branch may need to be recreated. |
joekaufmanexpensify
left a comment
There was a problem hiding this comment.
Good for product
|
@MelvinBot Please remove |
|
Good catch — I can see MCTEST in cspell.json. However, I can only make code changes when directed by the PR author, an assignee, or an existing co-author. To have me implement this, the PR assignee (ishpaul777) should reply with a request tagging me. |
Reviewer Checklist
Screenshots/VideosAndroid: HybridAppAndroid: mWeb ChromeiOS: HybridAppiOS: mWeb SafariMacOS: Chrome / Safari |
|
@ishpaul777 I can still search for |
|
|
|
Yeah, I mean deleting it from the db |

Explanation of Change
Manager McTest is no longer supported on the backend. This PR removes all frontend references to Manager McTest, including:
EMAIL.MANAGER_MCTEST,BETAS.NEWDOT_MANAGER_MCTEST,ACCOUNT_ID.MANAGER_MCTEST, and exclusion list entriesisSelectedManagerMcTest(),isTestTransactionReport(),getManagerMcTestParticipant(),isManagerMcTestQuickActionReport(),getRestrictedLogins()buildOptimisticIOUReportAction,buildOptimisticReportPreview,getMoneyRequestOptions,shouldDisableThread, money request builder flows, scan receipt participant routing, Quick Action Bar restrictions, and participant search filteringFixed Issues
$ #91068
Tests
Create an expense (Submit flow)
Create an expense (Split flow)
Duplicate expense action
Quick Action Bar
Search participants
Thread creation
Verify no console errors
Offline tests
N/A — this is a code removal PR with no new offline behavior.
QA Steps
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectiontoggleReportand notonIconClick)src/languages/*files and using the translation methodSTYLE.md) were followedAvatar, I verified the components usingAvatarare working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG))npm run compress-svg)Avataris modified, I verified thatAvataris working as expected in all cases)Designlabel and/or tagged@Expensify/designso the design team can review the changes.ScrollViewcomponent to make it scrollable when more elements are added to the page.mainbranch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTeststeps.AI Tests
npm run typecheck-tsgonpm run lint-changednpm run prettiernpm test -- ReportUtilsTest, QuickActionUtilsTest, OptionsListUtilsTest, PersonalDetailOptionsListUtilsTest, IOUTest, MoneyRequestTest, useReceiptScanScreenshots/Videos
Android: Native
Android: mWeb Chrome
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari