You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[HOLD for payment 2023-08-28] [$1000] Offline mode: Crash after deleting Split Bill request #25481
👋 Friendly reminder that deploy blockers are time-sensitive ⏱ issues! Check out the open StagingDeployCash deploy checklist to see the list of PRs included in this release, then work quickly to do one of the following:
Identify the pull request that introduced this issue and revert it.
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
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
Activity
melvin-bot commentedon Aug 18, 2023
Triggered auto assignment to @MitchExpensify (
Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details.melvin-bot commentedon Aug 18, 2023
Bug0 Triage Checklist (Main S/O)
Platformsin OP are ✅)OSBotify commentedon Aug 18, 2023
👋 Friendly reminder that deploy blockers are time-sensitive ⏱ issues! Check out the open
StagingDeployCashdeploy checklist to see the list of PRs included in this release, then work quickly to do one of the following:melvin-bot commentedon Aug 18, 2023
Triggered auto assignment to @johnmlee101 (
Engineering), see https://stackoverflow.com/c/expensify/questions/4319 for more details.tranvantoan-qn commentedon Aug 18, 2023
FYI: This crash happens on ALL platforms, not only Android as specified in the issue Title
pradeepmdk commentedon Aug 18, 2023
Proposal
Please 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
App/src/libs/actions/IOU.js
Lines 1109 to 1113 in a068ca5
here when offline mode
optimisticDatawill execute so it's set as a null. when onyx null it will remove from local databaseWhat changes do you think we should make in order to solve the problem?
And here we need update
App/src/components/ReportActionItem/MoneyRequestAction.js
Lines 133 to 136 in a068ca5
to
because this
isIOUReportPendingCurrencyConversionis expecting theiouReportparam onlyApp/src/libs/IOUUtils.js
Lines 77 to 79 in a068ca5
This Pr is modified the function
https://github.com/Expensify/App/pull/24345/files
result
Screen.Recording.2023-08-18.at.8.41.45.PM.mov
68 remaining items
roryabraham commentedon Aug 22, 2023
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
Pujan92 commentedon Aug 22, 2023
@marcaaron @roryabraham For non-collection also we are updating with a null value, so do we need to avoid that also?
marcaaron commentedon Aug 22, 2023
No, we cannot do this. At least for now, it's the only way a subscriber can know that some data has been removed.
MitchExpensify commentedon Aug 29, 2023
Paid and contracts ended #25481 (comment)
MitchExpensify commentedon Aug 29, 2023
Bump BZ steps #25481 (comment)
roryabraham commentedon Sep 1, 2023
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
MitchExpensify commentedon Sep 1, 2023
Thanks @roryabraham! Looks like this can be closed in that case