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
[Awaiting C+ payment] [$1000] App crashes on login after opening split bill details page #23568
App should not crash when we open split bill details page
Actual Result:
App crashes when we logout and login with split bill details page
Workaround:
Can the user still use Expensify without this being fixed? Have you informed them of the workaround?
Platforms:
Which of our officially supported platforms is this issue occurring on?
Android / native
Android / Chrome
iOS / native
iOS / Safari
MacOS / Chrome / Safari
MacOS / Desktop
Version Number: 1.3.45-2 Reproducible in staging?: y Reproducible in production?: y 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
Please re-state the problem that we are trying to solve in this issue.
App crashes on login after opening split bill details page
What is the root cause of that problem?
When we open split bill page by deep link, we use HOC withReportOrNotFound to display loading page if openApp API is calling
But after this API is complete, props.reportActions still is empty because it must wait openReport API is complete. That makes reportAction is empty and the app crashes when we get participantAccountIDs from reportAction
changed the title [-]App crashes on login after opening split bill details page[/-][+][$1000] App crashes on login after opening split bill details page[/+]on Jul 27, 2023
@trjExpensify This is ready for payout on 08/15 but the title wasn't updated.
Also I couldn't pinpoint to a specific PR causing this. I think we should add a regression test for this one as it is was crashing the app and related to IOU. The test steps from the PR are good enough for the regression test.
changed the title [-][$1000] App crashes on login after opening split bill details page[/-][+][Awaiting Payment August 15th] [$1000] App crashes on login after opening split bill details page[/+]on Aug 14, 2023
I think we should add a regression test for this one as it is was crashing the app and related to IOU. The test steps from the PR are good enough for the regression test.
Yeah cool, I'll ask Applause about what they think is best re: opening from deep links. We should do the same with request money as well.
changed the title [-][Awaiting Payment August 15th] [$1000] App crashes on login after opening split bill details page[/-][+][Awaiting C+ payment] [$1000] App crashes on login after opening split bill details page[/+]on Aug 15, 2023
Activity
melvin-bot commentedon Jul 25, 2023
Triggered auto assignment to @trjExpensify (
Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details.melvin-bot commentedon Jul 25, 2023
Bug0 Triage Checklist (Main S/O)
Platformsin OP are ✅)dukenv0307 commentedon Jul 25, 2023
Proposal
Please re-state the problem that we are trying to solve in this issue.
App crashes on login after opening split bill details page
What is the root cause of that problem?
When we open split bill page by deep link, we use HOC
withReportOrNotFoundto display loading page ifopenAppAPI is callingBut after this API is complete,
props.reportActionsstill is empty because it must waitopenReportAPI is complete. That makesreportActionis empty and the app crashes when we getparticipantAccountIDsfromreportActionApp/src/pages/iou/SplitBillDetailsPage.js
Lines 66 to 70 in 031b4a3
What changes do you think we should make in order to solve the problem?
We should display loading page until both report data and report action data are loaded completely
Remove the HOC
withReportOrNotFound, subscribereportandisLoadingReportDatafrom OnyxWe should add the check to return loading page before this line
App/src/pages/iou/SplitBillDetailsPage.js
Line 67 in 031b4a3
App/src/pages/iou/SplitBillDetailsPage.js
Line 67 in 031b4a3
What alternative solutions did you explore? (Optional)
NA
Result
Screencast-from-26-07-2023-01_38_16.mp4
trjExpensify commentedon Jul 27, 2023
👋 @dukenv0307 how related is this to this issue? CC: @aldo-expensify
dukenv0307 commentedon Jul 27, 2023
@trjExpensify This issue and #21268 are different issue because the root cause is different.
aldo-expensify commentedon Jul 27, 2023
If the root cause @dukenv0307 explained here is correct, they do appear unrelated to me.
trjExpensify commentedon Jul 27, 2023
Cool, will move on
externalfor now! :)[-]App crashes on login after opening split bill details page[/-][+][$1000] App crashes on login after opening split bill details page[/+]melvin-bot commentedon Jul 27, 2023
Job added to Upwork: https://www.upwork.com/jobs/~0168304d5ea41d503d
melvin-bot commentedon Jul 27, 2023
Current assignee @trjExpensify is eligible for the External assigner, not assigning anyone new.
22 remaining items
dukenv0307 commentedon Aug 1, 2023
@mananjadhav Open the PR to see more detail.
dukenv0307 commentedon Aug 1, 2023
@mananjadhav Update: I updated HOC to resolve the problem above, please help to review the PR when you have a chance.
melvin-bot commentedon Aug 2, 2023
🎯 ⚡️ Woah @mananjadhav / @dukenv0307, great job pushing this forwards! ⚡️
The pull request got merged within 3 working days of assignment, so this job is eligible for a 50% #urgency bonus 🎉
On to the next one 🚀
mananjadhav commentedon Aug 13, 2023
@trjExpensify This is ready for payout on 08/15 but the title wasn't updated.
Also I couldn't pinpoint to a specific PR causing this. I think we should add a regression test for this one as it is was crashing the app and related to IOU. The test steps from the PR are good enough for the regression test.
@Li357 wdyt?
[-][$1000] App crashes on login after opening split bill details page[/-][+][Awaiting Payment August 15th] [$1000] App crashes on login after opening split bill details page[/+]trjExpensify commentedon Aug 14, 2023
Updated the title! :)
Yeah cool, I'll ask Applause about what they think is best re: opening from deep links. We should do the same with request money as well.
mananjadhav commentedon Aug 14, 2023
Makes sense.
trjExpensify commentedon Aug 15, 2023
Okay, confirming payments as follows:
[-][Awaiting Payment August 15th] [$1000] App crashes on login after opening split bill details page[/-][+][Awaiting C+ payment] [$1000] App crashes on login after opening split bill details page[/+]mananjadhav commentedon Aug 15, 2023
I’ve raised my request on NewDot.
JmillsExpensify commentedon Aug 15, 2023
Reviewed the details for @mananjadhav. Approved for payment in NewDot based on BZ summary above.
trjExpensify commentedon Aug 15, 2023
Dope, we're all set then. Closing!