{"action":"opened","number":17,"pull_request":{"url":"https://api.github.com/repos/TwitchScience/blueprint/pulls/17","id":68950686,"html_url":"https://github.com/TwitchScience/blueprint/pull/17","diff_url":"https://github.com/TwitchScience/blueprint/pull/17.diff","patch_url":"https://github.com/TwitchScience/blueprint/pull/17.patch","issue_url":"https://api.github.com/repos/TwitchScience/blueprint/issues/17","number":17,"state":"open","locked":false,"title":"Bpdb schema mirror","user":{"login":"mjperrone","id":3848371,"avatar_url":"https://avatars.githubusercontent.com/u/3848371?v=3","gravatar_id":"","url":"https://api.github.com/users/mjperrone","html_url":"https://github.com/mjperrone","followers_url":"https://api.github.com/users/mjperrone/followers","following_url":"https://api.github.com/users/mjperrone/following{/other_user}","gists_url":"https://api.github.com/users/mjperrone/gists{/gist_id}","starred_url":"https://api.github.com/users/mjperrone/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mjperrone/subscriptions","organizations_url":"https://api.github.com/users/mjperrone/orgs","repos_url":"https://api.github.com/users/mjperrone/repos","events_url":"https://api.github.com/users/mjperrone/events{/privacy}","received_events_url":"https://api.github.com/users/mjperrone/received_events","type":"User","site_admin":false},"body":"add darklaunch bpdb schema store\r\n\r\nSummary:\r\nThe point of this change is to start tracking the schemas in blueprint's own datastore alongside the current tracking through scoop in redshift table comments. it also adds a second endpoint for listing all the schemas, pulling from blueprintdb instead of ace. It won't replace the existing schema endpoint (yet), but serves as easy visibility into whether or not the bpdb store is in sync with ace. Nothing calls it.\r\n\r\nAlong with tracking changes, bpdb needs to be initialized from the schema. Code for that here ( https://git-aws.internal.justin.tv/mperrone/scratch/blob/master/blueprint_testing/bp_from_ace.py ).\r\n\r\nThings I specifically am hoping for input on with this CR is:\r\n1. What is a better package name than bpdb?\r\n2. What should main.go#24 MaxConnections be? How do I think about that?\r\n3. What other unit tests/ integration tests could I write?\r\n\r\n\r\nTest Plan:\r\n`go test ./...` passes\r\nbuilds\r\npasses integration test\r\nAfter this has been dark launched for a while I'll use this https://git-aws.internal.justin.tv/mperrone/scratch/blob/master/blueprint_testing/verifyequal.py to verify that it is staying in sync.\r\n\r\n\r\nReviewers:\r\nrhu\r\n\r\nSubscribers:\r\ngareth\r\nmaasted\r\ndwe\r\njackgao","created_at":"2016-05-04T23:58:14Z","updated_at":"2016-05-04T23:58:14Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/TwitchScience/blueprint/pulls/17/commits","review_comments_url":"https://api.github.com/repos/TwitchScience/blueprint/pulls/17/comments","review_comment_url":"https://api.github.com/repos/TwitchScience/blueprint/pulls/comments{/number}","comments_url":"https://api.github.com/repos/TwitchScience/blueprint/issues/17/comments","statuses_url":"https://api.github.com/repos/TwitchScience/blueprint/statuses/68aadc78f104cc8bcdb6589955176672eb0b89e5","head":{"label":"TwitchScience:bpdb_schema_mirror","ref":"bpdb_schema_mirror","sha":"68aadc78f104cc8bcdb6589955176672eb0b89e5","user":{"login":"TwitchScience","id":8139387,"avatar_url":"https://avatars.githubusercontent.com/u/8139387?v=3","gravatar_id":"","url":"https://api.github.com/users/TwitchScience","html_url":"https://github.com/TwitchScience","followers_url":"https://api.github.com/users/TwitchScience/followers","following_url":"https://api.github.com/users/TwitchScience/following{/other_user}","gists_url":"https://api.github.com/users/TwitchScience/gists{/gist_id}","starred_url":"https://api.github.com/users/TwitchScience/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TwitchScience/subscriptions","organizations_url":"https://api.github.com/users/TwitchScience/orgs","repos_url":"https://api.github.com/users/TwitchScience/repos","events_url":"https://api.github.com/users/TwitchScience/events{/privacy}","received_events_url":"https://api.github.com/users/TwitchScience/received_events","type":"Organization","site_admin":false},"repo":{"id":22086553,"name":"blueprint","full_name":"TwitchScience/blueprint","owner":{"login":"TwitchScience","id":8139387,"avatar_url":"https://avatars.githubusercontent.com/u/8139387?v=3","gravatar_id":"","url":"https://api.github.com/users/TwitchScience","html_url":"https://github.com/TwitchScience","followers_url":"https://api.github.com/users/TwitchScience/followers","following_url":"https://api.github.com/users/TwitchScience/following{/other_user}","gists_url":"https://api.github.com/users/TwitchScience/gists{/gist_id}","starred_url":"https://api.github.com/users/TwitchScience/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TwitchScience/subscriptions","organizations_url":"https://api.github.com/users/TwitchScience/orgs","repos_url":"https://api.github.com/users/TwitchScience/repos","events_url":"https://api.github.com/users/TwitchScience/events{/privacy}","received_events_url":"https://api.github.com/users/TwitchScience/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/TwitchScience/blueprint","description":"Schema Server","fork":false,"url":"https://api.github.com/repos/TwitchScience/blueprint","forks_url":"https://api.github.com/repos/TwitchScience/blueprint/forks","keys_url":"https://api.github.com/repos/TwitchScience/blueprint/keys{/key_id}","collaborators_url":"https://api.github.com/repos/TwitchScience/blueprint/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/TwitchScience/blueprint/teams","hooks_url":"https://api.github.com/repos/TwitchScience/blueprint/hooks","issue_events_url":"https://api.github.com/repos/TwitchScience/blueprint/issues/events{/number}","events_url":"https://api.github.com/repos/TwitchScience/blueprint/events","assignees_url":"https://api.github.com/repos/TwitchScience/blueprint/assignees{/user}","branches_url":"https://api.github.com/repos/TwitchScience/blueprint/branches{/branch}","tags_url":"https://api.github.com/repos/TwitchScience/blueprint/tags","blobs_url":"https://api.github.com/repos/TwitchScience/blueprint/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/TwitchScience/blueprint/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/TwitchScience/blueprint/git/refs{/sha}","trees_url":"https://api.github.com/repos/TwitchScience/blueprint/git/trees{/sha}","statuses_url":"https://api.github.com/repos/TwitchScience/blueprint/statuses/{sha}","languages_url":"https://api.github.com/repos/TwitchScience/blueprint/languages","stargazers_url":"https://api.github.com/repos/TwitchScience/blueprint/stargazers","contributors_url":"https://api.github.com/repos/TwitchScience/blueprint/contributors","subscribers_url":"https://api.github.com/repos/TwitchScience/blueprint/subscribers","subscription_url":"https://api.github.com/repos/TwitchScience/blueprint/subscription","commits_url":"https://api.github.com/repos/TwitchScience/blueprint/commits{/sha}","git_commits_url":"https://api.github.com/repos/TwitchScience/blueprint/git/commits{/sha}","comments_url":"https://api.github.com/repos/TwitchScience/blueprint/comments{/number}","issue_comment_url":"https://api.github.com/repos/TwitchScience/blueprint/issues/comments{/number}","contents_url":"https://api.github.com/repos/TwitchScience/blueprint/contents/{+path}","compare_url":"https://api.github.com/repos/TwitchScience/blueprint/compare/{base}...{head}","merges_url":"https://api.github.com/repos/TwitchScience/blueprint/merges","archive_url":"https://api.github.com/repos/TwitchScience/blueprint/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/TwitchScience/blueprint/downloads","issues_url":"https://api.github.com/repos/TwitchScience/blueprint/issues{/number}","pulls_url":"https://api.github.com/repos/TwitchScience/blueprint/pulls{/number}","milestones_url":"https://api.github.com/repos/TwitchScience/blueprint/milestones{/number}","notifications_url":"https://api.github.com/repos/TwitchScience/blueprint/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/TwitchScience/blueprint/labels{/name}","releases_url":"https://api.github.com/repos/TwitchScience/blueprint/releases{/id}","deployments_url":"https://api.github.com/repos/TwitchScience/blueprint/deployments","created_at":"2014-07-22T01:31:37Z","updated_at":"2016-02-14T10:23:26Z","pushed_at":"2016-05-04T23:58:14Z","git_url":"git://github.com/TwitchScience/blueprint.git","ssh_url":"git@github.com:TwitchScience/blueprint.git","clone_url":"https://github.com/TwitchScience/blueprint.git","svn_url":"https://github.com/TwitchScience/blueprint","homepage":null,"size":2904,"stargazers_count":4,"watchers_count":4,"language":"Go","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":2,"forks":2,"open_issues":2,"watchers":4,"default_branch":"master"}},"base":{"label":"TwitchScience:master","ref":"master","sha":"28502eab0603a54444bf894a22e3b82154a0963b","user":{"login":"TwitchScience","id":8139387,"avatar_url":"https://avatars.githubusercontent.com/u/8139387?v=3","gravatar_id":"","url":"https://api.github.com/users/TwitchScience","html_url":"https://github.com/TwitchScience","followers_url":"https://api.github.com/users/TwitchScience/followers","following_url":"https://api.github.com/users/TwitchScience/following{/other_user}","gists_url":"https://api.github.com/users/TwitchScience/gists{/gist_id}","starred_url":"https://api.github.com/users/TwitchScience/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TwitchScience/subscriptions","organizations_url":"https://api.github.com/users/TwitchScience/orgs","repos_url":"https://api.github.com/users/TwitchScience/repos","events_url":"https://api.github.com/users/TwitchScience/events{/privacy}","received_events_url":"https://api.github.com/users/TwitchScience/received_events","type":"Organization","site_admin":false},"repo":{"id":22086553,"name":"blueprint","full_name":"TwitchScience/blueprint","owner":{"login":"TwitchScience","id":8139387,"avatar_url":"https://avatars.githubusercontent.com/u/8139387?v=3","gravatar_id":"","url":"https://api.github.com/users/TwitchScience","html_url":"https://github.com/TwitchScience","followers_url":"https://api.github.com/users/TwitchScience/followers","following_url":"https://api.github.com/users/TwitchScience/following{/other_user}","gists_url":"https://api.github.com/users/TwitchScience/gists{/gist_id}","starred_url":"https://api.github.com/users/TwitchScience/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TwitchScience/subscriptions","organizations_url":"https://api.github.com/users/TwitchScience/orgs","repos_url":"https://api.github.com/users/TwitchScience/repos","events_url":"https://api.github.com/users/TwitchScience/events{/privacy}","received_events_url":"https://api.github.com/users/TwitchScience/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/TwitchScience/blueprint","description":"Schema Server","fork":false,"url":"https://api.github.com/repos/TwitchScience/blueprint","forks_url":"https://api.github.com/repos/TwitchScience/blueprint/forks","keys_url":"https://api.github.com/repos/TwitchScience/blueprint/keys{/key_id}","collaborators_url":"https://api.github.com/repos/TwitchScience/blueprint/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/TwitchScience/blueprint/teams","hooks_url":"https://api.github.com/repos/TwitchScience/blueprint/hooks","issue_events_url":"https://api.github.com/repos/TwitchScience/blueprint/issues/events{/number}","events_url":"https://api.github.com/repos/TwitchScience/blueprint/events","assignees_url":"https://api.github.com/repos/TwitchScience/blueprint/assignees{/user}","branches_url":"https://api.github.com/repos/TwitchScience/blueprint/branches{/branch}","tags_url":"https://api.github.com/repos/TwitchScience/blueprint/tags","blobs_url":"https://api.github.com/repos/TwitchScience/blueprint/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/TwitchScience/blueprint/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/TwitchScience/blueprint/git/refs{/sha}","trees_url":"https://api.github.com/repos/TwitchScience/blueprint/git/trees{/sha}","statuses_url":"https://api.github.com/repos/TwitchScience/blueprint/statuses/{sha}","languages_url":"https://api.github.com/repos/TwitchScience/blueprint/languages","stargazers_url":"https://api.github.com/repos/TwitchScience/blueprint/stargazers","contributors_url":"https://api.github.com/repos/TwitchScience/blueprint/contributors","subscribers_url":"https://api.github.com/repos/TwitchScience/blueprint/subscribers","subscription_url":"https://api.github.com/repos/TwitchScience/blueprint/subscription","commits_url":"https://api.github.com/repos/TwitchScience/blueprint/commits{/sha}","git_commits_url":"https://api.github.com/repos/TwitchScience/blueprint/git/commits{/sha}","comments_url":"https://api.github.com/repos/TwitchScience/blueprint/comments{/number}","issue_comment_url":"https://api.github.com/repos/TwitchScience/blueprint/issues/comments{/number}","contents_url":"https://api.github.com/repos/TwitchScience/blueprint/contents/{+path}","compare_url":"https://api.github.com/repos/TwitchScience/blueprint/compare/{base}...{head}","merges_url":"https://api.github.com/repos/TwitchScience/blueprint/merges","archive_url":"https://api.github.com/repos/TwitchScience/blueprint/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/TwitchScience/blueprint/downloads","issues_url":"https://api.github.com/repos/TwitchScience/blueprint/issues{/number}","pulls_url":"https://api.github.com/repos/TwitchScience/blueprint/pulls{/number}","milestones_url":"https://api.github.com/repos/TwitchScience/blueprint/milestones{/number}","notifications_url":"https://api.github.com/repos/TwitchScience/blueprint/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/TwitchScience/blueprint/labels{/name}","releases_url":"https://api.github.com/repos/TwitchScience/blueprint/releases{/id}","deployments_url":"https://api.github.com/repos/TwitchScience/blueprint/deployments","created_at":"2014-07-22T01:31:37Z","updated_at":"2016-02-14T10:23:26Z","pushed_at":"2016-05-04T23:58:14Z","git_url":"git://github.com/TwitchScience/blueprint.git","ssh_url":"git@github.com:TwitchScience/blueprint.git","clone_url":"https://github.com/TwitchScience/blueprint.git","svn_url":"https://github.com/TwitchScience/blueprint","homepage":null,"size":2904,"stargazers_count":4,"watchers_count":4,"language":"Go","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":2,"forks":2,"open_issues":2,"watchers":4,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/TwitchScience/blueprint/pulls/17"},"html":{"href":"https://github.com/TwitchScience/blueprint/pull/17"},"issue":{"href":"https://api.github.com/repos/TwitchScience/blueprint/issues/17"},"comments":{"href":"https://api.github.com/repos/TwitchScience/blueprint/issues/17/comments"},"review_comments":{"href":"https://api.github.com/repos/TwitchScience/blueprint/pulls/17/comments"},"review_comment":{"href":"https://api.github.com/repos/TwitchScience/blueprint/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/TwitchScience/blueprint/pulls/17/commits"},"statuses":{"href":"https://api.github.com/repos/TwitchScience/blueprint/statuses/68aadc78f104cc8bcdb6589955176672eb0b89e5"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":4,"additions":7294,"deletions":1743,"changed_files":151}}