-
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 #27168] [$1000] Payments - App crashes when navigating to enable payments page before logging in #26021
Comments
Triggered auto assignment to @NicMendonca ( |
Bug0 Triage Checklist (Main S/O)
|
ProposalPlease re-state the problem that we are trying to solve in this issue.Payments - App crashes when navigating to enable payments page before logging in What is the root cause of that problem?Problem came from this function when we tried to get the
App/src/libs/actions/PersonalDetails.js Line 100 in c169952
What changes do you think we should make in order to solve the problem?We should add loading check inside our // personalDetailsList from ONYXKEYS.PERSONAL_DETAILS_LIST
if (!_.isPersonalDetailsReady(personalDetailsList) || _.isEmpty(currentPersonalDetails)) {
return <FullscreenLoading />
} function isPersonalDetailsReady(personalDetails) {
return !_.isEmpty(personalDetails) && _.some(_.keys(personalDetails), (key) => personalDetails[key].accountID);
} Also adding a defaultValue for Other screens that used the What alternative solutions did you explore? (Optional)N/A |
ProposalPlease re-state the problem that we are trying to solve in this issue.App crashes when navigating to the enable payments page before logging What is the root cause of that problem?when login currentUserPersonalDetails having only accountID remaining is not set Why means after signin it will fetch personaldeatils information from back end and set to onyx and before sign we are trying to reach /enabled-payments page so after signin it will directly render to that page. before loading What changes do you think we should make in order to solve the problem?
|
ProposalPlease re-state the problem that we are trying to solve in this issue.Payments - App crashes when navigating to enable payments page before logging in What is the root cause of that problem?
What changes do you think we should make in order to solve the problem?In the App/src/pages/EnablePayments/EnablePaymentsPage.js Lines 53 to 55 in c029dc5
So it only renders child components whenever the |
Job added to Upwork: https://www.upwork.com/jobs/~0185374146bc15359c |
Current assignee @NicMendonca is eligible for the External assigner, not assigning anyone new. |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @cubuspl42 ( |
@cubuspl42 some proposals for you to review here! ^ |
@NicMendonca This is next on my list! I'll start reviewing them tomorrow morning, i.e. in ~10 hours |
@hungvu193 While the solution might work on the technical level, your root cause analysis is a bit shallow. You focused on what's happening on the programming language level, not on what's happening from the broader perspective and why. @hoangzinh Your root cause analysis sounds reasonable. Could you elaborate a bit on the solution part? As I understand it, the missing (not-yet-loaded) data is the current user personal details. That doesn't sound like a part of the "report data", what am I missing? Is the semantics of |
I proposed using |
@cubuspl42 Yeah, the Onyx key name |
I think we should check above flag |
I say we go with the @hoangzinh proposal. The root cause analysis is the clearest and the proposed solution sounds reasonable to me. C+ reviewed 🎀 👀 🎀 |
Triggered auto assignment to @robertjchen, see https://stackoverflow.com/c/expensify/questions/7972 for more details. |
Thanks, reviewing this now |
Agreed with @hoangzinh 's analysis and approach 👍 |
Somehow in latest main branch, after sign in, the App could not redirect to the Lines 170 to 173 in 8150ce0
|
I know that there were some last minute changes to navigation before the conference. The "demos" mentioned in your snippet are supposed to be gone soon, if I understand this right. |
I worry that we can't reproduce this bug anymore. cc @esh-g if you still reproduce this bug. |
I also asked on Slack whether the change is intentional |
Could we please hold this on this bug? I know that the PR is already created, but it's not our fault that that bug was introduced, and it makes difficult to properly verify the fix for our issue. Unfortunately, there's still no GH for the mentioned thing, so we can "[HOLD Broken deeplinks]" or something like that. |
This is the GH issue: #27168 |
@NicMendonca Please add a hold on #27168 |
This issue has not been updated in over 15 days. @robertjchen, @cubuspl42, @hoangzinh, @NicMendonca 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! |
Still on hold |
still on hold |
@cubuspl42 @robertjchen it looks like it's fixed somewhere. I couldn't reproduce this issue in the latest main. Screen.Recording.2023-11-30.at.23.57.10.mov |
Conclusion: if you hold for long enough, the issue fixes itself 😅 |
So I think the next step should be payment, and then closing this issue 🤔 |
It's a delicate topic, but there probably will be no payment. Unless it's a very special case (which this one isn't), payments are done for merged PRs. I'm sorry about this, but this is one of the inherent risks associated with our process. |
Ah @cubuspl42 fyi, this case is the same as step 19. in Updated process section of https://docs.google.com/document/d/1BvohU05MTaHnjOD_vwJv_aqDAirv-ChkyRnKCAvOVyQ |
cc @NicMendonca can you help process payment here then we can close this issue? ^ Thanks |
It seems you're right |
everyone's been paid! |
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:
There should be no crash and it should show the page
Actual Result:
The app crashes
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Version Number: 1.3.57-5
Reproducible in staging?: Yes
Reproducible in production?: Yes
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
Screen.Recording.2023-08-18.at.9.01.47.PM.mov
Recording.3000.mp4
Expensify/Expensify Issue URL:
Issue reported by: @esh-g
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1692372864188139
View all open jobs on GitHub
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: