-
-
Notifications
You must be signed in to change notification settings - Fork 35.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
Sign in process needs some sort of notification it hasn't crashed #16266
Comments
This is inherent from the infrastructure challenges. Currently, whenever a login request is made:
The button in the UI is in a disabled state, while the above 4 steps happen. We have #14902 to make steps 3-4 async, and speed up some of this. But, the real enhancement is to implement the Job Queue. |
A delayed method can be added in between the below lines, which will set a notification freeCodeCamp/server/views/account/email-signin.jade Lines 54 to 55 in 1dae80a
that reads,
And such a notification should be triggered only after 3-4 seconds after the button was clicked. |
@raisedadead Couldn't we just say "OK - we're sending a magic link to [email address]" in the UI and remove the button? Then by the time they get into their email, it will probably already be there. That would be more conventional, simpler, and - most importantly - less astonishing to the user. |
@QuincyLarson yes, that can be done. |
@raisedadead Awesome! Thanks for doing this. This is such a critical part of the onboarding, so we want to get it just right. Once this is ready, I will go through and fine-tune the copy throughout the signing in process. Thanks for keeping me posted on this :) |
Chatted with @raisedadead and I'm gonna take this one. |
@StephenMayeux thanks a lot for your interest in this issue, but I happened to figure out that we are having a refactor of some of the backend in progress. This will affect the work on this issue. I am adding a blocked tag until then. Please feel free to take a look at other open issues. |
@StephenMayeux It's great to have you here! Since @raisedadead wrote the original logic and has already made good progress on it, I recommend jumping on another one of the help wanted issues. |
@QuincyLarson quick updates, With some wizardry from @BerkeleyTrue as usual (which was a huge overhaul actually!!). We are seeing a slight drop in the time it takes the request to complete the flight! And currently, the external email request to AWS is taking by far the longest to pass thru. So as I said the real fix is the async job queue. But, for now for some client side feedback, I'll see and proceed with the above discussion earlier. |
To add some information, this is not unique to beta and is a general issue with sending information through aws. It's just slow. Client side feedback would be the quickest fix. I don't think we can do anything serverside to make it quicker without sacrificing something else. The long run a separate email service to run in production (rabbitmq and a separate node server?) would be the solution. |
Yes, I am exploring Kue by the Automattic team which uses redis as its DB. It seems to be really light. |
When signing in, there is a moment where the button turns a strange shade of green and nothing happens for about 30 seconds. This is a really long wait, and we should definitely find a way to make the wait shorter. But we should also show some sort of visual confirmation that it's working and it hasn't crashed.
@raisedadead is there anything we can do to speed up the email? Even if it takes a moment to receive the email, the UI should seem as snappy as possible.
The text was updated successfully, but these errors were encountered: