fpdcc / ccfp-asset-dashboard

CCFP Asset Dashboard
0 stars 1 forks source link

Fix scoring field validation project form #246

Closed smcalilly closed 11 months ago

smcalilly commented 11 months ago

From @jim-z email:

One user was noticing that they were able to add a project but the information they were adding wasn’t being saved. I had them walk me through what they had done and it appears that they were hitting “save project” and navigating away from the page without noticing the forced constraints in the scoring section:

image003

Can we disable the scoring requirement for now? We still haven’t determined how to carry out the scoring component internally so it isn’t going to be utilized this year.

This is happening because the score fields equal 0 when the form is submitted, which is invalid based on the validators in the ScoreField. We should fix the validation to allow 0.

We'll know this is fixed if we can edit a project where all of the scores equal 0, and we don't get the errors in the above screenshot.