{"action":"created","issue":{"url":"https://api.github.com/repos/janaipakos/ghibliapi/issues/1","repository_url":"https://api.github.com/repos/janaipakos/ghibliapi","labels_url":"https://api.github.com/repos/janaipakos/ghibliapi/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/janaipakos/ghibliapi/issues/1/comments","events_url":"https://api.github.com/repos/janaipakos/ghibliapi/issues/1/events","html_url":"https://github.com/janaipakos/ghibliapi/issues/1","id":215017533,"number":1,"title":"Feature request: Convert all IDs to v4 UUID","user":{"login":"Joshfindit","id":1937155,"avatar_url":"https://avatars1.githubusercontent.com/u/1937155?v=3","gravatar_id":"","url":"https://api.github.com/users/Joshfindit","html_url":"https://github.com/Joshfindit","followers_url":"https://api.github.com/users/Joshfindit/followers","following_url":"https://api.github.com/users/Joshfindit/following{/other_user}","gists_url":"https://api.github.com/users/Joshfindit/gists{/gist_id}","starred_url":"https://api.github.com/users/Joshfindit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Joshfindit/subscriptions","organizations_url":"https://api.github.com/users/Joshfindit/orgs","repos_url":"https://api.github.com/users/Joshfindit/repos","events_url":"https://api.github.com/users/Joshfindit/events{/privacy}","received_events_url":"https://api.github.com/users/Joshfindit/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2017-03-17T14:21:25Z","updated_at":"2017-03-19T23:21:06Z","closed_at":null,"body":"A pleasant surprise as an API, thank you.\r\n\r\nUUIDs have the benefits of being globally unique, which means that if someone brings in data from an API that returns a UUID, they can use that UUID as the internal ID as well.\r\n\r\nIf IDs are returned sequentially, the API caller have to create a different ID internally and then map it to the external ID for later updates."},"comment":{"url":"https://api.github.com/repos/janaipakos/ghibliapi/issues/comments/287656656","html_url":"https://github.com/janaipakos/ghibliapi/issues/1#issuecomment-287656656","issue_url":"https://api.github.com/repos/janaipakos/ghibliapi/issues/1","id":287656656,"user":{"login":"Joshfindit","id":1937155,"avatar_url":"https://avatars1.githubusercontent.com/u/1937155?v=3","gravatar_id":"","url":"https://api.github.com/users/Joshfindit","html_url":"https://github.com/Joshfindit","followers_url":"https://api.github.com/users/Joshfindit/followers","following_url":"https://api.github.com/users/Joshfindit/following{/other_user}","gists_url":"https://api.github.com/users/Joshfindit/gists{/gist_id}","starred_url":"https://api.github.com/users/Joshfindit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Joshfindit/subscriptions","organizations_url":"https://api.github.com/users/Joshfindit/orgs","repos_url":"https://api.github.com/users/Joshfindit/repos","events_url":"https://api.github.com/users/Joshfindit/events{/privacy}","received_events_url":"https://api.github.com/users/Joshfindit/received_events","type":"User","site_admin":false},"created_at":"2017-03-19T23:21:06Z","updated_at":"2017-03-19T23:21:06Z","body":"Yep. If you were going to convert in one fell swoop, just assign v4 (random) UUIDs to each entry in the database and accept those IDs in place of the numerical ones.\r\nThen, when the database creates a new entry, generate and store the UUID for it.\r\n\r\nUUIDs can be generated easily in any programming language I know of as well as linux with `uuidgen` (OSX has a `uuidgen` command, but it doesn't follow the spec), and sites like https://www.uuidgenerator.net\r\n\r\n"}}
{"actor":{"display_login":"Joshfindit"}}