{"action":"created","issue":{"url":"https://api.github.com/repos/caciviclab/disclosure-backend-static/issues/106","repository_url":"https://api.github.com/repos/caciviclab/disclosure-backend-static","labels_url":"https://api.github.com/repos/caciviclab/disclosure-backend-static/issues/106/labels{/name}","comments_url":"https://api.github.com/repos/caciviclab/disclosure-backend-static/issues/106/comments","events_url":"https://api.github.com/repos/caciviclab/disclosure-backend-static/issues/106/events","html_url":"https://github.com/caciviclab/disclosure-backend-static/issues/106","id":332452327,"node_id":"MDU6SXNzdWUzMzI0NTIzMjc=","number":106,"title":"Update data output structure to better support the front end","user":{"login":"adborden","id":509703,"node_id":"MDQ6VXNlcjUwOTcwMw==","avatar_url":"https://avatars2.githubusercontent.com/u/509703?v=4","gravatar_id":"","url":"https://api.github.com/users/adborden","html_url":"https://github.com/adborden","followers_url":"https://api.github.com/users/adborden/followers","following_url":"https://api.github.com/users/adborden/following{/other_user}","gists_url":"https://api.github.com/users/adborden/gists{/gist_id}","starred_url":"https://api.github.com/users/adborden/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adborden/subscriptions","organizations_url":"https://api.github.com/users/adborden/orgs","repos_url":"https://api.github.com/users/adborden/repos","events_url":"https://api.github.com/users/adborden/events{/privacy}","received_events_url":"https://api.github.com/users/adborden/received_events","type":"User","site_admin":false},"labels":[{"id":437222851,"node_id":"MDU6TGFiZWw0MzcyMjI4NTE=","url":"https://api.github.com/repos/caciviclab/disclosure-backend-static/labels/type/question","name":"type/question","color":"cc317c","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-06-14T15:26:54Z","updated_at":"2018-06-14T15:32:13Z","closed_at":null,"author_association":"MEMBER","body":"This is more of a discussion than a specific bug or proposal.\r\n\r\nThe front end wants to be the source for ballot information (who/what is on the ballot) and to consume the finance data from the back end in a heirarchical form... the json files on the back end are organized by entity/id and isn't helpful because the Ids can change between builds.\r\n\r\nFor example, we could write front end code to iterate over candidate data, looking at office election Ids in the candidate files and working backward to the election, but maybe the back end should just output the data in a structure that fits the front end. That would look more like:\r\n```\r\nlocality/\r\n└── election (month-year or YYYY-mm-dd)\r\n    ├── candidates\r\n    │   └── filer-id.json\r\n    ├── referendum_supporting \r\n    │   └── referendum-name-slug.json\r\n    ├── referendum_opposing\r\n    │   └── referendum-name-slug.json\r\n    └── contributions\r\n        └── filer-id.json\r\n```\r\n\r\nOther options:\r\n- Fix Ids to specific entities (e.g. explicit Id from the Google Sheet)\r\n- Write code on the front end to dynamically figure out the Ids when pulling in the finance data"},"comment":{"url":"https://api.github.com/repos/caciviclab/disclosure-backend-static/issues/comments/397338164","html_url":"https://github.com/caciviclab/disclosure-backend-static/issues/106#issuecomment-397338164","issue_url":"https://api.github.com/repos/caciviclab/disclosure-backend-static/issues/106","id":397338164,"node_id":"MDEyOklzc3VlQ29tbWVudDM5NzMzODE2NA==","user":{"login":"adborden","id":509703,"node_id":"MDQ6VXNlcjUwOTcwMw==","avatar_url":"https://avatars2.githubusercontent.com/u/509703?v=4","gravatar_id":"","url":"https://api.github.com/users/adborden","html_url":"https://github.com/adborden","followers_url":"https://api.github.com/users/adborden/followers","following_url":"https://api.github.com/users/adborden/following{/other_user}","gists_url":"https://api.github.com/users/adborden/gists{/gist_id}","starred_url":"https://api.github.com/users/adborden/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adborden/subscriptions","organizations_url":"https://api.github.com/users/adborden/orgs","repos_url":"https://api.github.com/users/adborden/repos","events_url":"https://api.github.com/users/adborden/events{/privacy}","received_events_url":"https://api.github.com/users/adborden/received_events","type":"User","site_admin":false},"created_at":"2018-06-14T15:32:13Z","updated_at":"2018-06-14T15:32:13Z","author_association":"MEMBER","body":"Another random thought:\r\n\r\nWith the current data pull on the front end, a lot of times we can't tell what election an entity belongs to without tracing the Ids. So for example, looking at a candidate or referendum, there's no election or locality field."}}
{"actor":{"display_login":"adborden"}}