chicommons / maps

MIT License
7 stars 19 forks source link

When running import script, we need to ignore entries without an address #141

Open laredotornado opened 3 years ago

laredotornado commented 3 years ago

When running the script that turns CSV coop data into the YAML file that is digested by our application (that inserts entries into our database), we need to skip entries that don't contain an address. An address must have at least a city, postal code, and state. Without those minimum three things, we can't process the entity. If you run

. venv/bin/activate
venv/bin/python manage.py parse_coop_csv /path/to/coops.csv

You will see several locality entries with 'name: ""'. We need to make sure those don't make it into the resulting YAML file.

Please use the attached as an example. coop_data.csv

SteveEdiger commented 2 years ago

Dave Alverado will check with Jens on this (21-12-09)

maxgraziano commented 6 months ago

Fixed in '3.1-model-refactor'. New address data model requires all fields except those fetched asynchronous from location_service (lat, lon, county).

maxgraziano commented 3 months ago

Per Max and Steve Conversation 8/15: A separate model is needed for area of service that is separate from address. Example: (1) A baby sitting coop does not have a physical footprint, but serves specific zip codes. (2) A office serves specific neighborhoods.