{"action":"opened","number":318,"pull_request":{"url":"https://api.github.com/repos/src-d/go-mysql-server/pulls/318","id":205985592,"node_id":"MDExOlB1bGxSZXF1ZXN0MjA1OTg1NTky","html_url":"https://github.com/src-d/go-mysql-server/pull/318","diff_url":"https://github.com/src-d/go-mysql-server/pull/318.diff","patch_url":"https://github.com/src-d/go-mysql-server/pull/318.patch","issue_url":"https://api.github.com/repos/src-d/go-mysql-server/issues/318","number":318,"state":"open","locked":false,"title":"sql: delete index if there is an error when it's added to the registry","user":{"login":"mcarmonaa","id":16907441,"node_id":"MDQ6VXNlcjE2OTA3NDQx","avatar_url":"https://avatars2.githubusercontent.com/u/16907441?v=4","gravatar_id":"","url":"https://api.github.com/users/mcarmonaa","html_url":"https://github.com/mcarmonaa","followers_url":"https://api.github.com/users/mcarmonaa/followers","following_url":"https://api.github.com/users/mcarmonaa/following{/other_user}","gists_url":"https://api.github.com/users/mcarmonaa/gists{/gist_id}","starred_url":"https://api.github.com/users/mcarmonaa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mcarmonaa/subscriptions","organizations_url":"https://api.github.com/users/mcarmonaa/orgs","repos_url":"https://api.github.com/users/mcarmonaa/repos","events_url":"https://api.github.com/users/mcarmonaa/events{/privacy}","received_events_url":"https://api.github.com/users/mcarmonaa/received_events","type":"User","site_admin":false},"body":"Related to https://github.com/src-d/gitbase/issues/411\r\n\r\nThis is the simplest solution. If we want to avoid create the index if it can't be added to the registry, we must mix a little bit the create index and add index logic to rely on the `IndexRegitry.AddIndex` method to create the index instance. WDYT @src-d/data-retrieval ?","created_at":"2018-08-03T10:11:05Z","updated_at":"2018-08-03T10:11:05Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/src-d/go-mysql-server/pulls/318/commits","review_comments_url":"https://api.github.com/repos/src-d/go-mysql-server/pulls/318/comments","review_comment_url":"https://api.github.com/repos/src-d/go-mysql-server/pulls/comments{/number}","comments_url":"https://api.github.com/repos/src-d/go-mysql-server/issues/318/comments","statuses_url":"https://api.github.com/repos/src-d/go-mysql-server/statuses/11a981949ccfe95ca586ad2e11876efa85f355bd","head":{"label":"mcarmonaa:fix/create-index-error","ref":"fix/create-index-error","sha":"11a981949ccfe95ca586ad2e11876efa85f355bd","user":{"login":"mcarmonaa","id":16907441,"node_id":"MDQ6VXNlcjE2OTA3NDQx","avatar_url":"https://avatars2.githubusercontent.com/u/16907441?v=4","gravatar_id":"","url":"https://api.github.com/users/mcarmonaa","html_url":"https://github.com/mcarmonaa","followers_url":"https://api.github.com/users/mcarmonaa/followers","following_url":"https://api.github.com/users/mcarmonaa/following{/other_user}","gists_url":"https://api.github.com/users/mcarmonaa/gists{/gist_id}","starred_url":"https://api.github.com/users/mcarmonaa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mcarmonaa/subscriptions","organizations_url":"https://api.github.com/users/mcarmonaa/orgs","repos_url":"https://api.github.com/users/mcarmonaa/repos","events_url":"https://api.github.com/users/mcarmonaa/events{/privacy}","received_events_url":"https://api.github.com/users/mcarmonaa/received_events","type":"User","site_admin":false},"repo":{"id":121612822,"node_id":"MDEwOlJlcG9zaXRvcnkxMjE2MTI4MjI=","name":"go-mysql-server","full_name":"mcarmonaa/go-mysql-server","owner":{"login":"mcarmonaa","id":16907441,"node_id":"MDQ6VXNlcjE2OTA3NDQx","avatar_url":"https://avatars2.githubusercontent.com/u/16907441?v=4","gravatar_id":"","url":"https://api.github.com/users/mcarmonaa","html_url":"https://github.com/mcarmonaa","followers_url":"https://api.github.com/users/mcarmonaa/followers","following_url":"https://api.github.com/users/mcarmonaa/following{/other_user}","gists_url":"https://api.github.com/users/mcarmonaa/gists{/gist_id}","starred_url":"https://api.github.com/users/mcarmonaa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mcarmonaa/subscriptions","organizations_url":"https://api.github.com/users/mcarmonaa/orgs","repos_url":"https://api.github.com/users/mcarmonaa/repos","events_url":"https://api.github.com/users/mcarmonaa/events{/privacy}","received_events_url":"https://api.github.com/users/mcarmonaa/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/mcarmonaa/go-mysql-server","description":null,"fork":true,"url":"https://api.github.com/repos/mcarmonaa/go-mysql-server","forks_url":"https://api.github.com/repos/mcarmonaa/go-mysql-server/forks","keys_url":"https://api.github.com/repos/mcarmonaa/go-mysql-server/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mcarmonaa/go-mysql-server/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mcarmonaa/go-mysql-server/teams","hooks_url":"https://api.github.com/repos/mcarmonaa/go-mysql-server/hooks","issue_events_url":"https://api.github.com/repos/mcarmonaa/go-mysql-server/issues/events{/number}","events_url":"https://api.github.com/repos/mcarmonaa/go-mysql-server/events","assignees_url":"https://api.github.com/repos/mcarmonaa/go-mysql-server/assignees{/user}","branches_url":"https://api.github.com/repos/mcarmonaa/go-mysql-server/branches{/branch}","tags_url":"https://api.github.com/repos/mcarmonaa/go-mysql-server/tags","blobs_url":"https://api.github.com/repos/mcarmonaa/go-mysql-server/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mcarmonaa/go-mysql-server/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mcarmonaa/go-mysql-server/git/refs{/sha}","trees_url":"https://api.github.com/repos/mcarmonaa/go-mysql-server/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mcarmonaa/go-mysql-server/statuses/{sha}","languages_url":"https://api.github.com/repos/mcarmonaa/go-mysql-server/languages","stargazers_url":"https://api.github.com/repos/mcarmonaa/go-mysql-server/stargazers","contributors_url":"https://api.github.com/repos/mcarmonaa/go-mysql-server/contributors","subscribers_url":"https://api.github.com/repos/mcarmonaa/go-mysql-server/subscribers","subscription_url":"https://api.github.com/repos/mcarmonaa/go-mysql-server/subscription","commits_url":"https://api.github.com/repos/mcarmonaa/go-mysql-server/commits{/sha}","git_commits_url":"https://api.github.com/repos/mcarmonaa/go-mysql-server/git/commits{/sha}","comments_url":"https://api.github.com/repos/mcarmonaa/go-mysql-server/comments{/number}","issue_comment_url":"https://api.github.com/repos/mcarmonaa/go-mysql-server/issues/comments{/number}","contents_url":"https://api.github.com/repos/mcarmonaa/go-mysql-server/contents/{+path}","compare_url":"https://api.github.com/repos/mcarmonaa/go-mysql-server/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mcarmonaa/go-mysql-server/merges","archive_url":"https://api.github.com/repos/mcarmonaa/go-mysql-server/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mcarmonaa/go-mysql-server/downloads","issues_url":"https://api.github.com/repos/mcarmonaa/go-mysql-server/issues{/number}","pulls_url":"https://api.github.com/repos/mcarmonaa/go-mysql-server/pulls{/number}","milestones_url":"https://api.github.com/repos/mcarmonaa/go-mysql-server/milestones{/number}","notifications_url":"https://api.github.com/repos/mcarmonaa/go-mysql-server/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mcarmonaa/go-mysql-server/labels{/name}","releases_url":"https://api.github.com/repos/mcarmonaa/go-mysql-server/releases{/id}","deployments_url":"https://api.github.com/repos/mcarmonaa/go-mysql-server/deployments","created_at":"2018-02-15T09:48:54Z","updated_at":"2018-08-03T08:27:58Z","pushed_at":"2018-08-03T10:07:32Z","git_url":"git://github.com/mcarmonaa/go-mysql-server.git","ssh_url":"git@github.com:mcarmonaa/go-mysql-server.git","clone_url":"https://github.com/mcarmonaa/go-mysql-server.git","svn_url":"https://github.com/mcarmonaa/go-mysql-server","homepage":null,"size":1182,"stargazers_count":0,"watchers_count":0,"language":"Go","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0","node_id":"MDc6TGljZW5zZTI="},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"src-d:master","ref":"master","sha":"523116568de9f3971bd594eca5191200b1636ce9","user":{"login":"src-d","id":15128793,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE1MTI4Nzkz","avatar_url":"https://avatars2.githubusercontent.com/u/15128793?v=4","gravatar_id":"","url":"https://api.github.com/users/src-d","html_url":"https://github.com/src-d","followers_url":"https://api.github.com/users/src-d/followers","following_url":"https://api.github.com/users/src-d/following{/other_user}","gists_url":"https://api.github.com/users/src-d/gists{/gist_id}","starred_url":"https://api.github.com/users/src-d/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/src-d/subscriptions","organizations_url":"https://api.github.com/users/src-d/orgs","repos_url":"https://api.github.com/users/src-d/repos","events_url":"https://api.github.com/users/src-d/events{/privacy}","received_events_url":"https://api.github.com/users/src-d/received_events","type":"Organization","site_admin":false},"repo":{"id":121319560,"node_id":"MDEwOlJlcG9zaXRvcnkxMjEzMTk1NjA=","name":"go-mysql-server","full_name":"src-d/go-mysql-server","owner":{"login":"src-d","id":15128793,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE1MTI4Nzkz","avatar_url":"https://avatars2.githubusercontent.com/u/15128793?v=4","gravatar_id":"","url":"https://api.github.com/users/src-d","html_url":"https://github.com/src-d","followers_url":"https://api.github.com/users/src-d/followers","following_url":"https://api.github.com/users/src-d/following{/other_user}","gists_url":"https://api.github.com/users/src-d/gists{/gist_id}","starred_url":"https://api.github.com/users/src-d/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/src-d/subscriptions","organizations_url":"https://api.github.com/users/src-d/orgs","repos_url":"https://api.github.com/users/src-d/repos","events_url":"https://api.github.com/users/src-d/events{/privacy}","received_events_url":"https://api.github.com/users/src-d/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/src-d/go-mysql-server","description":"An extensible MySQL server implementation in Go.","fork":false,"url":"https://api.github.com/repos/src-d/go-mysql-server","forks_url":"https://api.github.com/repos/src-d/go-mysql-server/forks","keys_url":"https://api.github.com/repos/src-d/go-mysql-server/keys{/key_id}","collaborators_url":"https://api.github.com/repos/src-d/go-mysql-server/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/src-d/go-mysql-server/teams","hooks_url":"https://api.github.com/repos/src-d/go-mysql-server/hooks","issue_events_url":"https://api.github.com/repos/src-d/go-mysql-server/issues/events{/number}","events_url":"https://api.github.com/repos/src-d/go-mysql-server/events","assignees_url":"https://api.github.com/repos/src-d/go-mysql-server/assignees{/user}","branches_url":"https://api.github.com/repos/src-d/go-mysql-server/branches{/branch}","tags_url":"https://api.github.com/repos/src-d/go-mysql-server/tags","blobs_url":"https://api.github.com/repos/src-d/go-mysql-server/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/src-d/go-mysql-server/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/src-d/go-mysql-server/git/refs{/sha}","trees_url":"https://api.github.com/repos/src-d/go-mysql-server/git/trees{/sha}","statuses_url":"https://api.github.com/repos/src-d/go-mysql-server/statuses/{sha}","languages_url":"https://api.github.com/repos/src-d/go-mysql-server/languages","stargazers_url":"https://api.github.com/repos/src-d/go-mysql-server/stargazers","contributors_url":"https://api.github.com/repos/src-d/go-mysql-server/contributors","subscribers_url":"https://api.github.com/repos/src-d/go-mysql-server/subscribers","subscription_url":"https://api.github.com/repos/src-d/go-mysql-server/subscription","commits_url":"https://api.github.com/repos/src-d/go-mysql-server/commits{/sha}","git_commits_url":"https://api.github.com/repos/src-d/go-mysql-server/git/commits{/sha}","comments_url":"https://api.github.com/repos/src-d/go-mysql-server/comments{/number}","issue_comment_url":"https://api.github.com/repos/src-d/go-mysql-server/issues/comments{/number}","contents_url":"https://api.github.com/repos/src-d/go-mysql-server/contents/{+path}","compare_url":"https://api.github.com/repos/src-d/go-mysql-server/compare/{base}...{head}","merges_url":"https://api.github.com/repos/src-d/go-mysql-server/merges","archive_url":"https://api.github.com/repos/src-d/go-mysql-server/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/src-d/go-mysql-server/downloads","issues_url":"https://api.github.com/repos/src-d/go-mysql-server/issues{/number}","pulls_url":"https://api.github.com/repos/src-d/go-mysql-server/pulls{/number}","milestones_url":"https://api.github.com/repos/src-d/go-mysql-server/milestones{/number}","notifications_url":"https://api.github.com/repos/src-d/go-mysql-server/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/src-d/go-mysql-server/labels{/name}","releases_url":"https://api.github.com/repos/src-d/go-mysql-server/releases{/id}","deployments_url":"https://api.github.com/repos/src-d/go-mysql-server/deployments","created_at":"2018-02-13T00:24:19Z","updated_at":"2018-08-03T08:15:03Z","pushed_at":"2018-08-03T08:15:01Z","git_url":"git://github.com/src-d/go-mysql-server.git","ssh_url":"git@github.com:src-d/go-mysql-server.git","clone_url":"https://github.com/src-d/go-mysql-server.git","svn_url":"https://github.com/src-d/go-mysql-server","homepage":"","size":1181,"stargazers_count":68,"watchers_count":68,"language":"Go","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":12,"mirror_url":null,"archived":false,"open_issues_count":23,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0","node_id":"MDc6TGljZW5zZTI="},"forks":12,"open_issues":23,"watchers":68,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/src-d/go-mysql-server/pulls/318"},"html":{"href":"https://github.com/src-d/go-mysql-server/pull/318"},"issue":{"href":"https://api.github.com/repos/src-d/go-mysql-server/issues/318"},"comments":{"href":"https://api.github.com/repos/src-d/go-mysql-server/issues/318/comments"},"review_comments":{"href":"https://api.github.com/repos/src-d/go-mysql-server/pulls/318/comments"},"review_comment":{"href":"https://api.github.com/repos/src-d/go-mysql-server/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/src-d/go-mysql-server/pulls/318/commits"},"statuses":{"href":"https://api.github.com/repos/src-d/go-mysql-server/statuses/11a981949ccfe95ca586ad2e11876efa85f355bd"}},"author_association":"MEMBER","merged":false,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"maintainer_can_modify":true,"commits":1,"additions":6,"deletions":0,"changed_files":1}}
{"actor":{"display_login":"mcarmonaa"}}