CityOfDetroit / bloom

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

Update listing import script to set structured accessibility data #612

Open avaleske opened 2 years ago

avaleske commented 2 years ago

Once we have the database support for structured accessibility data, which is added in #609, we'll need to update the import script to add it.

Done: The import script sets the new structured accessibility data fields.

@anders-schneider can you add more context on the import script?

anders-schneider commented 2 years ago

Context on the import script: I think this will involve updating the not-yet-created script that's scoped in #567 (since the property manager survey is where we have asked for the structured accessibility data). Since the accessibility features are stored in a separate tables (from listings), we'll need the ability to look them up via the backend. We can follow the pattern that we currently have for e.g. unit types: https://github.com/CityOfDetroit/bloom/blob/4951d9f715afbe1d4b6d4f0d4a669c786dec174c/backend/core/scripts/listings-importer.ts#L71-L91.