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.
Script collects the existing applications to Sparks Homes and updates the preferences jsonb for each application with corrected options strings.
How Can This Be Tested/Reviewed?
Pull down prob db copy from Heroku and setup locally.
Check the preferences field for applications associated with listing id 'a055ce66-a074-4f3a-b67b-6776bec9926e'
Start app, sign in as an admin through partner portal or api.
Through the api, call /scriptRunner/correctApplicationPreferenceDataForSparksHomes.
Check the preferences field for applications associated with listing id 'a055ce66-a074-4f3a-b67b-6776bec9926e'
and assert update worked.
query:
SELECT preferences FROM applications WHERE listing_id='a055ce66-a074-4f3a-b67b-6776bec9926e';
Author Checklist:
[x] Added QA notes to the issue with applicable URLs
[ ] Reviewed in a desktop view
[ ] Reviewed in a mobile view
[ ] Reviewed considering accessibility
[x] Added tests covering the changes
[ ] Made corresponding changes to the documentation
[x] Ran yarn generate:client and/or created a migration when required
Review Process:
Read and understand the issue
Ensure the author has added QA notes
Review the code itself from a style point of view
Pull the changes down locally and test that the acceptance criteria is met
Either (1) explicitly ask a clarifying question, (2) request changes, or (3) approve the PR, even if there are very small remaining changes, if you don't need to re-review after the updates
This PR addresses #(794)
Description
Script collects the existing applications to Sparks Homes and updates the preferences jsonb for each application with corrected options strings.
How Can This Be Tested/Reviewed?
Pull down prob db copy from Heroku and setup locally. Check the preferences field for applications associated with listing id 'a055ce66-a074-4f3a-b67b-6776bec9926e' Start app, sign in as an admin through partner portal or api. Through the api, call
/scriptRunner/correctApplicationPreferenceDataForSparksHomes
. Check the preferences field for applications associated with listing id 'a055ce66-a074-4f3a-b67b-6776bec9926e' and assert update worked.query:
SELECT preferences FROM applications WHERE listing_id='a055ce66-a074-4f3a-b67b-6776bec9926e';
Author Checklist:
yarn generate:client
and/or created a migration when requiredReview Process: