bloom-housing / bloom

Bloom is Exygy’s affordable housing platform. Bloom's goal is to be a single entry point for affordable housing seekers and a hub for application and listing management for developers.
https://bloomhousing.com
Apache License 2.0
33 stars 25 forks source link

Listing Cannot Be Edited After Lottery Result PDF #4242

Closed mcgarrye closed 1 month ago

mcgarrye commented 3 months 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 3 months 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 months ago

this looks good!