Conversation
|
Hey @luacmartins, coming from #60436 (comment).
|
|
@Tony-MK I'm getting a |
|
@Tony-MK when making a PR please make sure to add the link to the issue after the dollar sign under the Unassigning myself as I assume that @luacmartins is the CME here based on this comment |
|
I'm sorry about that. We don't have an issue with this, and did not know what to link it to. |
|
@Tony-MK is this PR ready for review? |
|
@luacmartins, Yes, it's ready for review. |
|
Hey @luacmartins, quck question. Besides App/src/hooks/useSelectedTransactionsActions.ts Lines 146 to 153 in 6871ba9 |
|
Reviewing today. |
|
A problem I noticed is that if we:
We're taken back to the Expense Report but with only the 'Submit' button showing, wereas if we had simply created a single request and held it this would show 'Remove hold' button. Screen.Recording.2025-05-22.at.13.29.19.mov |
@Tony-MK unhold still doesn't have a bulk API. I can work on adding that. |
|
@Ollyws, I think that bug is caused by App/src/libs/ReportActionsUtils.ts Lines 1240 to 1243 in 54919d4 App/src/libs/ReportPrimaryActionUtils.ts Lines 206 to 210 in 9a3e530
|
|
@Tony-MK Yeah that seems to be the culprit, returning undefined in isRemoveHoldAction |
@Ollyws, By removing deleted IOU actions What do you think? |
|
@Tony-MK I see tests failing with |
|
@luacmartins, Synced. All good. |
|
@Tony-MK we have conflicts now 😞 |
|
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
|
🚀 Deployed to staging by https://github.com/luacmartins in version: 9.1.60-1 🚀
|
| ); | ||
|
|
||
| // If we are holding from the search page, we optimistically update the snapshot data that search uses so that it is kept in sync | ||
| if (searchHash) { |
There was a problem hiding this comment.
The searchHash is not falsey when we are NOT in the search, it is -1, this is causing this: #63614
There was a problem hiding this comment.
Doesn't seem to be as simple as this, even if I change this check to searchHash !== -1 there is still a problem because we can still get a searchHash (I'm getting 72317659) and I'm not holding from the search. I think the final solution would be to check that the transaction actually exists in onyx so we don't merge incomplete stuff or something like that.
There was a problem hiding this comment.
Thanks, let me look into it.
|
🚀 Deployed to production by https://github.com/roryabraham in version: 9.1.61-0 🚀
|
|
🚀 Deployed to staging by https://github.com/luacmartins in version: 9.1.62-0 🚀
|
|
🚀 Deployed to production by https://github.com/Julesssss in version: 9.1.62-0 🚀
|


Explanation of Change
Utilizing the new
BulkHoldRequestendpoint to avoid callingHoldRequestN times.Fixed Issues
$ #62503
PROPOSAL: #62503 (comment)
Tests
Offline tests
QA Steps
// TODO: These must be filled out, or the issue title must include "[No QA]."
Same as tests
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectioncanBeMissingparam foruseOnyxtoggleReportand notonIconClick)src/languages/*files and using the translation methodSTYLE.md) were followedAvatar, I verified the components usingAvatarare working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG))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.-.Native.mov
Android: mWeb Chrome
Android.-.mWeb.mov
iOS: Native
iOS.mov
iOS: mWeb Safari
iOS.-.Native.mov
MacOS: Chrome / Safari
macOS.-.Chrome.mov
MacOS: Desktop
macOS.-.Desktop.mov