{"action":"closed","issue":{"url":"https://api.github.com/repos/votinginfoproject/vip-specification/issues/42","labels_url":"https://api.github.com/repos/votinginfoproject/vip-specification/issues/42/labels{/name}","comments_url":"https://api.github.com/repos/votinginfoproject/vip-specification/issues/42/comments","events_url":"https://api.github.com/repos/votinginfoproject/vip-specification/issues/42/events","html_url":"https://github.com/votinginfoproject/vip-specification/issues/42","id":60539141,"number":42,"title":"Add Office object","user":{"login":"cjerdonek","id":355822,"avatar_url":"https://avatars.githubusercontent.com/u/355822?v=3","gravatar_id":"","url":"https://api.github.com/users/cjerdonek","html_url":"https://github.com/cjerdonek","followers_url":"https://api.github.com/users/cjerdonek/followers","following_url":"https://api.github.com/users/cjerdonek/following{/other_user}","gists_url":"https://api.github.com/users/cjerdonek/gists{/gist_id}","starred_url":"https://api.github.com/users/cjerdonek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cjerdonek/subscriptions","organizations_url":"https://api.github.com/users/cjerdonek/orgs","repos_url":"https://api.github.com/users/cjerdonek/repos","events_url":"https://api.github.com/users/cjerdonek/events{/privacy}","received_events_url":"https://api.github.com/users/cjerdonek/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-03-10T17:41:41Z","updated_at":"2015-04-02T23:43:57Z","closed_at":"2015-04-02T23:43:57Z","body":"Currently, the Contest object references the office via an \"office\" string field.  This issue is to suggest adding an Office object, in which case the contest field would become an office ID.\r\n\r\nThe advantage of doing this is mostly around DRY.  For example, if we add translations of the office name per issue #39 (which could potentially be many), it would be annoying to have to repeat these same translations in every Contest (e.g. for every district).  We may also find that offices have other useful attributes (e.g. the URL to the office's web site, physical address of the office, term of the office, description, etc).\r\n\r\nAnother advantage of breaking this out is that it's likely that the Office objects will remain the same from election to election, so Departments of Election could prepare this data separately (potentially by hand), independent of any particular election, and then reuse the same data.\r\n"}}