bloom-housing / bloom

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

Listing Cannot Be Edited After Lottery Result PDF #4242

Open mcgarrye opened 1 month ago

mcgarrye commented 1 month ago

Describe the bug A listing that has had a lottery result pdf uploaded can no longer be edited after that. This is because we do not delete and recreate the asset in the listing service update for the listingEvents.

To Reproduce Steps to reproduce the behavior:

  1. Go to a closed lottery listing that is opted out of lottery service
  2. Upload lottery results pdf
  3. Attempt to make an edit to the listing
  4. See error

Expected behavior Edit should succeed.

Additional context Add any other context about the problem here.

QA NOTES will be available in: https://partners.bloom.exygy.dev/sign-in Create or edit a listing such that:

go back in to edit the listing -> attempt to save -> it should now save

sarahlazarich commented 1 month ago

This is a Prisma issue - add an extra step to delete the PDF and re-add it or make it so it doesn't create a new PDF every time.

This is maybe a misunderstanding of how jurisdictions are opening/closing listings? Why would they re-open that? Went over why

sarahlazarich commented 2 weeks ago

this looks good!