-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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
[PAID] [$500] Web - Signing show empty content when pressing go back from another tab. #30288
Comments
Job added to Upwork: https://www.upwork.com/jobs/~011276a45d6462ac66 |
Triggered auto assignment to @strepanier03 ( |
Bug0 Triage Checklist (Main S/O)
|
Triggered auto assignment to Contributor-plus team member for initial proposal review - @situchan ( |
Hi @kbecciv. Maybe I'm wrong, but I think this is a limitation in the Web application. In my analysis, I found a comment in the file below that explains why it can be a limitation. App/src/libs/actions/Device/generateDeviceID/index.website.js Lines 1 to 23 in 3380266
Just to bring more context, in my understanding, the |
ProposalPlease re-state the problem that we are trying to solve in this issue.Sign in page show empty when we go back to login from validate code page in other tab What is the root cause of that problem?Although this code App/src/libs/actions/Session/index.ts Lines 576 to 579 in cc3c51c
is suppose to reset the credential value in onyx to {} , Onyx is not updating credential prop and rerendering the signin page on the other tab(the tab the user didn't press go back on)therefore shouldShowLoginForm is set to true in the other tab because in this lineApp/src/pages/signin/SignInPage.js Line 119 in cc3c51c
hasLogin will be true for the other tab (the tab the user didn't press go back) as the credential value is not updated properly in ONYX it still holds on the previous login email inserted from the original tab.
What changes do you think we should make in order to solve the problem?Change this line
to properly clear the credential data to the other tab. Now the credential prop updates properly on the other tab. It must be something related to the internal working of Onyx. App/src/libs/actions/Session/index.ts Lines 576 to 579 in cc3c51c
to separate onyx set
updates the credentials prop properly in the other tab and it fixes the problem. New.Expensify.mp4What alternative solutions did you explore? (Optional) |
ProposalPlease re-state the problem that we are trying to solve in this issue.Sign in page show empty when we go back to login from validate code page in other tab What is the root cause of that problem?when click "go back" on TabA, What changes do you think we should make in order to solve the problem?We can set individually to avoid this.
on this. App/src/libs/actions/Session/index.ts Lines 576 to 579 in f8fc21d
What alternative solutions did you explore? (Optional) |
Okay, we are able to repro this pretty easily but I do wonder if this is a limitation based on the comment from @wlegolas here. Although it does seem like the more recent proposals identify this as an Onyx issue so perhaps there is no limitation? 2023-10-24_15-33-29.mp4I'll wait for @situchan to weigh in because they're going to understand this much better than I do. Thanks everyone! |
Coming from this discussion here: https://expensify.slack.com/archives/C049HHMV9SM/p1698145969463179 ProposalPlease re-state the problem that we are trying to solve in this issue.Signing show empty content when pressing go back from another tab. What is the root cause of that problem?Recent changes in What changes do you think we should make in order to solve the problem?Since we used What alternative solutions did you explore? (Optional)N/A |
@strepanier03, @situchan Huh... This is 4 days overdue. Who can take care of this? |
Anyone please jump in this issue and fix regression? |
Hm, I don't think those changes would cause this. To my knowledge, those changes aren't rolled out yet because |
I would suggest using |
📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸 |
Awaiting proposal with correct root cause and solution |
All good Melvin, waiting on proposals. |
Still waiting on proposals. |
@strepanier03 @stitesExpensify @situchan this issue is now 4 weeks old and preventing us from maintaining WAQ, can you:
Thanks! |
Current assignee @situchan is eligible for the Internal assigner, not assigning anyone new. |
Let's go with @FitseTLT proposal to set the credentials to null |
@situchan PR ready 👍 |
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.4.4-3 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-12-06. 🎊 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:
|
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:
|
The job that was originally created for this in Upwork has been closed and Upwork is erroring when creating a new job. I'll come back to this in an hour or two and see if Upwork will let me create the job. |
BZ Checklist: |
Sorry for the delay everyone, Upwork's job creation was done most of the day. I've hired all of you to the job in Upwork and will check in tomorrow to pay it out. |
This is all wrapped up and paid out. Thanks again everyone! |
If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!
Version Number: 1.3.90.1
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
Expensify/Expensify Issue URL:
Issue reported by: @hungvu193
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1698145969463179
Action Performed:
Action Performed:
Use magic code
, after that press go back.Expected Result:
Second tab should show the same content with the first tab.
Actual Result:
Content of the second tab is empty.
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
Android: Native
Android: mWeb Chrome
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari
Screen.Recording.2023-10-24.at.18.13.53.mov
Recording.5138.mp4
MacOS: Desktop
View all open jobs on GitHub
Upwork Automation - Do Not Edit
Issue Owner
Current Issue Owner: @situchanThe text was updated successfully, but these errors were encountered: