bloom-housing / bloom

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

feat: auto publish lotteries #4263

Closed mcgarrye closed 3 weeks ago

mcgarrye commented 1 month ago

This PR addresses #(4201)

Description

For an opted in lottery listing which has been released to partners, when the lottery start date comes to pass, the system should autopublish the results to the public if partners haven't done so by end of day. This will be done at 11:59PM PST. On publishing the result, emails to associated partners, admin and applicants should be sent and an activity log should be created. Should appear in the history log as by System

Additional changes:

How Can This Be Tested/Reviewed?

Go to or create a listing that is opted in to the system lottery. Set the lottery start date to today. As an admin, close the listing, run the lottery and release it to partners. Using the api, call lottery/autoPublishResults endpoint. Refresh listing lottery page and confirm publish appears in the history log correctly.

Author Checklist:

Review Process:

netlify[bot] commented 1 month ago

Deploy Preview for bloom-exygy-dev ready!

Name Link
Latest commit 2715d66c2164f247f9346b6cbfb9d4ef1c6e7986
Latest deploy log https://app.netlify.com/sites/bloom-exygy-dev/deploys/66cc9d470056040008fbea8d
Deploy Preview https://deploy-preview-4263--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.

netlify[bot] commented 1 month ago

Deploy Preview for partners-bloom-dev ready!

Name Link
Latest commit 2715d66c2164f247f9346b6cbfb9d4ef1c6e7986
Latest deploy log https://app.netlify.com/sites/partners-bloom-dev/deploys/66cc9d473eb00e0008b51391
Deploy Preview https://deploy-preview-4263--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.