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

fix: add lottery re-run functionality #4249

Closed ludtkemorgan closed 3 months ago

ludtkemorgan commented 3 months ago

This PR addresses #4246

Description

Re-run of the lottery needs an extra step of resetting the application lottery positions so that it is starting from scratch.

NOTE: this is pointing to the history log PR because there was a bit of refactor that is not yet in main

How Can This Be Tested/Reviewed?

This can be tested on the UI. Go to a closed listing and run the lottery. Check the order of the applications in that run. Click the re-run lottery button and re-export the results. The order should be different. Also notice the "re-run" in the history log sidebar

Author Checklist:

Review Process:

mcgarrye commented 3 months ago

Just want to confirm a few things.

  1. An admin can re-run a lottery at any time? Or should their be protections against allowing them to re-run when a lottery has been released/published/expired?
  2. Is there a follow-up ticket for errors or do we want that logic to go in with the re-run?
emilyjablonski commented 3 months ago

Is this rebased off off latest main after the re-run changes went in?

ludtkemorgan commented 3 months ago

Is this rebased off off latest main after the re-run changes went in?

@emilyjablonski this is pointing towards your history log PR since there is some refactoring happening there. I won't merge this until the history log PR is merged

ludtkemorgan commented 3 months ago

Just want to confirm a few things.

  1. An admin can re-run a lottery at any time? Or should their be protections against allowing them to re-run when a lottery has been released/published/expired?
  2. Is there a follow-up ticket for errors or do we want that logic to go in with the re-run?

@mcgarrye

  1. A lottery can be re-run at any time. When it runs the lottery results are automatically retracted
  2. Good question. I think it might require a different ticket since a failure could happen at any time and I don't know how the front-end should handle it
mcgarrye commented 3 months ago

Just want to confirm a few things.

  1. An admin can re-run a lottery at any time? Or should their be protections against allowing them to re-run when a lottery has been released/published/expired?
  2. Is there a follow-up ticket for errors or do we want that logic to go in with the re-run?

@mcgarrye

  1. A lottery can be re-run at any time. When it runs the lottery results are automatically retracted
  2. Good question. I think it might require a different ticket since a failure could happen at any time and I don't know how the front-end should handle it

Noting: Re-running anytime is only supported through the API right now, the frontend does not give admins that ability.

netlify[bot] commented 3 months ago

Deploy Preview for partners-bloom-dev ready!

Name Link
Latest commit be04270cdc2ec815815cc0a9d73ea4a49312d3a8
Latest deploy log https://app.netlify.com/sites/partners-bloom-dev/deploys/66bd649571772500087083b1
Deploy Preview https://deploy-preview-4249--partners-bloom-dev.netlify.app
Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

netlify[bot] commented 3 months ago

Deploy Preview for bloom-exygy-dev ready!

Name Link
Latest commit be04270cdc2ec815815cc0a9d73ea4a49312d3a8
Latest deploy log https://app.netlify.com/sites/bloom-exygy-dev/deploys/66bd6495ca920a0008be9f48
Deploy Preview https://deploy-preview-4249--bloom-exygy-dev.netlify.app
Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.