-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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 2024-11-14] [$250] Split - App crashes when opening user profile from split preview RHP offline then online #50786
Comments
Triggered auto assignment to @puneetlath ( |
@puneetlath FYI I haven't added the External label as I wasn't 100% sure about this issue. Please take a look and add the label if you agree it's a bug and can be handled by external contributors |
Edited by proposal-police: This proposal was edited at 2024-10-15 10:05:56 UTC. ProposalPlease re-state the problem that we are trying to solve in this issue.App crashes when opening user profile from split preview RHP offline then online What is the root cause of that problem?The
What changes do you think we should make in order to solve the problem?We should update like this
We should do the same for What alternative solutions did you explore? (Optional) |
ProposalPlease re-state the problem that we are trying to solve in this issue.App crashes when creating a new group and open a split bill details while offline then turn online. What is the root cause of that problem?The app crashes because the useOnyx key of the parentReport here changes from a collection key (report_) to a collection member key (report_undefined). App/src/pages/home/report/withReportAndReportActionOrNotFound.tsx Lines 40 to 41 in b4b5965
The parentReport relies on the report Lines 5359 to 5375 in b4b5965
But because it defaults to an empty string, an empty string of parentReportID is set. Line 5293 in b4b5965
So, the onyx key will be report_. When the API is success, the parentReportID attribute is removed, so accessing it leads to undefined value (report_undefined). What changes do you think we should make in order to solve the problem?We should change the default value to undefined instead of empty string. Line 5293 in b4b5965
We can optionally update/simplify this
|
Job added to Upwork: https://www.upwork.com/jobs/~021846204527381661299 |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @alitoshmatov ( |
ProposalPlease re-state the problem that we are trying to solve in this issue.App crashes when opening user profile from split preview RHP offline then online What is the root cause of that problem?The app crashes because the useOnyx key of the parentReport and reportActions here changes from a collection key (report_, reportActions_) to a collection member key (report_undefined, reportActions_undefined).
What changes do you think we should make in order to solve the problem?I changed the Ternary (Conditional) Operator for avoiding 'report_undefined' and 'reportActions_undefined' and it works fine. What alternative solutions did you explore? (Optional)We can't use '-1' for key. I tested with key as 'report_-1' and 'reportActions_-1' and app crashed. Contributor detailsYour Expensify account email: [email protected] |
📣 @Anaslancer! 📣
|
@puneetlath, @alitoshmatov Whoops! This issue is 2 days overdue. Let's get this updated quick! |
📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸 |
@puneetlath, @alitoshmatov 6 days overdue. This is scarier than being forced to listen to Vogon poetry! |
@nkdengineer Thank you for your proposal, your RCA is correct and it solution solve the issue |
@bernhardoj Thank you for your proposal, your RCA is correct. Your solution also solve the issue, but since it is changing a |
@Anaslancer Thank you for your proposal, your RCA is correct and your solution is similar to @nkdengineer 's |
I think we can with @nkdengineer 's solution. Since it was the first proposal C+ reviewed 🎀 👀 🎀 |
☝️ C+ reviewed 🎀 👀 🎀 |
Current assignee @puneetlath is eligible for the choreEngineerContributorManagement assigner, not assigning anyone new. |
📣 @alitoshmatov 🎉 An offer has been automatically sent to your Upwork account for the Reviewer role 🎉 Thanks for contributing to the Expensify app! |
📣 @nkdengineer 🎉 An offer has been automatically sent to your Upwork account for the Contributor role 🎉 Thanks for contributing to the Expensify app! Offer link |
@puneetlath, @alitoshmatov, @nkdengineer Eep! 4 days overdue now. Issues have feelings too... |
@alitoshmatov The PR is ready. |
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 9.0.58-2 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 2024-11-14. 🎊 For reference, here are some details about the assignees on this issue:
|
@alitoshmatov @puneetlath 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:
No need |
We have switched to ND for payments, I requested payment via ND. |
Waiting on payment summary |
Payment summary:
Thanks everyone! |
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.49-0
Reproducible in staging?: Y
Reproducible in production?: Y
If this was caught during regression testing, add the test name, ID and link from TestRail: https://expensify.testrail.io/index.php?/tests/view/5083991
Email or phone of affected tester (no customers): [email protected]
Issue reported by: Applause Internal Team
Action Performed:
Expected Result:
App will not crash.
Actual Result:
App crashes.
Workaround:
Unknown
Platforms:
Screenshots/Videos
Bug6635031_1728983494310.20241015_170501.mp4
1510_1.txt
View all open jobs on GitHub
Upwork Automation - Do Not Edit
Issue Owner
Current Issue Owner: @alitoshmatovThe text was updated successfully, but these errors were encountered: