Open IuliiaHerets opened 6 days ago
Triggered auto assignment to @greg-schroeder (Bug
), see https://stackoverflow.com/c/expensify/questions/14418 for more details. Please add this bug to a GH project, as outlined in the SO.
@greg-schroeder 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
Job added to Upwork: https://www.upwork.com/jobs/~021833945245991752277
Triggered auto assignment to Contributor-plus team member for initial proposal review - @s77rt (External
)
I've investigated the issue, and it appears that the problem lies not with the frontend but with the API call for GetMissingOnyxMessages
. This API is not returning the updated total for the report, which is why the frontend isn't reflecting the changes.
However, when a user switches to a different chat and then returns to the original chat, the OpenReport
API is triggered, and it successfully retrieves the updated total for the report, allowing the user to see the correct information.
@s77rt @greg-schroeder
hi @jestinjoshi and other folks
I’ve tried reproducing the issue following the description and video, but it’s a bit unclear and takes some time to follow. In my case, everything seems to work fine. Could someone please provide clearer steps or confirm if they can reproduce the issue?
@jestinjoshi Were you able to reproduce the bug? In my case I didn't get the moved expense showing up at all, I had to switch chats and got it correctly
https://github.com/user-attachments/assets/1330b8f9-92bc-4f79-99ce-674a2cd7e83c
cc @AttockOffice85 above video may help
Hey folks, just as @jestinjoshi mentioned, I also believe it's from the API call, and I think adding a useMemo would fix the problem.
📣 @Michael-Obele! 📣 Hey, it seems we don’t have your contributor details yet! You'll only have to do this once, and this is how we'll hire you on Upwork. Please follow these steps:
Contributor details
Your Expensify account email: <REPLACE EMAIL HERE>
Upwork Profile Link: <REPLACE LINK HERE>
Contributor details Your Expensify account email: amachree9630@gmail.com Upwork Profile Link: https://www.upwork.com/freelancers/~010aff84665e3ea1e9
✅ Contributor details stored successfully. Thank you for contributing to Expensify!
I was able to reproduce the issue, but not following the steps outlined by OP.
To reproduce the issue:
GetMissingOnyxMessages
API call to refresh the report. Note that sometimes the API gets triggered automatically by Pusher, but I haven't been able to figure out the exact conditions for this behavior.The total is calculated from iouReport
which is not being updated with the latest total value.
To fix this issue, GetMissingOnyxMessages
API should return iouReport.total
(report_{reportKey}
) in its response.
@AttockOffice85 @s77rt @Michael-Obele
@Michael-Obele Can you please elaborate how this is a backend issue and were you able to reproduce the bug?
@jestinjoshi That's a different bug. I still get the expense itself showing the correct amount
@Michael-Obele Can you please elaborate how this is a backend issue and were you able to reproduce the bug?
Although I have not quite figured it out, I believe the issue is more with how the component retrieves the balance after the money is moved to a different category. For this reason, I proposed using a useMemo to include the balance so it is recomputed after the money is moved to a different category.
That's a different bug. I still get the expense itself showing the correct amount
@s77rt OP is highlighting an issue where the correct total amount is not being updated, as described in their Expected Result
section. If you watch the end of the video shared by OP, you'll notice that when they move the expenses to a new report, the number of expenses is updated, but the total amount in the report does not reflect the correct value.
Although I followed a different set of steps to reproduce the issue, the core problem remains the same.
@s77rt I was able to reproduce the issue and have created a video with audio explaining the problem. As mentioned earlier, the issue is still related to the GetMissingOnyxMessages
API. I hope the video helps clarify the problem.
https://github.com/user-attachments/assets/881f507b-9a0b-48bf-a86d-3ed437af19f3
I'm having trouble reproducing this bug because I can't see the policy expense chat (asked in slack) but I agree this is something to fix in the backend.
Edit: I'm able to reproduce now
https://github.com/user-attachments/assets/7555ae83-6585-43a2-8c81-9ccf92f3a908
🎀 👀 🎀 Internal
Triggered auto assignment to @madmax330, see https://stackoverflow.com/c/expensify/questions/7972 for more details.
@madmax330, @s77rt, @greg-schroeder Uh oh! This issue is overdue by 2 days. Don't forget to update your issues!
@madmax330 can you confirm this should be an Internal
issue based on the above discussion? I'm not super sure on the BE requirements here
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: v9.0.32-0 Reproducible in staging?: Y Reproducible in production?: Y Email or phone of affected tester (no customers): gibethlehem@gmail.com Issue reported by: Applause Internal Team
Action Performed:
Precondition: Create a workspace add an employee
As an employee
Expected Result:
Moved expense show the correct amount of money.
Actual Result:
Moved expense shows $0.00 on ND. The correct amount comes only after navigating to the report
Workaround:
Unknown
Platforms:
Screenshots/Videos
https://github.com/user-attachments/assets/99f3b352-0bd4-40e9-8182-0e32724d8001
View all open jobs on GitHub
Upwork Automation - Do Not Edit
Issue Owner
Current Issue Owner: @s77rt