-
Notifications
You must be signed in to change notification settings - Fork 3k
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
[Due for payment 2025-02-18] [$250] Expense - In offline, on creating second split expense user not scrolled down to new expense. #54528
Comments
Triggered auto assignment to @sakluger ( |
Edited by proposal-police: This proposal was edited at 2024-12-24 14:06:08 UTC. ProposalPlease re-state the problem that we are trying to solve in this issue.Expense - In offline, on creating second split expense user not scrolled down to new expense. What is the root cause of that problem?hasNewestReportAction is becoming false here so we are early returning without scrolling to bottom App/src/pages/home/report/ReportActionsList.tsx Lines 425 to 429 in 126d92a
this is because when report prop passed to report action list is memorized here with the dependency being reportOnyx object App/src/pages/home/ReportScreen.tsx Lines 231 to 234 in 126d92a
but adding object as a dependency will only change the value on change of the object reference and in this case it is not changing and the memo is not recalculating on the change of report.lastVisibleActionCreated and up-to-date report data is not provided for ReportActionList so hasNewestReportAction will be false preventing the scrollThe reason why it is only happening for split is because we are directly getting the object reference of the object here and directly setting/mutating the object here and directly setting the object in optimistic data here What changes do you think we should make in order to solve the problem?We have options to solve it
and apply the same fixes if we have same problem of directly mutating onyx data and setting in optimistic data in other cases too What specific scenarios should we cover in automated tests to prevent reintroducing this issue in the future?What alternative solutions did you explore? (Optional)We can also directly pass the whole reportOnyx to ReportActionsView but I think we are intentionally memorizing to only re-render on only relevant data for performance reasons. |
Job added to Upwork: https://www.upwork.com/jobs/~021871673363207753108 |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @getusha ( |
I think @getusha may be on vacation. I'm going to leave the issue as is for the rest of this week, if he's not back yet then we can reassign to keep things moving. |
📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸 |
Triggered auto assignment to @cead22, see https://stackoverflow.com/c/expensify/questions/7972 for more details. |
📣 @FitseTLT 🎉 An offer has been automatically sent to your Upwork account for the Contributor role 🎉 Thanks for contributing to the Expensify app! Offer link |
This issue has not been updated in over 15 days. @cead22, @sakluger, @FitseTLT, @getusha eroding to Monthly issue. P.S. Is everyone reading this sure this is really a near-term priority? Be brave: if you disagree, go ahead and close it out. If someone disagrees, they'll reopen it, and if they don't: one less thing to do! |
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 9.0.95-6 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-02-18. 🎊 For reference, here are some details about the assignees on this issue:
|
@getusha @sakluger @getusha 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:
Since it's an offline issue and doesn't affect important flows, I don't think this bug is impactful enough to have a regression test. |
Thanks! Payment summary is here: #54528 (comment) |
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.78-1
Reproducible in staging?: Yes
Reproducible in production?: Yes
Issue reported by: Applause Internal Team
Device used: Redmi note 10s Android 13
App Component: Money Requests
Action Performed:
Expected Result:
In offline, on creating second split expense user must be scrolled down to new expense.
Actual Result:
In offline, on creating second split expense user not scrolled down to new expense.
Workaround:
Unknown
Platforms:
Screenshots/Videos
Bug6701767_1735043939052.Screenrecorder-2024-12-24-17-59-30-74_compress_1.mp4
View all open jobs on GitHub
Upwork Automation - Do Not Edit
Issue Owner
Current Issue Owner: @getushaThe text was updated successfully, but these errors were encountered: