-
Notifications
You must be signed in to change notification settings - Fork 3.2k
[Due for payment 2025-05-14] [$250] Expense Reports - Total amount in report header does not update after editing expense amount #61070
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
Comments
Triggered auto assignment to @garrettmknight ( |
ProposalPlease re-state the problem that we are trying to solve in this issue.Expense Reports - Total amount in report header does not update after editing expense amount What is the root cause of that problem?When the if condition below holds to be true, we use cached report name that is stored in Lines 4607 to 4613 in d391099
And the cached reportName gets updated when we update the amount (ONYXKEYS.DERIVED.REPORT_ATTRIBUTES value is change is detected) below Lines 1043 to 1049 in d391099
But the title on report header won't be updated since we are not calling getReportName after the cached reportName is updated What changes do you think we should make in order to solve the problem?We should pass personalDetails as forth argument so that we can recalculate report title here every time total amount changes rather than using cached reportName
What specific scenarios should we cover in automated tests to prevent reintroducing this issue in the future?N/A - U/I issue What alternative solutions did you explore? (Optional) |
ProposalPlease re-state the problem that we are trying to solve in this issue.The expense report header title doesn't change when the report total is updated. What is the root cause of that problem?We get the report name from reportAttributes since only report param is available (not undefined).
Lines 4606 to 4613 in d9c8c32
reportAttributes will be updated when the deps change. App/src/libs/actions/OnyxDerived/configs/reportAttributes.ts Lines 14 to 79 in d9c8c32
However, even though reportAttributes is updated, it won't trigger a re-render since we don't subscribe to it. What changes do you think we should make in order to solve the problem?Subscribe to reportAttributes and pass it to getReportName.
What specific scenarios should we cover in automated tests to prevent reintroducing this issue in the future?N/A |
Job added to Upwork: https://www.upwork.com/jobs/~021917276610174945314 |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @dukenv0307 ( |
@bernhardoj's proposal looks good to me 🎀👀🎀 C+ reviewed |
Triggered auto assignment to @NikkiWines, see https://stackoverflow.com/c/expensify/questions/7972 for more details. |
Sorry for the delay here - agreed that @bernhardoj's proposal looks good 👍 |
PR is ready cc: @dukenv0307 |
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 9.1.41-1 and is now subject to a 7-day regression period 📆. Here is the list of pull requests that resolve this issue: If no regressions arise, payment will be issued on 2025-05-14. 🎊 For reference, here are some details about the assignees on this issue:
|
@dukenv0307 @garrettmknight @dukenv0307 The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed. Please copy/paste the BugZero Checklist from here into a new comment on this GH and complete it. If you have the K2 extension, you can simply click: [this button] |
BugZero Checklist:
Bug classificationSource of bug:
Where bug was reported:
Who reported the bug:
Regression Test ProposalTest:
Do we agree 👍 or 👎 |
Payment Summary
BugZero Checklist (@garrettmknight)
|
Request payment when you're ready! |
Requested in ND. |
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.1.33-3
Reproducible in staging?: Y
Reproducible in production?: Y
If this was caught during regression testing, add the test name, ID and link from TestRail: #60694
Email or phone of affected tester (no customers): [email protected]
**Issue reported by:**n Applause - Internal Team
Action Performed:
Precondition:
Expected Result:
The total amount in the report header "x owes amount" will update to the latest amount
Actual Result:
The total amount in report header does not update after editing expense amount
Workaround:
Unknown
Platforms:
Select the officially supported platforms where the issue was reproduced:
Platforms Tested:
On which of our officially supported platforms was this issue tested:Screenshots/Videos
Add any screenshot/video evidence
Bug6816274_1745922134381.20250429_181844.mp4
View all open jobs on GitHub
Upwork Automation - Do Not Edit
Issue Owner
Current Issue Owner: @garrettmknightThe text was updated successfully, but these errors were encountered: