{"action":"opened","issue":{"url":"https://api.github.com/repos/everypolitician/everypolitician/issues/372","repository_url":"https://api.github.com/repos/everypolitician/everypolitician","labels_url":"https://api.github.com/repos/everypolitician/everypolitician/issues/372/labels{/name}","comments_url":"https://api.github.com/repos/everypolitician/everypolitician/issues/372/comments","events_url":"https://api.github.com/repos/everypolitician/everypolitician/issues/372/events","html_url":"https://github.com/everypolitician/everypolitician/issues/372","id":145160294,"number":372,"title":"Make separate Source::JSON and Source::CSV base classes for unprocessed versions","user":{"login":"chrismytton","id":22996,"avatar_url":"https://avatars.githubusercontent.com/u/22996?v=3","gravatar_id":"","url":"https://api.github.com/users/chrismytton","html_url":"https://github.com/chrismytton","followers_url":"https://api.github.com/users/chrismytton/followers","following_url":"https://api.github.com/users/chrismytton/following{/other_user}","gists_url":"https://api.github.com/users/chrismytton/gists{/gist_id}","starred_url":"https://api.github.com/users/chrismytton/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chrismytton/subscriptions","organizations_url":"https://api.github.com/users/chrismytton/orgs","repos_url":"https://api.github.com/users/chrismytton/repos","events_url":"https://api.github.com/users/chrismytton/events{/privacy}","received_events_url":"https://api.github.com/users/chrismytton/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-04-01T11:52:38Z","updated_at":"2016-04-01T11:52:38Z","closed_at":null,"body":"https://github.com/everypolitician/everypolitician-data/blob/f3166e63734b22510b0448804c7efda8e9ac43a0/lib/source.rb#L83-L99\r\n\r\nThere are some places where we're using a source as-is and we don't want it to be remapped. At the moment we have to use some workarounds such as overriding `Source::CSV#fields` to return `[]` and overriding `Source::CSV#as_table` to prevent errors and remapping of fields.\r\n\r\nIt would be good to have separate base classes, one that just handles plain CSV/JSON sources and one the does all the extra processing that's required in `combine_sources.rb`."}}