-
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
[$500] Scan - Request count in expense preview is reduced by one when there is a scanning request #37981
Comments
Triggered auto assignment to @mallenexpensify ( |
We think that this bug might be related to #wave5 |
@mallenexpensify FYI I haven't added the External label as I wasn't 100% sure about this issue. Please take a look and add the label if you agree it's a bug and can be handled by external contributors |
ProposalPlease re-state the problem that we are trying to solve in this issue.Scan - Request count in expense preview is reduced by one when there is a scanning request What is the root cause of that problem?In the The
That is why, in the App/src/components/ReportActionItem/ReportPreview.tsx Lines 145 to 147 in 9302ade
What changes do you think we should make in order to solve the problem?When calculating the Therefore, we will create a constant number called Psuedo-code
|
@Tony-MK , were you able to reproduce this one ? I tried to but no luck or did i miss something? |
Job added to Upwork: https://www.upwork.com/jobs/~0135166f6fdd577501 |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @shubham1206agra ( |
I was able to reproduce . @shubham1206agra , can you also please try then review the proposal above? Thx |
ProposalPlease re-state the problem that we are trying to solve in this issue.The expense preview will display "1 request, 1 scanning" when there are 2 manual requests and 1 hidden request What is the root cause of that problem?When the money request submitted from the Employee is scanning, it's considered as a hidden request ("Whisper report action" to the Employee) and will not show in the Admin side in the IOU. We can validate that by going to the IOU in the above case for Admin account in the OP, there'll only be 2 money requests, it's also evident in the code here. However, when getting the transactions to show in the Report preview here, we're not filtering out the "hidden" transactions, meanwhile the What changes do you think we should make in order to solve the problem?
We can optionally do the above inside a lower-level method like
What alternative solutions did you explore? (Optional)An alternate of 1. is we can include the parentReportActionID of the money request report in the transactions data returned by back-end (and in optimistic data when creating the transaction), this will make the change more straight-forward. But this will require back-end change. |
@mallenexpensify Can you get this internal to check Pusher if this is indeed the case? It might get fixed with BE only. |
@shubham1206agra Unfortunately it won't, the part where it shows "1 request, 1 scanning" even though there's no scanning request in the IOU, only 2 manual requests, will still remain. There're 2 parts for the problem:
The Pusher fix will fix 2, but not 1. |
Ok, then we can hold for BE changes first. |
We discussed this is channel, @mallenexpensify. Let's close it. Using "whispers" for scanning receipts is being removed. |
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: 1.4.49-0
Reproducible in staging?: Y
Reproducible in production?: Y
If this was caught during regression testing, add the test name, ID and link from TestRail: N/A
Issue reported by: Applause - Internal Team
Action Performed:
Expected Result:
The expense preview will display "2 requests, 1 scanning" because there are 2 manual requests and 1 hidden request
Actual Result:
The expense preview will display "1 request, 1 scanning" when there are 2 manual requests and 1 hidden request
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
Add any screenshot/video evidence
Bug6407013_1709908802762.20240308_222404.mp4
View all open jobs on GitHub
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: