Remove REPORT_ACTIONS Onyx reference from hasReportBeenForwardedSinceLastSubmit - 3 - #99817
Conversation
Codecov Report✅ Changes either increased or maintained existing code coverage, great job!
|
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 890d9b9841
ℹ️ About Codex in GitHub
Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".
| transaction, | ||
| report, | ||
| policy, | ||
| reportActions: reportActions?.[`${ONYXKEYS.COLLECTION.REPORT_ACTIONS}${report?.reportID}`], |
There was a problem hiding this comment.
Pass the merged report actions into the permission check
When Search supplies report history only through searchSnapshotData, actionsForReport correctly merges that snapshot with Onyx to locate the transaction action, but this new argument passes only the Onyx collection. A forwarded action or later resubmission present solely in the snapshot is therefore ignored, causing canEditMultipleTransactions() to expose or hide bulk editing using stale permissions; pass actionsForReport here so the permission check evaluates the same history as the rest of this loop.
Useful? React with 👍 / 👎.
…or policy, report, and transaction initialization
Explanation of Change
Fixed Issues
$ #66419
PROPOSAL: #66419
Tests
Offline tests
QA Steps
// TODO: These must be filled out, or the issue title must include "[No QA]."
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.Screenshots/Videos
Android: Native
Android: mWeb Chrome
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari