{"action":"created","comment":{"url":"https://api.github.com/repos/YashdalfTheGray/flintandsteel/pulls/comments/43383776","id":43383776,"diff_hunk":"@@ -1,48 +1,19 @@\n /* global exports */\n \n-var Idea = require('./idea');\n-var chalk = require('chalk');\n-var datastore = require('docstore');\n-var _ = require('lodash');\n+var Idea = require('./idea'),\n+    chalk = require('chalk'),\n+    mongodb = require('mongodb'),\n+    _ = require('lodash');\n \n-var ideasDb, userDb;\n+var db = new mongodb.Db('flintandsteel', new mongodb.Server('localhost', 27017));\n \n var IdeasSingleton;\n \n-// Datastore filter to find everything\n-var filter = function dbFilter() {\n-    \"use strict\";\n-\n-    return true;\n-};\n-\n-datastore.open('./server/datastore/ideas', function(err, store) {\n-    \"use strict\";\n-\n-    if (err) {\n-        console.log(err);\n-    }\n-    else {\n-        ideasDb = store;\n-    }\n-});\n-\n-datastore.open('./server/datastore/users', function(err, store) {\n-    \"use strict\";\n-\n-    if (err) {\n-        console.log(err);\n-    }\n-    else {\n-        userDb = store;\n-    }\n-});\n-\n exports.create = function(id, title, description, author, likes, comments, backs, cb) {\n     \"use strict\";\n \n     var idea = Idea.create(id, title, description, author, likes, comments, backs);","path":"server/ideas.js","position":49,"original_position":49,"commit_id":"b8b343d9eae7a46e33d19c30fb4db207469c8f91","original_commit_id":"b8b343d9eae7a46e33d19c30fb4db207469c8f91","user":{"login":"Mctalian","id":5081281,"avatar_url":"https://avatars.githubusercontent.com/u/5081281?v=3","gravatar_id":"","url":"https://api.github.com/users/Mctalian","html_url":"https://github.com/Mctalian","followers_url":"https://api.github.com/users/Mctalian/followers","following_url":"https://api.github.com/users/Mctalian/following{/other_user}","gists_url":"https://api.github.com/users/Mctalian/gists{/gist_id}","starred_url":"https://api.github.com/users/Mctalian/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Mctalian/subscriptions","organizations_url":"https://api.github.com/users/Mctalian/orgs","repos_url":"https://api.github.com/users/Mctalian/repos","events_url":"https://api.github.com/users/Mctalian/events{/privacy}","received_events_url":"https://api.github.com/users/Mctalian/received_events","type":"User","site_admin":false},"body":"I'm going to make an issue to add team info to the Idea schema. Just putting a comment here to remind myself.\r\n\r\nI know @davethenipper wants the author added to the team by default, so I can do that in there.","created_at":"2015-10-29T13:30:01Z","updated_at":"2015-10-29T13:30:01Z","html_url":"https://github.com/YashdalfTheGray/flintandsteel/pull/110#discussion_r43383776","pull_request_url":"https://api.github.com/repos/YashdalfTheGray/flintandsteel/pulls/110","_links":{"self":{"href":"https://api.github.com/repos/YashdalfTheGray/flintandsteel/pulls/comments/43383776"},"html":{"href":"https://github.com/YashdalfTheGray/flintandsteel/pull/110#discussion_r43383776"},"pull_request":{"href":"https://api.github.com/repos/YashdalfTheGray/flintandsteel/pulls/110"}}},"pull_request":{"url":"https://api.github.com/repos/YashdalfTheGray/flintandsteel/pulls/110","id":49078731,"html_url":"https://github.com/YashdalfTheGray/flintandsteel/pull/110","diff_url":"https://github.com/YashdalfTheGray/flintandsteel/pull/110.diff","patch_url":"https://github.com/YashdalfTheGray/flintandsteel/pull/110.patch","issue_url":"https://api.github.com/repos/YashdalfTheGray/flintandsteel/issues/110","number":110,"state":"open","locked":false,"title":"Replacing docstore with mongo","user":{"login":"YashdalfTheGray","id":3102848,"avatar_url":"https://avatars.githubusercontent.com/u/3102848?v=3","gravatar_id":"","url":"https://api.github.com/users/YashdalfTheGray","html_url":"https://github.com/YashdalfTheGray","followers_url":"https://api.github.com/users/YashdalfTheGray/followers","following_url":"https://api.github.com/users/YashdalfTheGray/following{/other_user}","gists_url":"https://api.github.com/users/YashdalfTheGray/gists{/gist_id}","starred_url":"https://api.github.com/users/YashdalfTheGray/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/YashdalfTheGray/subscriptions","organizations_url":"https://api.github.com/users/YashdalfTheGray/orgs","repos_url":"https://api.github.com/users/YashdalfTheGray/repos","events_url":"https://api.github.com/users/YashdalfTheGray/events{/privacy}","received_events_url":"https://api.github.com/users/YashdalfTheGray/received_events","type":"User","site_admin":false},"body":"This includes changes to the server backend to use mongo. \r\n\r\nReviewers - @Mctalian @bcbrennecke @davethenipper ","created_at":"2015-10-28T22:57:45Z","updated_at":"2015-10-29T13:30:01Z","closed_at":null,"merged_at":null,"merge_commit_sha":"ac4785e34931d11d4b627396c0a51d1e8732f910","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/YashdalfTheGray/flintandsteel/pulls/110/commits","review_comments_url":"https://api.github.com/repos/YashdalfTheGray/flintandsteel/pulls/110/comments","review_comment_url":"https://api.github.com/repos/YashdalfTheGray/flintandsteel/pulls/comments{/number}","comments_url":"https://api.github.com/repos/YashdalfTheGray/flintandsteel/issues/110/comments","statuses_url":"https://api.github.com/repos/YashdalfTheGray/flintandsteel/statuses/b8b343d9eae7a46e33d19c30fb4db207469c8f91","head":{"label":"YashdalfTheGray:mongo-backend","ref":"mongo-backend","sha":"b8b343d9eae7a46e33d19c30fb4db207469c8f91","user":{"login":"YashdalfTheGray","id":3102848,"avatar_url":"https://avatars.githubusercontent.com/u/3102848?v=3","gravatar_id":"","url":"https://api.github.com/users/YashdalfTheGray","html_url":"https://github.com/YashdalfTheGray","followers_url":"https://api.github.com/users/YashdalfTheGray/followers","following_url":"https://api.github.com/users/YashdalfTheGray/following{/other_user}","gists_url":"https://api.github.com/users/YashdalfTheGray/gists{/gist_id}","starred_url":"https://api.github.com/users/YashdalfTheGray/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/YashdalfTheGray/subscriptions","organizations_url":"https://api.github.com/users/YashdalfTheGray/orgs","repos_url":"https://api.github.com/users/YashdalfTheGray/repos","events_url":"https://api.github.com/users/YashdalfTheGray/events{/privacy}","received_events_url":"https://api.github.com/users/YashdalfTheGray/received_events","type":"User","site_admin":false},"repo":{"id":34150685,"name":"flintandsteel","full_name":"YashdalfTheGray/flintandsteel","owner":{"login":"YashdalfTheGray","id":3102848,"avatar_url":"https://avatars.githubusercontent.com/u/3102848?v=3","gravatar_id":"","url":"https://api.github.com/users/YashdalfTheGray","html_url":"https://github.com/YashdalfTheGray","followers_url":"https://api.github.com/users/YashdalfTheGray/followers","following_url":"https://api.github.com/users/YashdalfTheGray/following{/other_user}","gists_url":"https://api.github.com/users/YashdalfTheGray/gists{/gist_id}","starred_url":"https://api.github.com/users/YashdalfTheGray/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/YashdalfTheGray/subscriptions","organizations_url":"https://api.github.com/users/YashdalfTheGray/orgs","repos_url":"https://api.github.com/users/YashdalfTheGray/repos","events_url":"https://api.github.com/users/YashdalfTheGray/events{/privacy}","received_events_url":"https://api.github.com/users/YashdalfTheGray/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/YashdalfTheGray/flintandsteel","description":"Cleveland Innovation Challenge 2015 Team #SynergisticSiloBusters","fork":false,"url":"https://api.github.com/repos/YashdalfTheGray/flintandsteel","forks_url":"https://api.github.com/repos/YashdalfTheGray/flintandsteel/forks","keys_url":"https://api.github.com/repos/YashdalfTheGray/flintandsteel/keys{/key_id}","collaborators_url":"https://api.github.com/repos/YashdalfTheGray/flintandsteel/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/YashdalfTheGray/flintandsteel/teams","hooks_url":"https://api.github.com/repos/YashdalfTheGray/flintandsteel/hooks","issue_events_url":"https://api.github.com/repos/YashdalfTheGray/flintandsteel/issues/events{/number}","events_url":"https://api.github.com/repos/YashdalfTheGray/flintandsteel/events","assignees_url":"https://api.github.com/repos/YashdalfTheGray/flintandsteel/assignees{/user}","branches_url":"https://api.github.com/repos/YashdalfTheGray/flintandsteel/branches{/branch}","tags_url":"https://api.github.com/repos/YashdalfTheGray/flintandsteel/tags","blobs_url":"https://api.github.com/repos/YashdalfTheGray/flintandsteel/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/YashdalfTheGray/flintandsteel/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/YashdalfTheGray/flintandsteel/git/refs{/sha}","trees_url":"https://api.github.com/repos/YashdalfTheGray/flintandsteel/git/trees{/sha}","statuses_url":"https://api.github.com/repos/YashdalfTheGray/flintandsteel/statuses/{sha}","languages_url":"https://api.github.com/repos/YashdalfTheGray/flintandsteel/languages","stargazers_url":"https://api.github.com/repos/YashdalfTheGray/flintandsteel/stargazers","contributors_url":"https://api.github.com/repos/YashdalfTheGray/flintandsteel/contributors","subscribers_url":"https://api.github.com/repos/YashdalfTheGray/flintandsteel/subscribers","subscription_url":"https://api.github.com/repos/YashdalfTheGray/flintandsteel/subscription","commits_url":"https://api.github.com/repos/YashdalfTheGray/flintandsteel/commits{/sha}","git_commits_url":"https://api.github.com/repos/YashdalfTheGray/flintandsteel/git/commits{/sha}","comments_url":"https://api.github.com/repos/YashdalfTheGray/flintandsteel/comments{/number}","issue_comment_url":"https://api.github.com/repos/YashdalfTheGray/flintandsteel/issues/comments{/number}","contents_url":"https://api.github.com/repos/YashdalfTheGray/flintandsteel/contents/{+path}","compare_url":"https://api.github.com/repos/YashdalfTheGray/flintandsteel/compare/{base}...{head}","merges_url":"https://api.github.com/repos/YashdalfTheGray/flintandsteel/merges","archive_url":"https://api.github.com/repos/YashdalfTheGray/flintandsteel/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/YashdalfTheGray/flintandsteel/downloads","issues_url":"https://api.github.com/repos/YashdalfTheGray/flintandsteel/issues{/number}","pulls_url":"https://api.github.com/repos/YashdalfTheGray/flintandsteel/pulls{/number}","milestones_url":"https://api.github.com/repos/YashdalfTheGray/flintandsteel/milestones{/number}","notifications_url":"https://api.github.com/repos/YashdalfTheGray/flintandsteel/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/YashdalfTheGray/flintandsteel/labels{/name}","releases_url":"https://api.github.com/repos/YashdalfTheGray/flintandsteel/releases{/id}","created_at":"2015-04-18T03:20:39Z","updated_at":"2015-10-26T16:33:29Z","pushed_at":"2015-10-28T22:57:45Z","git_url":"git://github.com/YashdalfTheGray/flintandsteel.git","ssh_url":"git@github.com:YashdalfTheGray/flintandsteel.git","clone_url":"https://github.com/YashdalfTheGray/flintandsteel.git","svn_url":"https://github.com/YashdalfTheGray/flintandsteel","homepage":"","size":1257,"stargazers_count":6,"watchers_count":6,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":7,"mirror_url":null,"open_issues_count":18,"forks":7,"open_issues":18,"watchers":6,"default_branch":"master"}},"base":{"label":"YashdalfTheGray:master","ref":"master","sha":"c02566f8beae6c1caa41aa007fad160eb13b7bca","user":{"login":"YashdalfTheGray","id":3102848,"avatar_url":"https://avatars.githubusercontent.com/u/3102848?v=3","gravatar_id":"","url":"https://api.github.com/users/YashdalfTheGray","html_url":"https://github.com/YashdalfTheGray","followers_url":"https://api.github.com/users/YashdalfTheGray/followers","following_url":"https://api.github.com/users/YashdalfTheGray/following{/other_user}","gists_url":"https://api.github.com/users/YashdalfTheGray/gists{/gist_id}","starred_url":"https://api.github.com/users/YashdalfTheGray/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/YashdalfTheGray/subscriptions","organizations_url":"https://api.github.com/users/YashdalfTheGray/orgs","repos_url":"https://api.github.com/users/YashdalfTheGray/repos","events_url":"https://api.github.com/users/YashdalfTheGray/events{/privacy}","received_events_url":"https://api.github.com/users/YashdalfTheGray/received_events","type":"User","site_admin":false},"repo":{"id":34150685,"name":"flintandsteel","full_name":"YashdalfTheGray/flintandsteel","owner":{"login":"YashdalfTheGray","id":3102848,"avatar_url":"https://avatars.githubusercontent.com/u/3102848?v=3","gravatar_id":"","url":"https://api.github.com/users/YashdalfTheGray","html_url":"https://github.com/YashdalfTheGray","followers_url":"https://api.github.com/users/YashdalfTheGray/followers","following_url":"https://api.github.com/users/YashdalfTheGray/following{/other_user}","gists_url":"https://api.github.com/users/YashdalfTheGray/gists{/gist_id}","starred_url":"https://api.github.com/users/YashdalfTheGray/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/YashdalfTheGray/subscriptions","organizations_url":"https://api.github.com/users/YashdalfTheGray/orgs","repos_url":"https://api.github.com/users/YashdalfTheGray/repos","events_url":"https://api.github.com/users/YashdalfTheGray/events{/privacy}","received_events_url":"https://api.github.com/users/YashdalfTheGray/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/YashdalfTheGray/flintandsteel","description":"Cleveland Innovation Challenge 2015 Team #SynergisticSiloBusters","fork":false,"url":"https://api.github.com/repos/YashdalfTheGray/flintandsteel","forks_url":"https://api.github.com/repos/YashdalfTheGray/flintandsteel/forks","keys_url":"https://api.github.com/repos/YashdalfTheGray/flintandsteel/keys{/key_id}","collaborators_url":"https://api.github.com/repos/YashdalfTheGray/flintandsteel/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/YashdalfTheGray/flintandsteel/teams","hooks_url":"https://api.github.com/repos/YashdalfTheGray/flintandsteel/hooks","issue_events_url":"https://api.github.com/repos/YashdalfTheGray/flintandsteel/issues/events{/number}","events_url":"https://api.github.com/repos/YashdalfTheGray/flintandsteel/events","assignees_url":"https://api.github.com/repos/YashdalfTheGray/flintandsteel/assignees{/user}","branches_url":"https://api.github.com/repos/YashdalfTheGray/flintandsteel/branches{/branch}","tags_url":"https://api.github.com/repos/YashdalfTheGray/flintandsteel/tags","blobs_url":"https://api.github.com/repos/YashdalfTheGray/flintandsteel/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/YashdalfTheGray/flintandsteel/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/YashdalfTheGray/flintandsteel/git/refs{/sha}","trees_url":"https://api.github.com/repos/YashdalfTheGray/flintandsteel/git/trees{/sha}","statuses_url":"https://api.github.com/repos/YashdalfTheGray/flintandsteel/statuses/{sha}","languages_url":"https://api.github.com/repos/YashdalfTheGray/flintandsteel/languages","stargazers_url":"https://api.github.com/repos/YashdalfTheGray/flintandsteel/stargazers","contributors_url":"https://api.github.com/repos/YashdalfTheGray/flintandsteel/contributors","subscribers_url":"https://api.github.com/repos/YashdalfTheGray/flintandsteel/subscribers","subscription_url":"https://api.github.com/repos/YashdalfTheGray/flintandsteel/subscription","commits_url":"https://api.github.com/repos/YashdalfTheGray/flintandsteel/commits{/sha}","git_commits_url":"https://api.github.com/repos/YashdalfTheGray/flintandsteel/git/commits{/sha}","comments_url":"https://api.github.com/repos/YashdalfTheGray/flintandsteel/comments{/number}","issue_comment_url":"https://api.github.com/repos/YashdalfTheGray/flintandsteel/issues/comments{/number}","contents_url":"https://api.github.com/repos/YashdalfTheGray/flintandsteel/contents/{+path}","compare_url":"https://api.github.com/repos/YashdalfTheGray/flintandsteel/compare/{base}...{head}","merges_url":"https://api.github.com/repos/YashdalfTheGray/flintandsteel/merges","archive_url":"https://api.github.com/repos/YashdalfTheGray/flintandsteel/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/YashdalfTheGray/flintandsteel/downloads","issues_url":"https://api.github.com/repos/YashdalfTheGray/flintandsteel/issues{/number}","pulls_url":"https://api.github.com/repos/YashdalfTheGray/flintandsteel/pulls{/number}","milestones_url":"https://api.github.com/repos/YashdalfTheGray/flintandsteel/milestones{/number}","notifications_url":"https://api.github.com/repos/YashdalfTheGray/flintandsteel/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/YashdalfTheGray/flintandsteel/labels{/name}","releases_url":"https://api.github.com/repos/YashdalfTheGray/flintandsteel/releases{/id}","created_at":"2015-04-18T03:20:39Z","updated_at":"2015-10-26T16:33:29Z","pushed_at":"2015-10-28T22:57:45Z","git_url":"git://github.com/YashdalfTheGray/flintandsteel.git","ssh_url":"git@github.com:YashdalfTheGray/flintandsteel.git","clone_url":"https://github.com/YashdalfTheGray/flintandsteel.git","svn_url":"https://github.com/YashdalfTheGray/flintandsteel","homepage":"","size":1257,"stargazers_count":6,"watchers_count":6,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":7,"mirror_url":null,"open_issues_count":18,"forks":7,"open_issues":18,"watchers":6,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/YashdalfTheGray/flintandsteel/pulls/110"},"html":{"href":"https://github.com/YashdalfTheGray/flintandsteel/pull/110"},"issue":{"href":"https://api.github.com/repos/YashdalfTheGray/flintandsteel/issues/110"},"comments":{"href":"https://api.github.com/repos/YashdalfTheGray/flintandsteel/issues/110/comments"},"review_comments":{"href":"https://api.github.com/repos/YashdalfTheGray/flintandsteel/pulls/110/comments"},"review_comment":{"href":"https://api.github.com/repos/YashdalfTheGray/flintandsteel/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/YashdalfTheGray/flintandsteel/pulls/110/commits"},"statuses":{"href":"https://api.github.com/repos/YashdalfTheGray/flintandsteel/statuses/b8b343d9eae7a46e33d19c30fb4db207469c8f91"}}}}