{"action":"created","comment":{"url":"https://api.github.com/repos/graphprotocol/graph-node/pulls/comments/239527589","pull_request_review_id":182337634,"id":239527589,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIzOTUyNzU4OQ==","diff_hunk":"@@ -1,352 +1,9 @@\n-//! See `core/src/subgraph/subgraphs.graphql` for corresponding graphql schema.\n-\n use super::SubgraphId;\n-use components::store::{EntityKey, EntityOperation, Store};\n-use data::store::Value;\n-use failure::Error;\n-use std::collections::HashMap;\n \n /// ID of the subgraph of subgraphs.\n-pub const SUBGRAPHS_ID: &str = \"subgraphs\";\n+lazy_static! {\n+    pub static ref SUBGRAPHS_ID: SubgraphId = SubgraphId::new(\"subgraphs\").unwrap();\n+}","path":"graph/src/data/subgraph/schema.rs","position":13,"original_position":13,"commit_id":"575e5564ffdff8d6303747f35ac21b07f13355e5","original_commit_id":"575e5564ffdff8d6303747f35ac21b07f13355e5","user":{"login":"timmclean","id":2249905,"node_id":"MDQ6VXNlcjIyNDk5MDU=","avatar_url":"https://avatars3.githubusercontent.com/u/2249905?v=4","gravatar_id":"","url":"https://api.github.com/users/timmclean","html_url":"https://github.com/timmclean","followers_url":"https://api.github.com/users/timmclean/followers","following_url":"https://api.github.com/users/timmclean/following{/other_user}","gists_url":"https://api.github.com/users/timmclean/gists{/gist_id}","starred_url":"https://api.github.com/users/timmclean/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/timmclean/subscriptions","organizations_url":"https://api.github.com/users/timmclean/orgs","repos_url":"https://api.github.com/users/timmclean/repos","events_url":"https://api.github.com/users/timmclean/events{/privacy}","received_events_url":"https://api.github.com/users/timmclean/received_events","type":"User","site_admin":false},"body":":sunglasses: ","created_at":"2018-12-06T16:47:09Z","updated_at":"2018-12-06T16:47:10Z","html_url":"https://github.com/graphprotocol/graph-node/pull/632#discussion_r239527589","pull_request_url":"https://api.github.com/repos/graphprotocol/graph-node/pulls/632","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/graphprotocol/graph-node/pulls/comments/239527589"},"html":{"href":"https://github.com/graphprotocol/graph-node/pull/632#discussion_r239527589"},"pull_request":{"href":"https://api.github.com/repos/graphprotocol/graph-node/pulls/632"}},"in_reply_to_id":239429997},"pull_request":{"url":"https://api.github.com/repos/graphprotocol/graph-node/pulls/632","id":236425918,"node_id":"MDExOlB1bGxSZXF1ZXN0MjM2NDI1OTE4","html_url":"https://github.com/graphprotocol/graph-node/pull/632","diff_url":"https://github.com/graphprotocol/graph-node/pull/632.diff","patch_url":"https://github.com/graphprotocol/graph-node/pull/632.patch","issue_url":"https://api.github.com/repos/graphprotocol/graph-node/issues/632","number":632,"state":"open","locked":false,"title":"Refactor subgraph entity logic to SubgraphDefinitionStore","user":{"login":"timmclean","id":2249905,"node_id":"MDQ6VXNlcjIyNDk5MDU=","avatar_url":"https://avatars3.githubusercontent.com/u/2249905?v=4","gravatar_id":"","url":"https://api.github.com/users/timmclean","html_url":"https://github.com/timmclean","followers_url":"https://api.github.com/users/timmclean/followers","following_url":"https://api.github.com/users/timmclean/following{/other_user}","gists_url":"https://api.github.com/users/timmclean/gists{/gist_id}","starred_url":"https://api.github.com/users/timmclean/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/timmclean/subscriptions","organizations_url":"https://api.github.com/users/timmclean/orgs","repos_url":"https://api.github.com/users/timmclean/repos","events_url":"https://api.github.com/users/timmclean/events{/privacy}","received_events_url":"https://api.github.com/users/timmclean/received_events","type":"User","site_admin":false},"body":"In preparation for addition of subgraph status fields.\r\n\r\nSubgraphDefinitionStore is responsible for writing (and maybe reading) subgraph data as special subgraph entities.\r\n\r\nPart of #584 ","created_at":"2018-12-06T06:54:35Z","updated_at":"2018-12-06T16:47:10Z","closed_at":null,"merged_at":null,"merge_commit_sha":"738644b91c494d872bf447d07b31715c5db0a58d","assignee":{"login":"timmclean","id":2249905,"node_id":"MDQ6VXNlcjIyNDk5MDU=","avatar_url":"https://avatars3.githubusercontent.com/u/2249905?v=4","gravatar_id":"","url":"https://api.github.com/users/timmclean","html_url":"https://github.com/timmclean","followers_url":"https://api.github.com/users/timmclean/followers","following_url":"https://api.github.com/users/timmclean/following{/other_user}","gists_url":"https://api.github.com/users/timmclean/gists{/gist_id}","starred_url":"https://api.github.com/users/timmclean/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/timmclean/subscriptions","organizations_url":"https://api.github.com/users/timmclean/orgs","repos_url":"https://api.github.com/users/timmclean/repos","events_url":"https://api.github.com/users/timmclean/events{/privacy}","received_events_url":"https://api.github.com/users/timmclean/received_events","type":"User","site_admin":false},"assignees":[{"login":"timmclean","id":2249905,"node_id":"MDQ6VXNlcjIyNDk5MDU=","avatar_url":"https://avatars3.githubusercontent.com/u/2249905?v=4","gravatar_id":"","url":"https://api.github.com/users/timmclean","html_url":"https://github.com/timmclean","followers_url":"https://api.github.com/users/timmclean/followers","following_url":"https://api.github.com/users/timmclean/following{/other_user}","gists_url":"https://api.github.com/users/timmclean/gists{/gist_id}","starred_url":"https://api.github.com/users/timmclean/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/timmclean/subscriptions","organizations_url":"https://api.github.com/users/timmclean/orgs","repos_url":"https://api.github.com/users/timmclean/repos","events_url":"https://api.github.com/users/timmclean/events{/privacy}","received_events_url":"https://api.github.com/users/timmclean/received_events","type":"User","site_admin":false}],"requested_reviewers":[],"requested_teams":[],"labels":[{"id":1035324681,"node_id":"MDU6TGFiZWwxMDM1MzI0Njgx","url":"https://api.github.com/repos/graphprotocol/graph-node/labels/area/store","name":"area/store","color":"88aaff","default":false},{"id":1035315637,"node_id":"MDU6TGFiZWwxMDM1MzE1NjM3","url":"https://api.github.com/repos/graphprotocol/graph-node/labels/area/subgraphs","name":"area/subgraphs","color":"5319e7","default":false},{"id":915843397,"node_id":"MDU6TGFiZWw5MTU4NDMzOTc=","url":"https://api.github.com/repos/graphprotocol/graph-node/labels/pending%20review","name":"pending review","color":"ededed","default":false},{"id":933836988,"node_id":"MDU6TGFiZWw5MzM4MzY5ODg=","url":"https://api.github.com/repos/graphprotocol/graph-node/labels/review","name":"review","color":"ededed","default":false}],"milestone":null,"commits_url":"https://api.github.com/repos/graphprotocol/graph-node/pulls/632/commits","review_comments_url":"https://api.github.com/repos/graphprotocol/graph-node/pulls/632/comments","review_comment_url":"https://api.github.com/repos/graphprotocol/graph-node/pulls/comments{/number}","comments_url":"https://api.github.com/repos/graphprotocol/graph-node/issues/632/comments","statuses_url":"https://api.github.com/repos/graphprotocol/graph-node/statuses/575e5564ffdff8d6303747f35ac21b07f13355e5","head":{"label":"graphprotocol:tim/subgraph-entities","ref":"tim/subgraph-entities","sha":"575e5564ffdff8d6303747f35ac21b07f13355e5","user":{"login":"graphprotocol","id":38020273,"node_id":"MDEyOk9yZ2FuaXphdGlvbjM4MDIwMjcz","avatar_url":"https://avatars2.githubusercontent.com/u/38020273?v=4","gravatar_id":"","url":"https://api.github.com/users/graphprotocol","html_url":"https://github.com/graphprotocol","followers_url":"https://api.github.com/users/graphprotocol/followers","following_url":"https://api.github.com/users/graphprotocol/following{/other_user}","gists_url":"https://api.github.com/users/graphprotocol/gists{/gist_id}","starred_url":"https://api.github.com/users/graphprotocol/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/graphprotocol/subscriptions","organizations_url":"https://api.github.com/users/graphprotocol/orgs","repos_url":"https://api.github.com/users/graphprotocol/repos","events_url":"https://api.github.com/users/graphprotocol/events{/privacy}","received_events_url":"https://api.github.com/users/graphprotocol/received_events","type":"Organization","site_admin":false},"repo":{"id":130174051,"node_id":"MDEwOlJlcG9zaXRvcnkxMzAxNzQwNTE=","name":"graph-node","full_name":"graphprotocol/graph-node","private":false,"owner":{"login":"graphprotocol","id":38020273,"node_id":"MDEyOk9yZ2FuaXphdGlvbjM4MDIwMjcz","avatar_url":"https://avatars2.githubusercontent.com/u/38020273?v=4","gravatar_id":"","url":"https://api.github.com/users/graphprotocol","html_url":"https://github.com/graphprotocol","followers_url":"https://api.github.com/users/graphprotocol/followers","following_url":"https://api.github.com/users/graphprotocol/following{/other_user}","gists_url":"https://api.github.com/users/graphprotocol/gists{/gist_id}","starred_url":"https://api.github.com/users/graphprotocol/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/graphprotocol/subscriptions","organizations_url":"https://api.github.com/users/graphprotocol/orgs","repos_url":"https://api.github.com/users/graphprotocol/repos","events_url":"https://api.github.com/users/graphprotocol/events{/privacy}","received_events_url":"https://api.github.com/users/graphprotocol/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/graphprotocol/graph-node","description":"Graph Node indexes data from immutable datasources and serves it over GraphQL","fork":false,"url":"https://api.github.com/repos/graphprotocol/graph-node","forks_url":"https://api.github.com/repos/graphprotocol/graph-node/forks","keys_url":"https://api.github.com/repos/graphprotocol/graph-node/keys{/key_id}","collaborators_url":"https://api.github.com/repos/graphprotocol/graph-node/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/graphprotocol/graph-node/teams","hooks_url":"https://api.github.com/repos/graphprotocol/graph-node/hooks","issue_events_url":"https://api.github.com/repos/graphprotocol/graph-node/issues/events{/number}","events_url":"https://api.github.com/repos/graphprotocol/graph-node/events","assignees_url":"https://api.github.com/repos/graphprotocol/graph-node/assignees{/user}","branches_url":"https://api.github.com/repos/graphprotocol/graph-node/branches{/branch}","tags_url":"https://api.github.com/repos/graphprotocol/graph-node/tags","blobs_url":"https://api.github.com/repos/graphprotocol/graph-node/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/graphprotocol/graph-node/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/graphprotocol/graph-node/git/refs{/sha}","trees_url":"https://api.github.com/repos/graphprotocol/graph-node/git/trees{/sha}","statuses_url":"https://api.github.com/repos/graphprotocol/graph-node/statuses/{sha}","languages_url":"https://api.github.com/repos/graphprotocol/graph-node/languages","stargazers_url":"https://api.github.com/repos/graphprotocol/graph-node/stargazers","contributors_url":"https://api.github.com/repos/graphprotocol/graph-node/contributors","subscribers_url":"https://api.github.com/repos/graphprotocol/graph-node/subscribers","subscription_url":"https://api.github.com/repos/graphprotocol/graph-node/subscription","commits_url":"https://api.github.com/repos/graphprotocol/graph-node/commits{/sha}","git_commits_url":"https://api.github.com/repos/graphprotocol/graph-node/git/commits{/sha}","comments_url":"https://api.github.com/repos/graphprotocol/graph-node/comments{/number}","issue_comment_url":"https://api.github.com/repos/graphprotocol/graph-node/issues/comments{/number}","contents_url":"https://api.github.com/repos/graphprotocol/graph-node/contents/{+path}","compare_url":"https://api.github.com/repos/graphprotocol/graph-node/compare/{base}...{head}","merges_url":"https://api.github.com/repos/graphprotocol/graph-node/merges","archive_url":"https://api.github.com/repos/graphprotocol/graph-node/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/graphprotocol/graph-node/downloads","issues_url":"https://api.github.com/repos/graphprotocol/graph-node/issues{/number}","pulls_url":"https://api.github.com/repos/graphprotocol/graph-node/pulls{/number}","milestones_url":"https://api.github.com/repos/graphprotocol/graph-node/milestones{/number}","notifications_url":"https://api.github.com/repos/graphprotocol/graph-node/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/graphprotocol/graph-node/labels{/name}","releases_url":"https://api.github.com/repos/graphprotocol/graph-node/releases{/id}","deployments_url":"https://api.github.com/repos/graphprotocol/graph-node/deployments","created_at":"2018-04-19T07:13:50Z","updated_at":"2018-12-06T15:23:41Z","pushed_at":"2018-12-06T14:37:32Z","git_url":"git://github.com/graphprotocol/graph-node.git","ssh_url":"git@github.com:graphprotocol/graph-node.git","clone_url":"https://github.com/graphprotocol/graph-node.git","svn_url":"https://github.com/graphprotocol/graph-node","homepage":"https://thegraph.com","size":6048,"stargazers_count":171,"watchers_count":171,"language":"Rust","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":22,"mirror_url":null,"archived":false,"open_issues_count":103,"license":{"key":"other","name":"Other","spdx_id":"NOASSERTION","url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":22,"open_issues":103,"watchers":171,"default_branch":"master"}},"base":{"label":"graphprotocol:master","ref":"master","sha":"ea493932cc60d15d689731d75f447b879b94c10f","user":{"login":"graphprotocol","id":38020273,"node_id":"MDEyOk9yZ2FuaXphdGlvbjM4MDIwMjcz","avatar_url":"https://avatars2.githubusercontent.com/u/38020273?v=4","gravatar_id":"","url":"https://api.github.com/users/graphprotocol","html_url":"https://github.com/graphprotocol","followers_url":"https://api.github.com/users/graphprotocol/followers","following_url":"https://api.github.com/users/graphprotocol/following{/other_user}","gists_url":"https://api.github.com/users/graphprotocol/gists{/gist_id}","starred_url":"https://api.github.com/users/graphprotocol/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/graphprotocol/subscriptions","organizations_url":"https://api.github.com/users/graphprotocol/orgs","repos_url":"https://api.github.com/users/graphprotocol/repos","events_url":"https://api.github.com/users/graphprotocol/events{/privacy}","received_events_url":"https://api.github.com/users/graphprotocol/received_events","type":"Organization","site_admin":false},"repo":{"id":130174051,"node_id":"MDEwOlJlcG9zaXRvcnkxMzAxNzQwNTE=","name":"graph-node","full_name":"graphprotocol/graph-node","private":false,"owner":{"login":"graphprotocol","id":38020273,"node_id":"MDEyOk9yZ2FuaXphdGlvbjM4MDIwMjcz","avatar_url":"https://avatars2.githubusercontent.com/u/38020273?v=4","gravatar_id":"","url":"https://api.github.com/users/graphprotocol","html_url":"https://github.com/graphprotocol","followers_url":"https://api.github.com/users/graphprotocol/followers","following_url":"https://api.github.com/users/graphprotocol/following{/other_user}","gists_url":"https://api.github.com/users/graphprotocol/gists{/gist_id}","starred_url":"https://api.github.com/users/graphprotocol/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/graphprotocol/subscriptions","organizations_url":"https://api.github.com/users/graphprotocol/orgs","repos_url":"https://api.github.com/users/graphprotocol/repos","events_url":"https://api.github.com/users/graphprotocol/events{/privacy}","received_events_url":"https://api.github.com/users/graphprotocol/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/graphprotocol/graph-node","description":"Graph Node indexes data from immutable datasources and serves it over GraphQL","fork":false,"url":"https://api.github.com/repos/graphprotocol/graph-node","forks_url":"https://api.github.com/repos/graphprotocol/graph-node/forks","keys_url":"https://api.github.com/repos/graphprotocol/graph-node/keys{/key_id}","collaborators_url":"https://api.github.com/repos/graphprotocol/graph-node/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/graphprotocol/graph-node/teams","hooks_url":"https://api.github.com/repos/graphprotocol/graph-node/hooks","issue_events_url":"https://api.github.com/repos/graphprotocol/graph-node/issues/events{/number}","events_url":"https://api.github.com/repos/graphprotocol/graph-node/events","assignees_url":"https://api.github.com/repos/graphprotocol/graph-node/assignees{/user}","branches_url":"https://api.github.com/repos/graphprotocol/graph-node/branches{/branch}","tags_url":"https://api.github.com/repos/graphprotocol/graph-node/tags","blobs_url":"https://api.github.com/repos/graphprotocol/graph-node/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/graphprotocol/graph-node/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/graphprotocol/graph-node/git/refs{/sha}","trees_url":"https://api.github.com/repos/graphprotocol/graph-node/git/trees{/sha}","statuses_url":"https://api.github.com/repos/graphprotocol/graph-node/statuses/{sha}","languages_url":"https://api.github.com/repos/graphprotocol/graph-node/languages","stargazers_url":"https://api.github.com/repos/graphprotocol/graph-node/stargazers","contributors_url":"https://api.github.com/repos/graphprotocol/graph-node/contributors","subscribers_url":"https://api.github.com/repos/graphprotocol/graph-node/subscribers","subscription_url":"https://api.github.com/repos/graphprotocol/graph-node/subscription","commits_url":"https://api.github.com/repos/graphprotocol/graph-node/commits{/sha}","git_commits_url":"https://api.github.com/repos/graphprotocol/graph-node/git/commits{/sha}","comments_url":"https://api.github.com/repos/graphprotocol/graph-node/comments{/number}","issue_comment_url":"https://api.github.com/repos/graphprotocol/graph-node/issues/comments{/number}","contents_url":"https://api.github.com/repos/graphprotocol/graph-node/contents/{+path}","compare_url":"https://api.github.com/repos/graphprotocol/graph-node/compare/{base}...{head}","merges_url":"https://api.github.com/repos/graphprotocol/graph-node/merges","archive_url":"https://api.github.com/repos/graphprotocol/graph-node/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/graphprotocol/graph-node/downloads","issues_url":"https://api.github.com/repos/graphprotocol/graph-node/issues{/number}","pulls_url":"https://api.github.com/repos/graphprotocol/graph-node/pulls{/number}","milestones_url":"https://api.github.com/repos/graphprotocol/graph-node/milestones{/number}","notifications_url":"https://api.github.com/repos/graphprotocol/graph-node/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/graphprotocol/graph-node/labels{/name}","releases_url":"https://api.github.com/repos/graphprotocol/graph-node/releases{/id}","deployments_url":"https://api.github.com/repos/graphprotocol/graph-node/deployments","created_at":"2018-04-19T07:13:50Z","updated_at":"2018-12-06T15:23:41Z","pushed_at":"2018-12-06T14:37:32Z","git_url":"git://github.com/graphprotocol/graph-node.git","ssh_url":"git@github.com:graphprotocol/graph-node.git","clone_url":"https://github.com/graphprotocol/graph-node.git","svn_url":"https://github.com/graphprotocol/graph-node","homepage":"https://thegraph.com","size":6048,"stargazers_count":171,"watchers_count":171,"language":"Rust","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":22,"mirror_url":null,"archived":false,"open_issues_count":103,"license":{"key":"other","name":"Other","spdx_id":"NOASSERTION","url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":22,"open_issues":103,"watchers":171,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/graphprotocol/graph-node/pulls/632"},"html":{"href":"https://github.com/graphprotocol/graph-node/pull/632"},"issue":{"href":"https://api.github.com/repos/graphprotocol/graph-node/issues/632"},"comments":{"href":"https://api.github.com/repos/graphprotocol/graph-node/issues/632/comments"},"review_comments":{"href":"https://api.github.com/repos/graphprotocol/graph-node/pulls/632/comments"},"review_comment":{"href":"https://api.github.com/repos/graphprotocol/graph-node/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/graphprotocol/graph-node/pulls/632/commits"},"statuses":{"href":"https://api.github.com/repos/graphprotocol/graph-node/statuses/575e5564ffdff8d6303747f35ac21b07f13355e5"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"timmclean"}}