bloom-housing / bloom

component-based web framework for affordable housing management
Apache License 2.0
34 stars 24 forks source link

Make lottery date a required field (BE) #4212

Open sarahlazarich opened 2 months ago

sarahlazarich commented 2 months ago

As a user creating a listing that is using the system lottery, The lottery date and time should be a required field, So that I can not create a lottery listing without letting a user know when it will be run.

AC:

sarahlazarich commented 1 month ago

We don't have a sense of conditional requirement on listing fields right now We could do this on the front end to look for the presence of the date if the type is lottery How could we do that on the BE?

On the BE --

Route 1:

Route 2:

Go with Route 1, Going to leave some wiggle room in the estimate for discovery

Break out FE into separate ticket

sarahlazarich commented 1 month ago

Also include test writing

sarahlazarich commented 1 month ago

This looks good

sarahlazarich commented 1 month ago

Actually, noticing one thing, and I'm not sure if this is the UX flow we want - https://www.loom.com/share/f36d2246358f41dc9ff48aef5c7ad28a?sid=dc17b27b-324d-4be3-a7d9-910e95d4d50f

Is this our typical pattern here? If you remove a part of the date field, then save, the whole thing doesn't save. Not sure if this is an error but is this the pattern we use?

mcgarrye commented 1 month ago

Actually, noticing one thing, and I'm not sure if this is the UX flow we want - https://www.loom.com/share/f36d2246358f41dc9ff48aef5c7ad28a?sid=dc17b27b-324d-4be3-a7d9-910e95d4d50f

Is this our typical pattern here? If you remove a part of the date field, then save, the whole thing doesn't save. Not sure if this is an error but is this the pattern we use?

Good find. I just tested this in HBA staging where the new code has yet to be deployed and the same thing happened. If we want to fix, we should create a bug ticket