{"action":"created","issue":{"url":"https://api.github.com/repos/ManageIQ/activerecord-id_regions/issues/10","repository_url":"https://api.github.com/repos/ManageIQ/activerecord-id_regions","labels_url":"https://api.github.com/repos/ManageIQ/activerecord-id_regions/issues/10/labels{/name}","comments_url":"https://api.github.com/repos/ManageIQ/activerecord-id_regions/issues/10/comments","events_url":"https://api.github.com/repos/ManageIQ/activerecord-id_regions/issues/10/events","html_url":"https://github.com/ManageIQ/activerecord-id_regions/pull/10","id":350610204,"node_id":"MDExOlB1bGxSZXF1ZXN0MjA4NDIwMzg5","number":10,"title":"Don't use new sequences to determine region","user":{"login":"bdunne","id":651659,"node_id":"MDQ6VXNlcjY1MTY1OQ==","avatar_url":"https://avatars1.githubusercontent.com/u/651659?v=4","gravatar_id":"","url":"https://api.github.com/users/bdunne","html_url":"https://github.com/bdunne","followers_url":"https://api.github.com/users/bdunne/followers","following_url":"https://api.github.com/users/bdunne/following{/other_user}","gists_url":"https://api.github.com/users/bdunne/gists{/gist_id}","starred_url":"https://api.github.com/users/bdunne/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bdunne/subscriptions","organizations_url":"https://api.github.com/users/bdunne/orgs","repos_url":"https://api.github.com/users/bdunne/repos","events_url":"https://api.github.com/users/bdunne/events{/privacy}","received_events_url":"https://api.github.com/users/bdunne/received_events","type":"User","site_admin":false},"labels":[{"id":617916633,"node_id":"MDU6TGFiZWw2MTc5MTY2MzM=","url":"https://api.github.com/repos/ManageIQ/activerecord-id_regions/labels/bug","name":"bug","color":"ee0701","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-08-14T21:48:16Z","updated_at":"2018-08-16T21:38:25Z","closed_at":null,"author_association":"MEMBER","pull_request":{"url":"https://api.github.com/repos/ManageIQ/activerecord-id_regions/pulls/10","html_url":"https://github.com/ManageIQ/activerecord-id_regions/pull/10","diff_url":"https://github.com/ManageIQ/activerecord-id_regions/pull/10.diff","patch_url":"https://github.com/ManageIQ/activerecord-id_regions/pull/10.patch"},"body":"Determine the region number before creating the table (and the new sequence).  Previously, the table (and id sequence) were created before the region was determined, and you could potentially get the sequence from the newly created sequence and use it to determine the region, incorrectly giving you 0.\r\n\r\nLuckily I think this would only happen to developers since appliances still have the REGION file and pods had the REGION ENV variable set.  Somehow this frequently happened on Travis.  cc @carbonin @jrafanie "},"comment":{"url":"https://api.github.com/repos/ManageIQ/activerecord-id_regions/issues/comments/413692781","html_url":"https://github.com/ManageIQ/activerecord-id_regions/pull/10#issuecomment-413692781","issue_url":"https://api.github.com/repos/ManageIQ/activerecord-id_regions/issues/10","id":413692781,"node_id":"MDEyOklzc3VlQ29tbWVudDQxMzY5Mjc4MQ==","user":{"login":"kbrock","id":1930,"node_id":"MDQ6VXNlcjE5MzA=","avatar_url":"https://avatars2.githubusercontent.com/u/1930?v=4","gravatar_id":"","url":"https://api.github.com/users/kbrock","html_url":"https://github.com/kbrock","followers_url":"https://api.github.com/users/kbrock/followers","following_url":"https://api.github.com/users/kbrock/following{/other_user}","gists_url":"https://api.github.com/users/kbrock/gists{/gist_id}","starred_url":"https://api.github.com/users/kbrock/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kbrock/subscriptions","organizations_url":"https://api.github.com/users/kbrock/orgs","repos_url":"https://api.github.com/users/kbrock/repos","events_url":"https://api.github.com/users/kbrock/events{/privacy}","received_events_url":"https://api.github.com/users/kbrock/received_events","type":"User","site_admin":false},"created_at":"2018-08-16T21:38:25Z","updated_at":"2018-08-16T21:38:25Z","author_association":"MEMBER","body":"nice find"}}
{"actor":{"display_login":"kbrock"}}