{"action":"created","comment":{"url":"https://api.github.com/repos/sandstorm-io/sandstorm/pulls/comments/39320698","id":39320698,"diff_hunk":"@@ -0,0 +1,137 @@\n+// Sandstorm - Personal Cloud Sandbox\n+// Copyright (c) 2015 Sandstorm Development Group, Inc. and contributors\n+// All rights reserved.\n+//\n+// Licensed under the Apache License, Version 2.0 (the \"License\");\n+// you may not use this file except in compliance with the License.\n+// You may obtain a copy of the License at\n+//\n+//   http://www.apache.org/licenses/LICENSE-2.0\n+//\n+// Unless required by applicable law or agreed to in writing, software\n+// distributed under the License is distributed on an \"AS IS\" BASIS,\n+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n+// See the License for the specific language governing permissions and\n+// limitations under the License.\n+\n+var globalDb = new SandstormDb();\n+\n+globalDb.collections.grains.remove({});","path":"shell/packages/sandstorm-permissions/permissions-tests.js","position":19,"original_position":19,"commit_id":"afc4bbe649c2572f51ccd3d507d9afba6f5920d2","original_commit_id":"afc4bbe649c2572f51ccd3d507d9afba6f5920d2","user":{"login":"dwrensha","id":495768,"avatar_url":"https://avatars.githubusercontent.com/u/495768?v=3","gravatar_id":"","url":"https://api.github.com/users/dwrensha","html_url":"https://github.com/dwrensha","followers_url":"https://api.github.com/users/dwrensha/followers","following_url":"https://api.github.com/users/dwrensha/following{/other_user}","gists_url":"https://api.github.com/users/dwrensha/gists{/gist_id}","starred_url":"https://api.github.com/users/dwrensha/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dwrensha/subscriptions","organizations_url":"https://api.github.com/users/dwrensha/orgs","repos_url":"https://api.github.com/users/dwrensha/repos","events_url":"https://api.github.com/users/dwrensha/events{/privacy}","received_events_url":"https://api.github.com/users/dwrensha/received_events","type":"User","site_admin":false},"body":"What does a \"mock DB\" mean? Note that `meteor test-packages` uses a fresh isolated Mongo instance.","created_at":"2015-09-11T21:39:22Z","updated_at":"2015-09-11T21:39:22Z","html_url":"https://github.com/sandstorm-io/sandstorm/pull/874#discussion_r39320698","pull_request_url":"https://api.github.com/repos/sandstorm-io/sandstorm/pulls/874","_links":{"self":{"href":"https://api.github.com/repos/sandstorm-io/sandstorm/pulls/comments/39320698"},"html":{"href":"https://github.com/sandstorm-io/sandstorm/pull/874#discussion_r39320698"},"pull_request":{"href":"https://api.github.com/repos/sandstorm-io/sandstorm/pulls/874"}}},"pull_request":{"url":"https://api.github.com/repos/sandstorm-io/sandstorm/pulls/874","id":44811585,"html_url":"https://github.com/sandstorm-io/sandstorm/pull/874","diff_url":"https://github.com/sandstorm-io/sandstorm/pull/874.diff","patch_url":"https://github.com/sandstorm-io/sandstorm/pull/874.patch","issue_url":"https://api.github.com/repos/sandstorm-io/sandstorm/issues/874","number":874,"state":"open","locked":false,"title":"Move permissions.js into its own package and add some tests for it.","user":{"login":"dwrensha","id":495768,"avatar_url":"https://avatars.githubusercontent.com/u/495768?v=3","gravatar_id":"","url":"https://api.github.com/users/dwrensha","html_url":"https://github.com/dwrensha","followers_url":"https://api.github.com/users/dwrensha/followers","following_url":"https://api.github.com/users/dwrensha/following{/other_user}","gists_url":"https://api.github.com/users/dwrensha/gists{/gist_id}","starred_url":"https://api.github.com/users/dwrensha/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dwrensha/subscriptions","organizations_url":"https://api.github.com/users/dwrensha/orgs","repos_url":"https://api.github.com/users/dwrensha/repos","events_url":"https://api.github.com/users/dwrensha/events{/privacy}","received_events_url":"https://api.github.com/users/dwrensha/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-09-11T18:05:09Z","updated_at":"2015-09-11T21:39:22Z","closed_at":null,"merged_at":null,"merge_commit_sha":"f05d3c0a282fe4107fc7c51dd7a3b9d6ad8c87a7","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/sandstorm-io/sandstorm/pulls/874/commits","review_comments_url":"https://api.github.com/repos/sandstorm-io/sandstorm/pulls/874/comments","review_comment_url":"https://api.github.com/repos/sandstorm-io/sandstorm/pulls/comments{/number}","comments_url":"https://api.github.com/repos/sandstorm-io/sandstorm/issues/874/comments","statuses_url":"https://api.github.com/repos/sandstorm-io/sandstorm/statuses/afc4bbe649c2572f51ccd3d507d9afba6f5920d2","head":{"label":"dwrensha:sandstorm-permissions-package","ref":"sandstorm-permissions-package","sha":"afc4bbe649c2572f51ccd3d507d9afba6f5920d2","user":{"login":"dwrensha","id":495768,"avatar_url":"https://avatars.githubusercontent.com/u/495768?v=3","gravatar_id":"","url":"https://api.github.com/users/dwrensha","html_url":"https://github.com/dwrensha","followers_url":"https://api.github.com/users/dwrensha/followers","following_url":"https://api.github.com/users/dwrensha/following{/other_user}","gists_url":"https://api.github.com/users/dwrensha/gists{/gist_id}","starred_url":"https://api.github.com/users/dwrensha/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dwrensha/subscriptions","organizations_url":"https://api.github.com/users/dwrensha/orgs","repos_url":"https://api.github.com/users/dwrensha/repos","events_url":"https://api.github.com/users/dwrensha/events{/privacy}","received_events_url":"https://api.github.com/users/dwrensha/received_events","type":"User","site_admin":false},"repo":{"id":17964729,"name":"sandstorm","full_name":"dwrensha/sandstorm","owner":{"login":"dwrensha","id":495768,"avatar_url":"https://avatars.githubusercontent.com/u/495768?v=3","gravatar_id":"","url":"https://api.github.com/users/dwrensha","html_url":"https://github.com/dwrensha","followers_url":"https://api.github.com/users/dwrensha/followers","following_url":"https://api.github.com/users/dwrensha/following{/other_user}","gists_url":"https://api.github.com/users/dwrensha/gists{/gist_id}","starred_url":"https://api.github.com/users/dwrensha/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dwrensha/subscriptions","organizations_url":"https://api.github.com/users/dwrensha/orgs","repos_url":"https://api.github.com/users/dwrensha/repos","events_url":"https://api.github.com/users/dwrensha/events{/privacy}","received_events_url":"https://api.github.com/users/dwrensha/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/dwrensha/sandstorm","description":"Personal Cloud Sandbox","fork":true,"url":"https://api.github.com/repos/dwrensha/sandstorm","forks_url":"https://api.github.com/repos/dwrensha/sandstorm/forks","keys_url":"https://api.github.com/repos/dwrensha/sandstorm/keys{/key_id}","collaborators_url":"https://api.github.com/repos/dwrensha/sandstorm/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/dwrensha/sandstorm/teams","hooks_url":"https://api.github.com/repos/dwrensha/sandstorm/hooks","issue_events_url":"https://api.github.com/repos/dwrensha/sandstorm/issues/events{/number}","events_url":"https://api.github.com/repos/dwrensha/sandstorm/events","assignees_url":"https://api.github.com/repos/dwrensha/sandstorm/assignees{/user}","branches_url":"https://api.github.com/repos/dwrensha/sandstorm/branches{/branch}","tags_url":"https://api.github.com/repos/dwrensha/sandstorm/tags","blobs_url":"https://api.github.com/repos/dwrensha/sandstorm/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/dwrensha/sandstorm/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/dwrensha/sandstorm/git/refs{/sha}","trees_url":"https://api.github.com/repos/dwrensha/sandstorm/git/trees{/sha}","statuses_url":"https://api.github.com/repos/dwrensha/sandstorm/statuses/{sha}","languages_url":"https://api.github.com/repos/dwrensha/sandstorm/languages","stargazers_url":"https://api.github.com/repos/dwrensha/sandstorm/stargazers","contributors_url":"https://api.github.com/repos/dwrensha/sandstorm/contributors","subscribers_url":"https://api.github.com/repos/dwrensha/sandstorm/subscribers","subscription_url":"https://api.github.com/repos/dwrensha/sandstorm/subscription","commits_url":"https://api.github.com/repos/dwrensha/sandstorm/commits{/sha}","git_commits_url":"https://api.github.com/repos/dwrensha/sandstorm/git/commits{/sha}","comments_url":"https://api.github.com/repos/dwrensha/sandstorm/comments{/number}","issue_comment_url":"https://api.github.com/repos/dwrensha/sandstorm/issues/comments{/number}","contents_url":"https://api.github.com/repos/dwrensha/sandstorm/contents/{+path}","compare_url":"https://api.github.com/repos/dwrensha/sandstorm/compare/{base}...{head}","merges_url":"https://api.github.com/repos/dwrensha/sandstorm/merges","archive_url":"https://api.github.com/repos/dwrensha/sandstorm/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/dwrensha/sandstorm/downloads","issues_url":"https://api.github.com/repos/dwrensha/sandstorm/issues{/number}","pulls_url":"https://api.github.com/repos/dwrensha/sandstorm/pulls{/number}","milestones_url":"https://api.github.com/repos/dwrensha/sandstorm/milestones{/number}","notifications_url":"https://api.github.com/repos/dwrensha/sandstorm/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/dwrensha/sandstorm/labels{/name}","releases_url":"https://api.github.com/repos/dwrensha/sandstorm/releases{/id}","created_at":"2014-03-21T01:42:05Z","updated_at":"2015-05-08T13:11:30Z","pushed_at":"2015-09-11T18:02:52Z","git_url":"git://github.com/dwrensha/sandstorm.git","ssh_url":"git@github.com:dwrensha/sandstorm.git","clone_url":"https://github.com/dwrensha/sandstorm.git","svn_url":"https://github.com/dwrensha/sandstorm","homepage":null,"size":9125,"stargazers_count":0,"watchers_count":0,"language":"C++","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"sandstorm-io:master","ref":"master","sha":"a3e698003da784cba7c40114a6ee3fb696482978","user":{"login":"sandstorm-io","id":7479094,"avatar_url":"https://avatars.githubusercontent.com/u/7479094?v=3","gravatar_id":"","url":"https://api.github.com/users/sandstorm-io","html_url":"https://github.com/sandstorm-io","followers_url":"https://api.github.com/users/sandstorm-io/followers","following_url":"https://api.github.com/users/sandstorm-io/following{/other_user}","gists_url":"https://api.github.com/users/sandstorm-io/gists{/gist_id}","starred_url":"https://api.github.com/users/sandstorm-io/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sandstorm-io/subscriptions","organizations_url":"https://api.github.com/users/sandstorm-io/orgs","repos_url":"https://api.github.com/users/sandstorm-io/repos","events_url":"https://api.github.com/users/sandstorm-io/events{/privacy}","received_events_url":"https://api.github.com/users/sandstorm-io/received_events","type":"Organization","site_admin":false},"repo":{"id":15728293,"name":"sandstorm","full_name":"sandstorm-io/sandstorm","owner":{"login":"sandstorm-io","id":7479094,"avatar_url":"https://avatars.githubusercontent.com/u/7479094?v=3","gravatar_id":"","url":"https://api.github.com/users/sandstorm-io","html_url":"https://github.com/sandstorm-io","followers_url":"https://api.github.com/users/sandstorm-io/followers","following_url":"https://api.github.com/users/sandstorm-io/following{/other_user}","gists_url":"https://api.github.com/users/sandstorm-io/gists{/gist_id}","starred_url":"https://api.github.com/users/sandstorm-io/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sandstorm-io/subscriptions","organizations_url":"https://api.github.com/users/sandstorm-io/orgs","repos_url":"https://api.github.com/users/sandstorm-io/repos","events_url":"https://api.github.com/users/sandstorm-io/events{/privacy}","received_events_url":"https://api.github.com/users/sandstorm-io/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/sandstorm-io/sandstorm","description":"Personal Cloud Sandbox","fork":false,"url":"https://api.github.com/repos/sandstorm-io/sandstorm","forks_url":"https://api.github.com/repos/sandstorm-io/sandstorm/forks","keys_url":"https://api.github.com/repos/sandstorm-io/sandstorm/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sandstorm-io/sandstorm/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sandstorm-io/sandstorm/teams","hooks_url":"https://api.github.com/repos/sandstorm-io/sandstorm/hooks","issue_events_url":"https://api.github.com/repos/sandstorm-io/sandstorm/issues/events{/number}","events_url":"https://api.github.com/repos/sandstorm-io/sandstorm/events","assignees_url":"https://api.github.com/repos/sandstorm-io/sandstorm/assignees{/user}","branches_url":"https://api.github.com/repos/sandstorm-io/sandstorm/branches{/branch}","tags_url":"https://api.github.com/repos/sandstorm-io/sandstorm/tags","blobs_url":"https://api.github.com/repos/sandstorm-io/sandstorm/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sandstorm-io/sandstorm/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sandstorm-io/sandstorm/git/refs{/sha}","trees_url":"https://api.github.com/repos/sandstorm-io/sandstorm/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sandstorm-io/sandstorm/statuses/{sha}","languages_url":"https://api.github.com/repos/sandstorm-io/sandstorm/languages","stargazers_url":"https://api.github.com/repos/sandstorm-io/sandstorm/stargazers","contributors_url":"https://api.github.com/repos/sandstorm-io/sandstorm/contributors","subscribers_url":"https://api.github.com/repos/sandstorm-io/sandstorm/subscribers","subscription_url":"https://api.github.com/repos/sandstorm-io/sandstorm/subscription","commits_url":"https://api.github.com/repos/sandstorm-io/sandstorm/commits{/sha}","git_commits_url":"https://api.github.com/repos/sandstorm-io/sandstorm/git/commits{/sha}","comments_url":"https://api.github.com/repos/sandstorm-io/sandstorm/comments{/number}","issue_comment_url":"https://api.github.com/repos/sandstorm-io/sandstorm/issues/comments{/number}","contents_url":"https://api.github.com/repos/sandstorm-io/sandstorm/contents/{+path}","compare_url":"https://api.github.com/repos/sandstorm-io/sandstorm/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sandstorm-io/sandstorm/merges","archive_url":"https://api.github.com/repos/sandstorm-io/sandstorm/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sandstorm-io/sandstorm/downloads","issues_url":"https://api.github.com/repos/sandstorm-io/sandstorm/issues{/number}","pulls_url":"https://api.github.com/repos/sandstorm-io/sandstorm/pulls{/number}","milestones_url":"https://api.github.com/repos/sandstorm-io/sandstorm/milestones{/number}","notifications_url":"https://api.github.com/repos/sandstorm-io/sandstorm/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sandstorm-io/sandstorm/labels{/name}","releases_url":"https://api.github.com/repos/sandstorm-io/sandstorm/releases{/id}","created_at":"2014-01-08T07:10:33Z","updated_at":"2015-09-11T05:34:40Z","pushed_at":"2015-09-11T18:05:09Z","git_url":"git://github.com/sandstorm-io/sandstorm.git","ssh_url":"git@github.com:sandstorm-io/sandstorm.git","clone_url":"https://github.com/sandstorm-io/sandstorm.git","svn_url":"https://github.com/sandstorm-io/sandstorm","homepage":"https://sandstorm.io","size":35622,"stargazers_count":2820,"watchers_count":2820,"language":"C++","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":211,"mirror_url":null,"open_issues_count":187,"forks":211,"open_issues":187,"watchers":2820,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/sandstorm-io/sandstorm/pulls/874"},"html":{"href":"https://github.com/sandstorm-io/sandstorm/pull/874"},"issue":{"href":"https://api.github.com/repos/sandstorm-io/sandstorm/issues/874"},"comments":{"href":"https://api.github.com/repos/sandstorm-io/sandstorm/issues/874/comments"},"review_comments":{"href":"https://api.github.com/repos/sandstorm-io/sandstorm/pulls/874/comments"},"review_comment":{"href":"https://api.github.com/repos/sandstorm-io/sandstorm/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/sandstorm-io/sandstorm/pulls/874/commits"},"statuses":{"href":"https://api.github.com/repos/sandstorm-io/sandstorm/statuses/afc4bbe649c2572f51ccd3d507d9afba6f5920d2"}}}}