Closed JChipault closed 2 years ago
@JChipault Do I understand correctly that we should allow Population to be empty / null, when there is a greater than 0 sick/dead count sum, but not allow an actual number for Population less than the sum of the dead and sick count?
Bugs:
expected behavior: should be prevented per business rules
expected behavior: should be allowed per business rules (tentative - awaitng NWHC confirmation)
correct
Being handled on the backend: https://github.com/USGS-WiM/whispersservices/issues/532
Describe the bug On create event, the business rule for population is working as expected. If I put in a population of 1 and number dead of 2, I get this warning message:
So that's good!
However, on the event details page, I can edit an event such that the population number is less than the sick or dead and I am allowed to save that change.
And then if I go to clear that population number out altogether (so that it becomes null), I get
Or even if I try to make the population number higher than the sick or dead, I get
To Reproduce Steps to reproduce the behavior:
Expected behavior A clear and concise description of what you expected to happen.
Screenshots If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
Smartphone (please complete the following information):
Additional context Add any other context about the problem here.