-
Notifications
You must be signed in to change notification settings - Fork 2.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Held requests] Hold button on expense preview appears only if open the expense first #47241
Comments
Triggered auto assignment to @jliexpensify ( |
Triggered auto assignment to @francoisl ( |
We think that this bug might be related to #wave-collect - Release 1 |
👋 Friendly reminder that deploy blockers are time-sensitive ⏱ issues! Check out the open `StagingDeployCash` deploy checklist to see the list of PRs included in this release, then work quickly to do one of the following:
|
This is definitely related to the changes I've made in the hold cleanup PR, please assign me so I can look into fixing this issue. |
I don't this this is a regression but a new case to be handled. |
Sounds good, assigned to @cdOut and going to demote to non-blocker. |
I have a feeling this is related to some other issues in this list and OpenReport. CC: @robertjchen |
It looks like this is still a strictly frontend issue? The |
The BE change has now been deployed! The child reportAction summary will now return the
|
Thank you Robert, I'll raise a PR with the newly added params for this one later today. |
Thanks @cdOut , let me know if you need anything else! |
@robertjchen I've tried implementing it with the newly added params, and while it does solve the issue of displaying properly when we can and cannot That is being done through the IOU methods |
We could send over one additional param
Which we'd set to |
@cdOut Would we need to also include multiple |
@robertjchen No, I don't think so. what we're implementing here into the context menu is supposed to be an alternative to the promoted action which we have in the report header menu, and in there we can only hold singular requests. Hold isn't currently available for the whole thread, I've attached a video as a reminder (Holding multiple requests at once is available through search, but then we have all the data loaded into onyx so we don't have to include it in this case). So I'm fairly sure we'd only have to put in a singular Screen.Recording.2024-10-22.at.06.59.51.mov |
@robertjchen Do you think the data structure I suggested for it is okay? I already have it implemented on the frontend so I could have it ready before we merge the backend changes. |
@cdOut From my understanding, instead of returning The problem is that at the point of the logic where we generate those flags on the backend, we get a list of held transactions (which implies there are multiple transactionIDs that need to be returned). This means that the Let me know if that makes sense- could you please link your draft PR so I can see where this is happening? Thanks! |
Hm the preview report action seems like the most suitable place to include this sort of data as it's very easy to read in the context menu code on the frontend, other places might prove to be problematic. I'll raise the draft PR for it in a moment and cc you so you can take a look. |
@robertjchen Here's the draft for it, I've prepared it fully to support the suggested Hold data structure. |
@cdOut I see, but the problem remains that for the report preview of the parent, we can have child reports with multiple transactions which are either on hold or not on hold. Maybe the best approach is to just return the first held transaction in |
Well if the preview is a summary of multiple expenses, we should pass |
👍 |
That makes sense, I'll look into that now |
This also means that in the case where a child transaction is on hold, but cannot be unheld (due to permissions), we will also return |
Yup, that's exactly it. If the preview contains multiple expenses or is unholdable, we return |
@robertjchen any updates on the backend for this issue? Thanks! |
Testing out some local changes at the moment, aiming on having the changes reviewed and deployed tomorrow |
Draft PR for BE changes up shortly |
@robertjchen Please ping me once that's deployed, thanks! 🙌 |
Hi everyone, unfortunately @cdOut has ended his cooperation with us and now I will take care of the completion of this issue. I will be very grateful for updates as soon as the backend is ready. |
📣 @sumo-slonik! 📣
|
Circling back to this just now, will update shortly |
If you haven’t already, check out our contributing guidelines for onboarding and email [email protected] to request to join our Slack channel!
Version Number: 9.0.19-0
Reproducible in staging?: Y
Reproducible in production?: N
If this was caught during regression testing, add the test name, ID and link from TestRail: https://expensify.testrail.io/index.php?/tests/view/4845380&group_by=cases:section_id&group_order=asc&group_id=309128
Email or phone of affected tester (no customers): [email protected]
Issue reported by: Applause Internal Team
Action Performed:
Precondition:
Steps:
Expected Result:
There should be Hold option when approver open the right click menu from expense
Actual Result:
Hold button on expense preview appears only if open the transaction thread page first
Workaround:
Unknown
Platforms:
Screenshots/Videos
Bug6569910_1723470417784.Recording__3689.mp4
View all open jobs on GitHub
The text was updated successfully, but these errors were encountered: