-
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
[$250] Invoices - Invoice preview sender appears and disappears when sending invoices consecutively #51128
Comments
Triggered auto assignment to @slafortune ( |
@slafortune 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.Invoices - Invoice preview sender appears and disappears when sending invoices consecutively What is the root cause of that problem?When we want to display the report, we check if the The App/src/pages/home/report/ReportActionsList.tsx Lines 522 to 525 in 66cf824
App/src/libs/ReportActionsUtils.ts Line 581 in 66cf824
When we send the invoice we pass the wrong actorAccountID and after waiting a while after BE response, the BE return correct actorAccountID, because that we can see the report preview header is briefly showed and then disappear Line 5046 in 66cf824
Line 4495 in 66cf824
As we can see the above code for managerID we're passing the receiverAccountID which is not correct Line 1946 in 66cf824
Right here we pass the above data(reportPreviewAction) to onyx Line 1974 in 66cf824
So when we test on offline mode we can see the report preview header unless you turn on the Internet What changes do you think we should make in order to solve the problem?Instead of passing the receiverAccountID here, we should pass the currentAccountID Line 4495 in 66cf824
ownerAccountID: currentUserAccountID
ResultScreen.Recording.2024-10-19.at.21.15.25.movWhat alternative solutions did you explore? (Optional)In here we can use Line 5046 in 66cf824
|
Job added to Upwork: https://www.upwork.com/jobs/~021848369344890325291 |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @hoangzinh ( |
@NJ-2020 RCA and his alternative solution look good to me. Just a minor suggestion: we can add an additional check that if the report is an 🎀👀🎀 C+ reviewed |
Triggered auto assignment to @chiragsalian, see https://stackoverflow.com/c/expensify/questions/7972 for more details. |
LGTM, feel free to create the PR @NJ-2020 |
📣 @hoangzinh 🎉 An offer has been automatically sent to your Upwork account for the Reviewer role 🎉 Thanks for contributing to the Expensify app! |
📣 @NJ-2020 🎉 An offer has been automatically sent to your Upwork account for the Contributor role 🎉 Thanks for contributing to the Expensify app! Offer link |
PR ready |
If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!
Version Number: 9.0.51-1
Reproducible in staging?: Y
Reproducible in production?: Y
If this was caught during regression testing, add the test name, ID and link from TestRail: https://expensify.testrail.io/index.php?/tests/view/5102388
Email or phone of affected tester (no customers): applausetester+kh081006@applause.expensifail.com
Issue reported by: Applause Internal Team
Action Performed:
Expected Result:
The invoice preview sender will not appear and disappear when sending invoices consecutively.
Actual Result:
The invoice preview sender appears then disappears when sending invoices consecutively.
Workaround:
Unknown
Platforms:
Screenshots/Videos
Bug6639618_1729340608381.20241019_201144.mp4
View all open jobs on GitHub
Upwork Automation - Do Not Edit
Issue Owner
Current Issue Owner: @hoangzinhThe text was updated successfully, but these errors were encountered: