{"action":"created","comment":{"url":"https://api.github.com/repos/digitalbazaar/bedrock-ledger-storage-mongodb/pulls/comments/169366785","pull_request_review_id":97881227,"id":169366785,"diff_hunk":"@@ -26,55 +26,58 @@ module.exports = class LedgerBlockStorage {\n \n   /**\n    * Adds a block in the ledger given a block, metadata associated with the\n-   * block, and a set of options.\n+   * block\n    *\n    * @param block - the block to create in the ledger.\n    * @param meta - the metadata associated with the block.\n    *   blockHash - the hash value of the block.\n-   * @param options - a set of options used when creating the block.\n    * @param callback(err) - the callback to call when finished.\n    *   err - An Error if an error occurred, null otherwise.\n    *   result - the result of the operation.\n    *     block - the block that was committed to storage.\n    *     meta - the metadata that was committed to storage.\n    */\n-  add(block, meta, options, callback) {\n-    if(typeof options === 'function') {\n-      callback = options;\n-      options = {};\n-    }\n+  add({block, meta}, callback) {\n     if(!meta.blockHash) {\n       return callback(new BedrockError(\n         'A block hash for the given block was not specified.',\n-        'BadRequest', {meta}));\n+        'DataError', {meta}));\n     }\n-\n+    const {blockHeight, event} = block;\n+    // event does not get saved as part of the block\n+    delete block.event;\n     async.auto({\n       insert: callback => {\n         // insert the block\n         const now = Date.now();\n         const record = {\n-          id: database.hash(block.id),\n+          block,\n           blockHash: database.hash(meta.blockHash),\n-          block: block,\n+          id: database.hash(block.id),\n           meta: _.defaults(meta, {\n             created: now,\n             updated: now\n-          })\n+          }),\n         };\n \n-        logger.debug('adding block: ' + meta.blockHash);\n+        logger.debug(`adding block: ${meta.blockHash}`);\n \n         // FIXME: We should deconstruct the events from the blocks\n \n-        this.collection.insert(\n-          record, database.writeOptions, (err, result) => {\n-            if(err) {\n-              return callback(err);\n-            }\n-            callback(null, result.ops[0]);\n-          });\n-      }\n+        this.collection.insert(record, database.writeOptions, (err, result) => {\n+          if(err) {\n+            return callback(err);\n+          }\n+          callback(null, result.ops[0]);\n+        });\n+      },\n+      update: ['insert', (results, callback) => {\n+\n+        const query = {eventHash: {$in: event.map(h => database.hash(h))}};","path":"lib/ledgerBlockStorage.js","position":null,"original_position":81,"commit_id":"7f4ae606685b16ce8d554c61e4b5c6e1c8aabc56","original_commit_id":"817423c252659dd8148bf530b72679528243ef34","user":{"login":"dlongley","id":168137,"avatar_url":"https://avatars0.githubusercontent.com/u/168137?v=4","gravatar_id":"","url":"https://api.github.com/users/dlongley","html_url":"https://github.com/dlongley","followers_url":"https://api.github.com/users/dlongley/followers","following_url":"https://api.github.com/users/dlongley/following{/other_user}","gists_url":"https://api.github.com/users/dlongley/gists{/gist_id}","starred_url":"https://api.github.com/users/dlongley/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dlongley/subscriptions","organizations_url":"https://api.github.com/users/dlongley/orgs","repos_url":"https://api.github.com/users/dlongley/repos","events_url":"https://api.github.com/users/dlongley/events{/privacy}","received_events_url":"https://api.github.com/users/dlongley/received_events","type":"User","site_admin":false},"body":"Oh, yeah, we don't need a FIXME then.","created_at":"2018-02-20T15:59:44Z","updated_at":"2018-02-20T15:59:44Z","html_url":"https://github.com/digitalbazaar/bedrock-ledger-storage-mongodb/pull/12#discussion_r169366785","pull_request_url":"https://api.github.com/repos/digitalbazaar/bedrock-ledger-storage-mongodb/pulls/12","author_association":"OWNER","_links":{"self":{"href":"https://api.github.com/repos/digitalbazaar/bedrock-ledger-storage-mongodb/pulls/comments/169366785"},"html":{"href":"https://github.com/digitalbazaar/bedrock-ledger-storage-mongodb/pull/12#discussion_r169366785"},"pull_request":{"href":"https://api.github.com/repos/digitalbazaar/bedrock-ledger-storage-mongodb/pulls/12"}},"in_reply_to_id":169211606},"pull_request":{"url":"https://api.github.com/repos/digitalbazaar/bedrock-ledger-storage-mongodb/pulls/12","id":170093395,"html_url":"https://github.com/digitalbazaar/bedrock-ledger-storage-mongodb/pull/12","diff_url":"https://github.com/digitalbazaar/bedrock-ledger-storage-mongodb/pull/12.diff","patch_url":"https://github.com/digitalbazaar/bedrock-ledger-storage-mongodb/pull/12.patch","issue_url":"https://api.github.com/repos/digitalbazaar/bedrock-ledger-storage-mongodb/issues/12","number":12,"state":"open","locked":false,"title":"Operations WIP","user":{"login":"mattcollier","id":902041,"avatar_url":"https://avatars2.githubusercontent.com/u/902041?v=4","gravatar_id":"","url":"https://api.github.com/users/mattcollier","html_url":"https://github.com/mattcollier","followers_url":"https://api.github.com/users/mattcollier/followers","following_url":"https://api.github.com/users/mattcollier/following{/other_user}","gists_url":"https://api.github.com/users/mattcollier/gists{/gist_id}","starred_url":"https://api.github.com/users/mattcollier/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mattcollier/subscriptions","organizations_url":"https://api.github.com/users/mattcollier/orgs","repos_url":"https://api.github.com/users/mattcollier/repos","events_url":"https://api.github.com/users/mattcollier/events{/privacy}","received_events_url":"https://api.github.com/users/mattcollier/received_events","type":"User","site_admin":false},"body":"- [x] Blocks no longer contain references to events\r\n- [x] Events contain references to blockHeight\r\n- [ ] Store operations separately from events using the same pattern as blocks/events \r\n\r\nDoes order of events in the block need to be preserved?","created_at":"2018-02-20T03:17:29Z","updated_at":"2018-02-20T15:59:44Z","closed_at":null,"merged_at":null,"merge_commit_sha":"a5977c4c52ea2211ba870fb844cd7b69f743b048","assignee":{"login":"mattcollier","id":902041,"avatar_url":"https://avatars2.githubusercontent.com/u/902041?v=4","gravatar_id":"","url":"https://api.github.com/users/mattcollier","html_url":"https://github.com/mattcollier","followers_url":"https://api.github.com/users/mattcollier/followers","following_url":"https://api.github.com/users/mattcollier/following{/other_user}","gists_url":"https://api.github.com/users/mattcollier/gists{/gist_id}","starred_url":"https://api.github.com/users/mattcollier/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mattcollier/subscriptions","organizations_url":"https://api.github.com/users/mattcollier/orgs","repos_url":"https://api.github.com/users/mattcollier/repos","events_url":"https://api.github.com/users/mattcollier/events{/privacy}","received_events_url":"https://api.github.com/users/mattcollier/received_events","type":"User","site_admin":false},"assignees":[{"login":"mattcollier","id":902041,"avatar_url":"https://avatars2.githubusercontent.com/u/902041?v=4","gravatar_id":"","url":"https://api.github.com/users/mattcollier","html_url":"https://github.com/mattcollier","followers_url":"https://api.github.com/users/mattcollier/followers","following_url":"https://api.github.com/users/mattcollier/following{/other_user}","gists_url":"https://api.github.com/users/mattcollier/gists{/gist_id}","starred_url":"https://api.github.com/users/mattcollier/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mattcollier/subscriptions","organizations_url":"https://api.github.com/users/mattcollier/orgs","repos_url":"https://api.github.com/users/mattcollier/repos","events_url":"https://api.github.com/users/mattcollier/events{/privacy}","received_events_url":"https://api.github.com/users/mattcollier/received_events","type":"User","site_admin":false}],"requested_reviewers":[{"login":"msporny","id":108611,"avatar_url":"https://avatars3.githubusercontent.com/u/108611?v=4","gravatar_id":"","url":"https://api.github.com/users/msporny","html_url":"https://github.com/msporny","followers_url":"https://api.github.com/users/msporny/followers","following_url":"https://api.github.com/users/msporny/following{/other_user}","gists_url":"https://api.github.com/users/msporny/gists{/gist_id}","starred_url":"https://api.github.com/users/msporny/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/msporny/subscriptions","organizations_url":"https://api.github.com/users/msporny/orgs","repos_url":"https://api.github.com/users/msporny/repos","events_url":"https://api.github.com/users/msporny/events{/privacy}","received_events_url":"https://api.github.com/users/msporny/received_events","type":"User","site_admin":false},{"login":"davidlehn","id":109587,"avatar_url":"https://avatars0.githubusercontent.com/u/109587?v=4","gravatar_id":"","url":"https://api.github.com/users/davidlehn","html_url":"https://github.com/davidlehn","followers_url":"https://api.github.com/users/davidlehn/followers","following_url":"https://api.github.com/users/davidlehn/following{/other_user}","gists_url":"https://api.github.com/users/davidlehn/gists{/gist_id}","starred_url":"https://api.github.com/users/davidlehn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/davidlehn/subscriptions","organizations_url":"https://api.github.com/users/davidlehn/orgs","repos_url":"https://api.github.com/users/davidlehn/repos","events_url":"https://api.github.com/users/davidlehn/events{/privacy}","received_events_url":"https://api.github.com/users/davidlehn/received_events","type":"User","site_admin":false}],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/digitalbazaar/bedrock-ledger-storage-mongodb/pulls/12/commits","review_comments_url":"https://api.github.com/repos/digitalbazaar/bedrock-ledger-storage-mongodb/pulls/12/comments","review_comment_url":"https://api.github.com/repos/digitalbazaar/bedrock-ledger-storage-mongodb/pulls/comments{/number}","comments_url":"https://api.github.com/repos/digitalbazaar/bedrock-ledger-storage-mongodb/issues/12/comments","statuses_url":"https://api.github.com/repos/digitalbazaar/bedrock-ledger-storage-mongodb/statuses/7f4ae606685b16ce8d554c61e4b5c6e1c8aabc56","head":{"label":"digitalbazaar:operations","ref":"operations","sha":"7f4ae606685b16ce8d554c61e4b5c6e1c8aabc56","user":{"login":"digitalbazaar","id":167436,"avatar_url":"https://avatars3.githubusercontent.com/u/167436?v=4","gravatar_id":"","url":"https://api.github.com/users/digitalbazaar","html_url":"https://github.com/digitalbazaar","followers_url":"https://api.github.com/users/digitalbazaar/followers","following_url":"https://api.github.com/users/digitalbazaar/following{/other_user}","gists_url":"https://api.github.com/users/digitalbazaar/gists{/gist_id}","starred_url":"https://api.github.com/users/digitalbazaar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/digitalbazaar/subscriptions","organizations_url":"https://api.github.com/users/digitalbazaar/orgs","repos_url":"https://api.github.com/users/digitalbazaar/repos","events_url":"https://api.github.com/users/digitalbazaar/events{/privacy}","received_events_url":"https://api.github.com/users/digitalbazaar/received_events","type":"Organization","site_admin":false},"repo":{"id":92447128,"name":"bedrock-ledger-storage-mongodb","full_name":"digitalbazaar/bedrock-ledger-storage-mongodb","owner":{"login":"digitalbazaar","id":167436,"avatar_url":"https://avatars3.githubusercontent.com/u/167436?v=4","gravatar_id":"","url":"https://api.github.com/users/digitalbazaar","html_url":"https://github.com/digitalbazaar","followers_url":"https://api.github.com/users/digitalbazaar/followers","following_url":"https://api.github.com/users/digitalbazaar/following{/other_user}","gists_url":"https://api.github.com/users/digitalbazaar/gists{/gist_id}","starred_url":"https://api.github.com/users/digitalbazaar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/digitalbazaar/subscriptions","organizations_url":"https://api.github.com/users/digitalbazaar/orgs","repos_url":"https://api.github.com/users/digitalbazaar/repos","events_url":"https://api.github.com/users/digitalbazaar/events{/privacy}","received_events_url":"https://api.github.com/users/digitalbazaar/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/digitalbazaar/bedrock-ledger-storage-mongodb","description":"A storage subsystem for Bedrock ledger.","fork":false,"url":"https://api.github.com/repos/digitalbazaar/bedrock-ledger-storage-mongodb","forks_url":"https://api.github.com/repos/digitalbazaar/bedrock-ledger-storage-mongodb/forks","keys_url":"https://api.github.com/repos/digitalbazaar/bedrock-ledger-storage-mongodb/keys{/key_id}","collaborators_url":"https://api.github.com/repos/digitalbazaar/bedrock-ledger-storage-mongodb/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/digitalbazaar/bedrock-ledger-storage-mongodb/teams","hooks_url":"https://api.github.com/repos/digitalbazaar/bedrock-ledger-storage-mongodb/hooks","issue_events_url":"https://api.github.com/repos/digitalbazaar/bedrock-ledger-storage-mongodb/issues/events{/number}","events_url":"https://api.github.com/repos/digitalbazaar/bedrock-ledger-storage-mongodb/events","assignees_url":"https://api.github.com/repos/digitalbazaar/bedrock-ledger-storage-mongodb/assignees{/user}","branches_url":"https://api.github.com/repos/digitalbazaar/bedrock-ledger-storage-mongodb/branches{/branch}","tags_url":"https://api.github.com/repos/digitalbazaar/bedrock-ledger-storage-mongodb/tags","blobs_url":"https://api.github.com/repos/digitalbazaar/bedrock-ledger-storage-mongodb/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/digitalbazaar/bedrock-ledger-storage-mongodb/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/digitalbazaar/bedrock-ledger-storage-mongodb/git/refs{/sha}","trees_url":"https://api.github.com/repos/digitalbazaar/bedrock-ledger-storage-mongodb/git/trees{/sha}","statuses_url":"https://api.github.com/repos/digitalbazaar/bedrock-ledger-storage-mongodb/statuses/{sha}","languages_url":"https://api.github.com/repos/digitalbazaar/bedrock-ledger-storage-mongodb/languages","stargazers_url":"https://api.github.com/repos/digitalbazaar/bedrock-ledger-storage-mongodb/stargazers","contributors_url":"https://api.github.com/repos/digitalbazaar/bedrock-ledger-storage-mongodb/contributors","subscribers_url":"https://api.github.com/repos/digitalbazaar/bedrock-ledger-storage-mongodb/subscribers","subscription_url":"https://api.github.com/repos/digitalbazaar/bedrock-ledger-storage-mongodb/subscription","commits_url":"https://api.github.com/repos/digitalbazaar/bedrock-ledger-storage-mongodb/commits{/sha}","git_commits_url":"https://api.github.com/repos/digitalbazaar/bedrock-ledger-storage-mongodb/git/commits{/sha}","comments_url":"https://api.github.com/repos/digitalbazaar/bedrock-ledger-storage-mongodb/comments{/number}","issue_comment_url":"https://api.github.com/repos/digitalbazaar/bedrock-ledger-storage-mongodb/issues/comments{/number}","contents_url":"https://api.github.com/repos/digitalbazaar/bedrock-ledger-storage-mongodb/contents/{+path}","compare_url":"https://api.github.com/repos/digitalbazaar/bedrock-ledger-storage-mongodb/compare/{base}...{head}","merges_url":"https://api.github.com/repos/digitalbazaar/bedrock-ledger-storage-mongodb/merges","archive_url":"https://api.github.com/repos/digitalbazaar/bedrock-ledger-storage-mongodb/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/digitalbazaar/bedrock-ledger-storage-mongodb/downloads","issues_url":"https://api.github.com/repos/digitalbazaar/bedrock-ledger-storage-mongodb/issues{/number}","pulls_url":"https://api.github.com/repos/digitalbazaar/bedrock-ledger-storage-mongodb/pulls{/number}","milestones_url":"https://api.github.com/repos/digitalbazaar/bedrock-ledger-storage-mongodb/milestones{/number}","notifications_url":"https://api.github.com/repos/digitalbazaar/bedrock-ledger-storage-mongodb/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/digitalbazaar/bedrock-ledger-storage-mongodb/labels{/name}","releases_url":"https://api.github.com/repos/digitalbazaar/bedrock-ledger-storage-mongodb/releases{/id}","deployments_url":"https://api.github.com/repos/digitalbazaar/bedrock-ledger-storage-mongodb/deployments","created_at":"2017-05-25T21:47:02Z","updated_at":"2018-02-14T20:47:31Z","pushed_at":"2018-02-20T15:13:32Z","git_url":"git://github.com/digitalbazaar/bedrock-ledger-storage-mongodb.git","ssh_url":"git@github.com:digitalbazaar/bedrock-ledger-storage-mongodb.git","clone_url":"https://github.com/digitalbazaar/bedrock-ledger-storage-mongodb.git","svn_url":"https://github.com/digitalbazaar/bedrock-ledger-storage-mongodb","homepage":null,"size":240,"stargazers_count":1,"watchers_count":1,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":7,"license":{"key":"other","name":"Other","spdx_id":null,"url":null},"forks":0,"open_issues":7,"watchers":1,"default_branch":"master"}},"base":{"label":"digitalbazaar:master","ref":"master","sha":"f064368901e139487d3fdcc14e6ec5d4992c45ff","user":{"login":"digitalbazaar","id":167436,"avatar_url":"https://avatars3.githubusercontent.com/u/167436?v=4","gravatar_id":"","url":"https://api.github.com/users/digitalbazaar","html_url":"https://github.com/digitalbazaar","followers_url":"https://api.github.com/users/digitalbazaar/followers","following_url":"https://api.github.com/users/digitalbazaar/following{/other_user}","gists_url":"https://api.github.com/users/digitalbazaar/gists{/gist_id}","starred_url":"https://api.github.com/users/digitalbazaar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/digitalbazaar/subscriptions","organizations_url":"https://api.github.com/users/digitalbazaar/orgs","repos_url":"https://api.github.com/users/digitalbazaar/repos","events_url":"https://api.github.com/users/digitalbazaar/events{/privacy}","received_events_url":"https://api.github.com/users/digitalbazaar/received_events","type":"Organization","site_admin":false},"repo":{"id":92447128,"name":"bedrock-ledger-storage-mongodb","full_name":"digitalbazaar/bedrock-ledger-storage-mongodb","owner":{"login":"digitalbazaar","id":167436,"avatar_url":"https://avatars3.githubusercontent.com/u/167436?v=4","gravatar_id":"","url":"https://api.github.com/users/digitalbazaar","html_url":"https://github.com/digitalbazaar","followers_url":"https://api.github.com/users/digitalbazaar/followers","following_url":"https://api.github.com/users/digitalbazaar/following{/other_user}","gists_url":"https://api.github.com/users/digitalbazaar/gists{/gist_id}","starred_url":"https://api.github.com/users/digitalbazaar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/digitalbazaar/subscriptions","organizations_url":"https://api.github.com/users/digitalbazaar/orgs","repos_url":"https://api.github.com/users/digitalbazaar/repos","events_url":"https://api.github.com/users/digitalbazaar/events{/privacy}","received_events_url":"https://api.github.com/users/digitalbazaar/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/digitalbazaar/bedrock-ledger-storage-mongodb","description":"A storage subsystem for Bedrock ledger.","fork":false,"url":"https://api.github.com/repos/digitalbazaar/bedrock-ledger-storage-mongodb","forks_url":"https://api.github.com/repos/digitalbazaar/bedrock-ledger-storage-mongodb/forks","keys_url":"https://api.github.com/repos/digitalbazaar/bedrock-ledger-storage-mongodb/keys{/key_id}","collaborators_url":"https://api.github.com/repos/digitalbazaar/bedrock-ledger-storage-mongodb/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/digitalbazaar/bedrock-ledger-storage-mongodb/teams","hooks_url":"https://api.github.com/repos/digitalbazaar/bedrock-ledger-storage-mongodb/hooks","issue_events_url":"https://api.github.com/repos/digitalbazaar/bedrock-ledger-storage-mongodb/issues/events{/number}","events_url":"https://api.github.com/repos/digitalbazaar/bedrock-ledger-storage-mongodb/events","assignees_url":"https://api.github.com/repos/digitalbazaar/bedrock-ledger-storage-mongodb/assignees{/user}","branches_url":"https://api.github.com/repos/digitalbazaar/bedrock-ledger-storage-mongodb/branches{/branch}","tags_url":"https://api.github.com/repos/digitalbazaar/bedrock-ledger-storage-mongodb/tags","blobs_url":"https://api.github.com/repos/digitalbazaar/bedrock-ledger-storage-mongodb/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/digitalbazaar/bedrock-ledger-storage-mongodb/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/digitalbazaar/bedrock-ledger-storage-mongodb/git/refs{/sha}","trees_url":"https://api.github.com/repos/digitalbazaar/bedrock-ledger-storage-mongodb/git/trees{/sha}","statuses_url":"https://api.github.com/repos/digitalbazaar/bedrock-ledger-storage-mongodb/statuses/{sha}","languages_url":"https://api.github.com/repos/digitalbazaar/bedrock-ledger-storage-mongodb/languages","stargazers_url":"https://api.github.com/repos/digitalbazaar/bedrock-ledger-storage-mongodb/stargazers","contributors_url":"https://api.github.com/repos/digitalbazaar/bedrock-ledger-storage-mongodb/contributors","subscribers_url":"https://api.github.com/repos/digitalbazaar/bedrock-ledger-storage-mongodb/subscribers","subscription_url":"https://api.github.com/repos/digitalbazaar/bedrock-ledger-storage-mongodb/subscription","commits_url":"https://api.github.com/repos/digitalbazaar/bedrock-ledger-storage-mongodb/commits{/sha}","git_commits_url":"https://api.github.com/repos/digitalbazaar/bedrock-ledger-storage-mongodb/git/commits{/sha}","comments_url":"https://api.github.com/repos/digitalbazaar/bedrock-ledger-storage-mongodb/comments{/number}","issue_comment_url":"https://api.github.com/repos/digitalbazaar/bedrock-ledger-storage-mongodb/issues/comments{/number}","contents_url":"https://api.github.com/repos/digitalbazaar/bedrock-ledger-storage-mongodb/contents/{+path}","compare_url":"https://api.github.com/repos/digitalbazaar/bedrock-ledger-storage-mongodb/compare/{base}...{head}","merges_url":"https://api.github.com/repos/digitalbazaar/bedrock-ledger-storage-mongodb/merges","archive_url":"https://api.github.com/repos/digitalbazaar/bedrock-ledger-storage-mongodb/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/digitalbazaar/bedrock-ledger-storage-mongodb/downloads","issues_url":"https://api.github.com/repos/digitalbazaar/bedrock-ledger-storage-mongodb/issues{/number}","pulls_url":"https://api.github.com/repos/digitalbazaar/bedrock-ledger-storage-mongodb/pulls{/number}","milestones_url":"https://api.github.com/repos/digitalbazaar/bedrock-ledger-storage-mongodb/milestones{/number}","notifications_url":"https://api.github.com/repos/digitalbazaar/bedrock-ledger-storage-mongodb/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/digitalbazaar/bedrock-ledger-storage-mongodb/labels{/name}","releases_url":"https://api.github.com/repos/digitalbazaar/bedrock-ledger-storage-mongodb/releases{/id}","deployments_url":"https://api.github.com/repos/digitalbazaar/bedrock-ledger-storage-mongodb/deployments","created_at":"2017-05-25T21:47:02Z","updated_at":"2018-02-14T20:47:31Z","pushed_at":"2018-02-20T15:13:32Z","git_url":"git://github.com/digitalbazaar/bedrock-ledger-storage-mongodb.git","ssh_url":"git@github.com:digitalbazaar/bedrock-ledger-storage-mongodb.git","clone_url":"https://github.com/digitalbazaar/bedrock-ledger-storage-mongodb.git","svn_url":"https://github.com/digitalbazaar/bedrock-ledger-storage-mongodb","homepage":null,"size":240,"stargazers_count":1,"watchers_count":1,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":7,"license":{"key":"other","name":"Other","spdx_id":null,"url":null},"forks":0,"open_issues":7,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/digitalbazaar/bedrock-ledger-storage-mongodb/pulls/12"},"html":{"href":"https://github.com/digitalbazaar/bedrock-ledger-storage-mongodb/pull/12"},"issue":{"href":"https://api.github.com/repos/digitalbazaar/bedrock-ledger-storage-mongodb/issues/12"},"comments":{"href":"https://api.github.com/repos/digitalbazaar/bedrock-ledger-storage-mongodb/issues/12/comments"},"review_comments":{"href":"https://api.github.com/repos/digitalbazaar/bedrock-ledger-storage-mongodb/pulls/12/comments"},"review_comment":{"href":"https://api.github.com/repos/digitalbazaar/bedrock-ledger-storage-mongodb/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/digitalbazaar/bedrock-ledger-storage-mongodb/pulls/12/commits"},"statuses":{"href":"https://api.github.com/repos/digitalbazaar/bedrock-ledger-storage-mongodb/statuses/7f4ae606685b16ce8d554c61e4b5c6e1c8aabc56"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"dlongley"}}