-
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
[HOLD for payment 2023-08-28] [$1000] Offline mode: Crash after deleting Split Bill request #25481
Comments
Triggered auto assignment to @MitchExpensify ( |
Bug0 Triage Checklist (Main S/O)
|
👋 Friendly reminder that deploy blockers are time-sensitive ⏱ issues! Check out the open
|
Triggered auto assignment to @johnmlee101 ( |
FYI: This crash happens on ALL platforms, not only Android as specified in the issue Title |
ProposalPlease re-state the problem that we are trying to solve in this issue.Offline mode: Crash after deleting Split Bill request What is the root cause of that problem?in offline after deleting transaction its updated to null because its completed removed from onyx App/src/libs/TransactionUtils.js Line 196 in a068ca5
Lines 1109 to 1113 in a068ca5
here when offline mode optimisticData will execute so it's set as a null. when onyx null it will remove from local database
What changes do you think we should make in order to solve the problem?
function getAllReportTransactions(reportID) {
return _.filter(allTransactions, (transaction) => transaction && transaction.reportID === reportID);
} And here we need update App/src/components/ReportActionItem/MoneyRequestAction.js Lines 133 to 136 in a068ca5
to
because this Lines 77 to 79 in a068ca5
This Pr is modified the function resultScreen.Recording.2023-08-18.at.8.41.45.PM.mov |
@MitchExpensify you can verify on the web also. because its not a platform specfic |
Ok awesome, trying that now @pradeepmdk ! |
On mobile, for the crash to occur, we will need to return to the LHN and then navigate to other reports, as demonstrated here: Mobile.mp4 |
Reproduced! |
Job added to Upwork: https://www.upwork.com/jobs/~01e588feb8af6feae9 |
Current assignee @MitchExpensify is eligible for the External assigner, not assigning anyone new. |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @ArekChr ( |
Payment summary: Reporting - $250 via Upwork to @tranvantoan-qn |
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.3.55-8 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 2023-08-28. 🎊 After the hold period is over and BZ checklist items are completed, please complete any of the applicable payments for this issue, and check them off once done.
For reference, here are some details about the assignees on this issue:
As a reminder, here are the bonuses/penalties that should be applied for any External issue:
|
BugZero Checklist: The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed:
|
Hmm actually - I think @roryabraham you are suggesting something like: Given this setup:
When this happens:
We would expect this:
If so, that makes sense to me and does sound like the real root cause. We should fix it in Onyx? |
@marcaaron Yes, if we fixed it in Onyx that is the best solution here |
Agree @marcaaron that's the real root cause and we should fix it in Onyx. Didn't do that today because I wanted to get the deploy out as quickly as possible, but I made a follow-up issue here: Expensify/react-native-onyx#310 |
@marcaaron @roryabraham For non-collection also we are updating with a null value, so do we need to avoid that also? |
No, we cannot do this. At least for now, it's the only way a subscriber can know that some data has been removed. |
Paid and contracts ended #25481 (comment) |
Bump BZ steps #25481 (comment) |
I checked off my pieces in the BZ checklist. The main takeaway here is that the root cause was actually a bug in Onyx, and I'm working on fixing that in Expensify/react-native-onyx#311 |
Thanks @roryabraham! Looks like this can be closed in that case |
If you haven’t already, check out our contributing guidelines for onboarding and email [email protected] to request to join our Slack channel!
Action Performed:
Expected Result:
App should not crash
Actual Result:
App Crashes
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Version Number: v1.3.55-1
Reproducible in staging?: Y
Reproducible in production?: N
If this was caught during regression testing, add the test name, ID and link from TestRail:
Email or phone of affected tester (no customers):
Logs: https://stackoverflow.com/c/expensify/questions/4856
Notes/Photos/Videos: Any additional supporting documentation
split-request-crash.mp4
Screen.Recording.20230817.183513.New.Expensify.mp4
Expensify/Expensify Issue URL:
Issue reported by: @tranvantoan-qn
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1692279822439699
View all open jobs on GitHub
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: