Plots2: Correct Sign-up Form Validation message

Created on 16 Sep 2019  Â·  26Comments  Â·  Source: publiclab/plots2

We are preparing to participate in Google Code-in, and have reserved this issue for participants in GCI - but we'd love to have your help with another one! Please check out https://code.publiclab.org to see more.

Problem

When a user tries to submit an empty sign up form, and also does not check off the recaptcha box, This output is shown:

image

Solution

Instead, we want all the relevant errors ("field cannot be empty" or so) to be listed along with the failed recaptcha verification.

Each box in this problem is worth some points. We will accept answers that complete one part and not the other, but encourage you to go for all 3. Completion of all three will result in bonus points :)

  • [ ] fix the create action so that the correct errors show
  • [ ] fix the error messages themselves as well. If you see below, there are three different errors for email, but only one of them is correct.
  • [ ] write a test reflecting this fix. Guidelines: the test must fail without your changes, and your changes are what makes it pass.

image

bug gci-candidate hard reserved-for-gci

Most helpful comment

As this issue may require multiple tests, I will be happy to open a hard task for tests for this issue. Chen can claim and get points for both the hard tasks once his pr is merged.
Thanks

All 26 comments

This has been uploaded to GCI dashboard, Thanks !

From #3340

Can I have this task assigned to me?

Are you notdeghost?

On Fri, 6 Dec 2019, 3:28 am Robert Chen, notifications@github.com wrote:

Can I have this task assigned to me?

—
You are receiving this because you were assigned.
Reply to this email directly, view it on GitHub
https://github.com/publiclab/plots2/issues/6303?email_source=notifications&email_token=AFAAEQYXKXESWGK655K5KL3QXF2RPA5CNFSM4IXESK2KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEGCJL4Y#issuecomment-562337267,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AFAAEQ3ZVB4QWIYMKDRHSMDQXF2RPANCNFSM4IXESK2A
.

Yes

Great, thanks!

@SidharthBansal I've fixed the first two parts but I'm not too sure how to write the tests. Should it be under system, unit, integration, or something else? I would greatly appreciate it if you could point me in the right direction, thanks!

What do you think?
It depends on your thinking.
If you are testing a sequence as follows:

  1. Sign up with wrong details
  2. Sign up with right details
  3. Dashboard with welcoming message
    1-3 suggests integration test altogether
    If you want to just test 1 then unit test will work.
    Functional tests are for controllers.

Please think the intended behavior and write test(s) accordingly

What is the PR numberl?

@SidharthBansal I have not made the PR yet, I wanted to write the test before proceeding.

ok

On Fri, Dec 6, 2019 at 11:29 PM Robert Chen notifications@github.com
wrote:

@SidharthBansal https://github.com/SidharthBansal I have not made the
PR yet, I wanted to write the test before proceeding.

—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/publiclab/plots2/issues/6303?email_source=notifications&email_token=AFAAEQYPBU4NCMI7AKFH443QXKHH7A5CNFSM4IXESK2KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEGE4ASA#issuecomment-562675784,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AFAAEQ47U6BQMHQNV4XTCWTQXKHH7ANCNFSM4IXESK2A
.

Please tell me the code link so that I can make it hard instead of medium

Changed to hard from medium

As this issue may require multiple tests, I will be happy to open a hard task for tests for this issue. Chen can claim and get points for both the hard tasks once his pr is merged.
Thanks

@chen-robert I observed that you have not claimed this task on the dashboard. Why?

@SidharthBansal the task expired for me on the GCI dashboard. Is there any way for me to reclaim it or extend the time limit?

I had initially claimed it and was working on it but it expired when I was sleeping. I was unable to find it afterward and wasn't sure if you had removed it?

Also, all three of my other PRs are ready to merge now, I've fixed the corresponding Travis errors :tada:

Please try to reclaim it.

I have not removed it

On Sat, Dec 14, 2019 at 11:44 AM Robert Chen notifications@github.com
wrote:

Also, all three of my other PRs are ready to merge now, I've fixed the
corresponding Travis errors 🎉

—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/publiclab/plots2/issues/6303?email_source=notifications&email_token=AFAAEQ3NKLJUAFNBTLIFFEDQYR2UFA5CNFSM4IXESK2KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEG33NNI#issuecomment-565687989,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AFAAEQ5KJ7CFFZLDLEIRYBTQYR2UFANCNFSM4IXESK2A
.

@SidharthBansal I have reclaimed it now, thanks!

This issue is resolved

@chen-robert kindly reclaim it on dashboard for points

Was this page helpful?
0 / 5 - 0 ratings

Related issues

grvsachdeva picture grvsachdeva  Â·  3Comments

first-timers[bot] picture first-timers[bot]  Â·  3Comments

noi5e picture noi5e  Â·  3Comments

first-timers[bot] picture first-timers[bot]  Â·  3Comments

keshavsethi picture keshavsethi  Â·  3Comments