codeforamerica / ohana-api

The open source API directory of community social services.
http://ohana-api-demo.herokuapp.com/api
BSD 3-Clause "New" or "Revised" License
185 stars 344 forks source link

create full organization entries for testing #52

Closed anselmbradford closed 11 years ago

anselmbradford commented 11 years ago

create test data for testing client (Moved from here: https://github.com/codeforamerica/human_services_finder/issues/146). I need this for styling ASAP.

monfresh commented 11 years ago

I would recommend going to ohanapi.herokuapp.com/api/organizations, then copying and pasting any entry into a text file, then populating the fields with the desired amount of text, then send me the file and I will add it as an entry. Repeat if you want to test varying lengths of text for certain fields.

anselmbradford commented 11 years ago

Could we use this test org:

{ "agency": "Test Agency.", "name": "Testing 1 2 3.", "street_address": "2000 Alameda de las Pulgas, Suite 100", "city": "San Mateo", "state": "CA", "zipcode": "94403", "faxes": [ "650 627-8244" ], "emails": [ "envhealth@co.sanmateo.ca.us" ], "eligibility_requirements": "None", "fees": "None, except for permits and photocopying. Cash, checks and credit cards accepted", "service_wait": "No wait to 2 weeks", "languages_spoken": [ "Chinese (Cantonese)", "Chinese (Taiwanese)", "Filipino (Tagalog)", "Russian", "Spanish" ], "transportation_availability": "SAMTRANS stops within 1 block", "accessibility_options": [ "Restroom", "Special parking", "Wheelchair accessible" ], "urls": [ "http://www.smchealth.org" ], "keywords": [ "Public Health Information/Inspection/Remediation", "Environmental Hazards Information" ], "description": "[NOTE THIS IS NOT A REAL ORGANIZATION--THIS IS FOR TESTING PURPOSES OF THIS ALPHA APP] Works to control environmental hazards and pollutants that are harmful to health. Handles complaints about quality of water supplies, wells, water pollution, public swimming pools, rodent and insect control, hazardous materials/waste, health hazards or unsanitary conditions in places where food is sold, problems concerning garbage and housing problems involving health hazards. Provides permits to install septic tanks and construct wells. Businesses storing hazardous materials and/or wastes, operating underground fuel tanks, serving food, operating swimming pools or water purveyors are inspected. Household hazardous wastes from residents are collected by appointment.", "how_to_apply": "Walk in or apply by phone or mail", "target_group": "Profit and nonprofit businesses, the public, military facilities, schools and government entities", "services_provided": "Works to control environmental hazards and pollutants that are harmful to health.", "phones": [ [ { "number": "650 372-6200", "phone_hours": "(Monday-Friday, 8-5)" } ] ] }

I put a note in the description to say it's not real. As we message the data further perhaps we could focus on an existing organization and fill in actual data (maybe Samaritan House?).

spara commented 11 years ago

I've create a json file based on all the entries in the organization model. It's on dropbox ../SanMateo/data/OhanaSMC/complete.json

It's based on real data, and I just filled in the parts that were missing with dummy data. You can load this if you change the rake task for loading to used this file instead.

monfresh commented 11 years ago

Thanks! The one Ans posted here was missing ttys and funding_sources, which I just added and pushed. I also replaced the agency, name, description and keywords fields with dummy data, as those are the fields that are searched when someone performs a query on the site. It turns out that "test" and "testing" are words used in the description of some organizations, so they are not good for testing :smile: