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

feat: correction script for sparks homes application preferences #4445

Closed mcgarrye closed 2 weeks ago

mcgarrye commented 2 weeks ago

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:

Review Process: