Remove Manager McTest references from frontend#91517
Closed
ishpaul777 wants to merge 5 commits into
Closed
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>
…t removal Co-authored-by: Ishpaul Singh <ishpaul777@users.noreply.github.com>
- 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>
Manager McTest is no longer referenced in the App codebase.
|
@bernhardoj 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] |
|
@bernhardoj 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] |
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.
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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 filteringEXPENSIFY_ACCOUNT_ID_MANAGER_MCTESTfrom.env.example, updatedisTestReceiptJSDoc, and removedMCTESTfromcspell.jsonThis is a fresh branch cherry-picked from PR #91084 onto current
main, replacing the original branch that had unrelated history and could not merge cleanly.Fixed 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)mainbranch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTeststeps.Screenshots/Videos
Android: Native
Android: mWeb Chrome
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari