rgsoc-teams icon indicating copy to clipboard operation
rgsoc-teams copied to clipboard

Add validation on email address on user#update

Open emcoding opened this issue 7 years ago • 8 comments

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."

emcoding avatar Dec 07 '17 20:12 emcoding

This issue has been fixed already, should be closed

inioluwaa avatar Dec 31 '17 23:12 inioluwaa

@F3PiX can you verify?

carpodaster avatar Jan 02 '18 12:01 carpodaster

@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?

emcoding avatar Jan 02 '18 12:01 emcoding

Is this issue solved?

ArushiSinghal avatar Feb 12 '18 04:02 ArushiSinghal

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!

emcoding avatar Feb 12 '18 08:02 emcoding

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

bajajerk avatar Feb 13 '18 20:02 bajajerk

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

ArushiSinghal avatar Feb 14 '18 03:02 ArushiSinghal

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?

hola-soy-milk avatar May 07 '18 09:05 hola-soy-milk