opencivicdata / imago

django app powering Open Civic Data API
Other
12 stars 12 forks source link

Vote listings are showing too much information #78

Open fgregg opened 8 years ago

fgregg commented 8 years ago

We should probably have the vote listings show less information

http://ocd.datamade.us/ocd-vote/2d1ad08c-83af-4795-991b-239d7f027821/

{
    "voter_name": "Balcer, James",
    "voter": 

    {
        "image": "",
        "sort_name": "",
        "created_at": "2015-12-25T16:26:25.575",
        "id": "ocd-person/b0d09c1d-4b9c-445f-bee5-848f0aac04b8",
        "gender": "",
        "locked_fields": "[]",
        "national_identity": "",
        "family_name": "",
        "given_name": "",
        "summary": "",
        "birth_date": "",
        "death_date": "",
        "extras": "{}",
        "name": "Balcer, James",
        "biography": "",
        "updated_at": "2015-12-25T16:26:25.575"
    },
    "option": "yes",
    "note": ""
},

At the least, we should remove "locked_fields" I think we should cut even further back. Maybe only include the ocd_id.

jpmckinney commented 8 years ago

Fine with me. I don't know anyone building apps with the vote API, so we may as well make it minimal and then relax it later.