Skip to content
This repository has been archived by the owner on Jun 27, 2023. It is now read-only.

Add validation on email address on user#update #885

Open
emcoding opened this issue Dec 7, 2017 · 8 comments
Open

Add validation on email address on user#update #885

emcoding opened this issue Dec 7, 2017 · 8 comments

Comments

@emcoding
Copy link
Member

emcoding commented Dec 7, 2017

Extracted from #413, originally submitted by @Nattivolk

Github handle and Email address have a star for indicating a mandatory field, but can be saved without an email address. This happened, because I deleted the email. Might happen, if a candidate wants a different email, deletes it and then forgets to add the new one."

This is partial feature, partial bug ;-)

The reason behind it is that a User record is indeed created w/o an email address at first: the rest gets pulled from the GH API asynchronously. We should improve that, though. A validation context should fix that: the easy win would be to allow a User to created w/o an email address, just not updated."

@inioluwaa
Copy link

This issue has been fixed already, should be closed

@carpodaster
Copy link
Member

@F3PiX can you verify?

@emcoding
Copy link
Member Author

emcoding commented Jan 2, 2018

@inioluwaa Thanks for reporting! I love problems that solve themselves ;-)

I am not aware that this is solved, though.
Can you please explain a bit how you came to the conclusion? For example: did you find the implemented code, or did you try to update your email address on the site, and were not allowed?

@ArushiSinghal
Copy link
Contributor

Is this issue solved?

@emcoding
Copy link
Member Author

I don't think so, @ArushiSinghal. You are very welcome to dive into this. As a first step, make sure that you can reproduce the problem.
Then, the solution to work on would be:

A validation context should fix that: the easy win would be to allow a User to created w/o an email address, just not updated.

Thanks!

@bajajerk
Copy link

@ArushiSinghal are you working on the issue or should I look into this?

@ArushiSinghal
Copy link
Contributor

Hello @bajajerk
I am working on this, but If I will not end up with the solution, I'll pass this on to you :) .

@hola-soy-milk
Copy link
Member

Hi @ArushiSinghal! Thank you for your volunteering to fix this.

Not sure if you've already fixed this, but upon looking into it, I found an HTML5 validation, it seems:

screen shot 2018-05-07 at 11 05 09

Could this be browser-dependent? If so, do we need a backend validation as well?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

6 participants