-
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
New user gets stuck on loading after clicking on Set Password button - reported by @adeel0202 #6890
Comments
Triggered auto assignment to @chiragsalian ( |
👋 Friendly reminder that deploy blockers are time-sensitive ⏱ issues! Check out the open
|
Adding DeloyBlocker label as we were not able to reproduce in PROD. Issue is not consistently repro across devices |
@chiragsalian I'm facing this issue always and in all browsers. I even modified the link to staging.mp4live.mp4 |
Well @adeel0202, you got the error on staging and production which could imply this issue is not a blocker. Could you check your network tab to see if you can get some clues like if the network request is stalling or returning an error? It does seem to work fine for me on browser. 147286590-d0b54cca-deb5-4418-8ae8-a0f773c08028.mp4@mvtglobally, can you confirm if you are facing the issue only on staging and not production once again? |
@chiragsalian only 1 tester was able to reproduce this issue on our side and same tester can't reproduce it on production. |
I think this is a duplicate of this issue: #6389 |
@mvtglobally, can you ask the tester to do the following,
|
@chiragsalian please have a look. test.mp4 |
Nice, thanks for the complete video. I was able to reproduce the same on staging. It's interesting that the network requests completed just fine too. Odd. |
Yup, looks like it failed on production as well for me for the exact same steps. I suspect it has something to do with the order of events where i.e.,
Clearer steps to reproduce issue:
I suspect its because localStorage has no account details that was saved when we were creating an account. Removing blocker label since the same steps gives me an issue on production as well. @anthony-hull, i don't think this is a dupe since your issue talks about enter key. I tested enter key and under the normal working scenario it works fine for me 🤷♂️ maybe your local storage was messed up which is why enter key went on an infinite loop? |
Well, I'm stuck on loading even if I don't clear local storage. I'm facing this issue every time I create a new account and set up its password 🤷 |
Hmm thats really odd. I've hit you up on slack and we can maybe further discuss this 1:1 since it could be faster. Maybe even a screen share video chat since im curious to know whats up. Feel free to hit me up on newDot if you prefer that, my email is chirag@expensify.com. |
I'm reworking the logic of this page and API calls in this PR: The edge case of no account set in local storage when using this page will be covered with a redirect to the login screen. |
I think it is and the enter key was a red herring and a coincidence. The enter key and the submit button call the same function so why would they make a difference? |
Oh thats neat. Yeah have you already implemented that fix? Asking because when i tested your PR it currently went on infinite loop when i followed the test steps to reproduce issue mentioned here.
Ah yes, i thought the issue was mostly focused on the enter key not working as expected. Now that i read the issue thread it definitely feels like the same issue as this one. Since you are reworking on this logic would you like to tackle this issue as well @anthony-hull? Additionally, i was looking at your PR. I believe there is some overlap with this PR wherein its trying to address issues from a malformed or expired token as well. |
No I haven't yet :) the tests in my PR are my acceptance tests while I develop. I still need to implement that edge case. It's still a draft PR, I only made it into an open one to get allocated an engineer. I should have reverted it to draft once I got allocated a reviewer.
Yes sure, I would be happy to tackle the issue. I'll try your reproduction steps. Thanks for that link to the PR. It looks like there is overlap. I'll have a think and update my PR/Issue discussion based on this. |
Perfect, thanks @anthony-hull.
Wrt this statement, so i dug a little deeper today. The code is actually failing not because of missing onyx "account", but because of missing onyx credentials.login over here. But when we click setPassword we first call |
I have an issue that if you have already called ValidateEmail, the error doesn't have the email. Also we have to call changePasswordAndSignIn in the new user UX with an authToken. API.ChangePassword doesn't return the account email so we wouldn't be able to get it from there either. |
I have resolved this :) |
The PR linked is ready for review. Just missing some translations and response on required testing documentation! |
Waiting on PR review, answer to a question and a backend bug to be confirmed reproduced by the reviewer and fixed |
PR merged and deployed to staging |
Should this issue be closed and payment issued? the other issue the PR closes was paid today. |
@anthony-hull, I'm not compensated for reporting the issue. @chiragsalian, will I be compensated? |
cc: @mallenexpensify |
Yes @adeel0202 you will be compensated $250, payment details in CONTRIBUTING.md.
|
Thanks @mallenexpensify. I'm waiting to be compensated for reporting the issues since it is fixed in PR 6587 and deployed on production. |
Thanks for the details @adeel0202 , you're right. I was expecting an auto-post to denote the associated PR was deployed to production. I think it didn't happen because there were two issues fixed by one PR (which is rare). I think it's because this issue was pretty-much a duplicate of #6389 Since we didn't clearly call that out in #expensify-open-source (Anthony suggested) we should err on the side of compensating. Can you the invite here please @adeel0202 ? Please confirm here once you have |
Thanks @mallenexpensify, I have applied. |
@adeel0202 hired, let me know when you accept the offer and I'll pay |
@mallenexpensify, accepted. |
Thanks @adeel0202 , paid |
I didn't get paid for reporting on my version of this issue as the root cause wasn't found on my report. So it's good he got paid for it. I didn't get paid for fixing this issue either. Should I be compensated? |
Also I think part of the issue is this never got the external tag? |
@anthony-hull , based on this post in #6389
and your reply
I was assuming the PR fixed both issues, without additional work needing to be done for this issue, is that correct? If so, I don't think you'd be eligible for payment. If the PR needed extra work/code based on this issue, please provide details. |
I reopened and assigned to myself. I'm OOO all next week, so it'll take a bit til I reply @anthony-hull |
I was working in that area of the code. I made sure this edge case was added to my testing. I tried to cover off all the edge cases I could think of, which can be seen in the long list of edge cases in the testing section, beyond the initial scope of the issue. |
OK... so, this issue is about getting stuck and other is about improving UX. That makes it sound like this is eligible for compensation. I've created a job for $250, can you apply here https://www.upwork.com/jobs/~01fd4ccce6000a9c6f and comment in this GH once you've done so? |
Thank you Matt! I've done so |
Hired @anthony-hull , let me know when you accept and I'll pay ya |
Done! |
@anthony-hull , paid ya $250 |
If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!
Action Performed:
Steps 2
Expected Result:
User should be able to proceed
Actual Result:
User is unable to proceed, spinner displayed
Workaround:
Unknown
Platform:
Where is this issue occurring?
Version Number: 1.1.23-0
Reproducible in staging?: Y
Reproducible in production?: N
Logs: https://stackoverflow.com/c/expensify/questions/4856
Notes/Photos/Videos: Any additional supporting documentation
21-12-22-22-51-45.mp4
Expensify/Expensify Issue URL:
Issue reported by: @adeel0202
Slack conversation: https://expensify.slack.com/archives/C01GTK53T8Q/p1640199167468600
View all open jobs on GitHub
The text was updated successfully, but these errors were encountered: