{"action":"created","issue":{"url":"https://api.github.com/repos/ministryofjustice/prison-visits-2/issues/13","labels_url":"https://api.github.com/repos/ministryofjustice/prison-visits-2/issues/13/labels{/name}","comments_url":"https://api.github.com/repos/ministryofjustice/prison-visits-2/issues/13/comments","events_url":"https://api.github.com/repos/ministryofjustice/prison-visits-2/issues/13/events","html_url":"https://github.com/ministryofjustice/prison-visits-2/pull/13","id":116089523,"number":13,"title":"Add reference number to visit","user":{"login":"tatyree","id":20921,"avatar_url":"https://avatars.githubusercontent.com/u/20921?v=3","gravatar_id":"","url":"https://api.github.com/users/tatyree","html_url":"https://github.com/tatyree","followers_url":"https://api.github.com/users/tatyree/followers","following_url":"https://api.github.com/users/tatyree/following{/other_user}","gists_url":"https://api.github.com/users/tatyree/gists{/gist_id}","starred_url":"https://api.github.com/users/tatyree/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tatyree/subscriptions","organizations_url":"https://api.github.com/users/tatyree/orgs","repos_url":"https://api.github.com/users/tatyree/repos","events_url":"https://api.github.com/users/tatyree/events{/privacy}","received_events_url":"https://api.github.com/users/tatyree/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/ministryofjustice/prison-visits-2/labels/review%20me","name":"review me","color":"5319e7"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-11-10T11:37:18Z","updated_at":"2015-11-11T13:09:20Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/ministryofjustice/prison-visits-2/pulls/13","html_url":"https://github.com/ministryofjustice/prison-visits-2/pull/13","diff_url":"https://github.com/ministryofjustice/prison-visits-2/pull/13.diff","patch_url":"https://github.com/ministryofjustice/prison-visits-2/pull/13.patch"},"body":"\r\n    We were going to use Base32 for this, but then decided to use v4 UUIDs\r\n    instead.  A Base32 long enough to prevent collisions would only be\r\n    slightly shorter than a UUID, would require further explanation and\r\n    additional gems."},"comment":{"url":"https://api.github.com/repos/ministryofjustice/prison-visits-2/issues/comments/155782381","html_url":"https://github.com/ministryofjustice/prison-visits-2/pull/13#issuecomment-155782381","issue_url":"https://api.github.com/repos/ministryofjustice/prison-visits-2/issues/13","id":155782381,"user":{"login":"threedaymonk","id":17347,"avatar_url":"https://avatars.githubusercontent.com/u/17347?v=3","gravatar_id":"","url":"https://api.github.com/users/threedaymonk","html_url":"https://github.com/threedaymonk","followers_url":"https://api.github.com/users/threedaymonk/followers","following_url":"https://api.github.com/users/threedaymonk/following{/other_user}","gists_url":"https://api.github.com/users/threedaymonk/gists{/gist_id}","starred_url":"https://api.github.com/users/threedaymonk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/threedaymonk/subscriptions","organizations_url":"https://api.github.com/users/threedaymonk/orgs","repos_url":"https://api.github.com/users/threedaymonk/repos","events_url":"https://api.github.com/users/threedaymonk/events{/privacy}","received_events_url":"https://api.github.com/users/threedaymonk/received_events","type":"User","site_admin":false},"created_at":"2015-11-11T13:09:20Z","updated_at":"2015-11-11T13:09:20Z","body":"I wonder if `reference_number` is really a good name for this, and whether calling it `uuid` might be better.\r\n\r\nI think it would be good to redefine `to_param` to use the UUID - and maybe the `find` method too."}}