USDAForestService / fs-open-forest-platform

Open Forest: The code for an online permitting platform for the U.S. Forest Service.
https://openforest.fs.usda.gov
Other
38 stars 19 forks source link

As a user, I should not have to enter a fax number if I do not have one #355

Closed msadakFS closed 6 years ago

msadakFS commented 6 years ago

Notes

I accidentally entered a number into the Fax # box on the outfitter guide form. I deleted the number. I was not able to submit the application and it gave the error below. I was forced to enter a fake fax number in order to submit the application.

image.png

Acceptance Criteria

Tasks

Definition of Done

lauraGgit commented 6 years ago

@mtlaney is on this

msadakFS commented 6 years ago

Am still getting the error, moving back to Open PR

lauraGgit commented 6 years ago

Ah it looks like we need to update the server validation in the temp Outfitter model in the server @mtlaney https://github.com/18F/fs-open-forest-platform/blob/dev/server/src/models/tempoutfitter-application.es6#L406

mtlaney commented 6 years ago

@msadakFS can you give me steps to reproduce, I cannot generate the error on staging. Server side validation shows it as nullable. I've tried entering no fax number, entering full than deleting, entering 3 or 4 than deleting, etc.

msadakFS commented 6 years ago

@mtlaney Enter in a fax number, delete that number, then try to submit the application. It will not submit unless a fax number gets entered. So if a user accidentally enters a number in that box, they are now committed to entering a number.

mtlaney commented 6 years ago

@msadakFS hmmm, that's what I tried, I'll give it another shot

msadakFS commented 6 years ago

The error is no longer occurring. Strange. I tested it a number of times and was consistently getting the error. I will close this issue.