{"action":"created","comment":{"url":"https://api.github.com/repos/kadirahq/meteor-debug/pulls/comments/37037916","id":37037916,"diff_hunk":"@@ -81,6 +81,51 @@ function(test, done) {\n   }, 200);\n });\n \n+Tinytest.addAsync(\n+  'Server - Integration - getTrace',\n+  function(test, done) {\n+    var sessionId = 'sid';\n+    var browserId = 'bid';\n+    var clientId = 'cid';\n+\n+    var sender = GetConn();\n+    var receiver = GetConn();\n+\n+    Meteor.wrapAsync(receiver.subscribe, receiver)('kadira.debug.init', clientId, browserId);\n+\n+    // build the trace\n+    // var session = {id: 'sid'};\n+    // var sampleTrace = {\n+    //   _id: \"HvnxHFEBb3YzCT5Tg::sid\",\n+    //   _lastEventId: null,\n+    //   at: 1439281811540,\n+    //   errored: false,\n+    //   events: [{0: \"start\", 1: 0}],\n+    //   id: \"bidcid\",\n+    //   isEventsProcessed: true,\n+    //   metrics: {\n+    //     compute: 2,\n+    //     db: 3,\n+    //     total: 5,\n+    //     wait: 0\n+    //   },\n+    //   name: \"aaa\",\n+    //   session: \"HvnxHFEBb3YzCT5Tg\",\n+    //   type: \"pubsub\",\n+    //   userId: null\n+    // };\n+\n+    // receiver.traceStore._onSubTrace(sampleTrace, session);\n+\n+    // get trace\n+    var type = 'pubsub';\n+    var id = 'bidcid';\n+\n+    // Unless the method check is failed, this test will not fail.\n+    var trace = sender.call('kadira.debug.getTrace', browserId, clientId, type, id);","path":"tests/server/integration.js","position":45,"original_position":45,"commit_id":"bbed4b4413e33f97f1709f7469b9835df8318251","original_commit_id":"bbed4b4413e33f97f1709f7469b9835df8318251","user":{"login":"arunoda","id":50838,"avatar_url":"https://avatars.githubusercontent.com/u/50838?v=3","gravatar_id":"","url":"https://api.github.com/users/arunoda","html_url":"https://github.com/arunoda","followers_url":"https://api.github.com/users/arunoda/followers","following_url":"https://api.github.com/users/arunoda/following{/other_user}","gists_url":"https://api.github.com/users/arunoda/gists{/gist_id}","starred_url":"https://api.github.com/users/arunoda/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/arunoda/subscriptions","organizations_url":"https://api.github.com/users/arunoda/orgs","repos_url":"https://api.github.com/users/arunoda/repos","events_url":"https://api.github.com/users/arunoda/events{/privacy}","received_events_url":"https://api.github.com/users/arunoda/received_events","type":"User","site_admin":false},"body":"We need to do an equal check here. Do it and update the PR.\r\nThen I can take it.","created_at":"2015-08-13T23:39:26Z","updated_at":"2015-08-13T23:39:26Z","html_url":"https://github.com/kadirahq/meteor-debug/pull/12#discussion_r37037916","pull_request_url":"https://api.github.com/repos/kadirahq/meteor-debug/pulls/12","_links":{"self":{"href":"https://api.github.com/repos/kadirahq/meteor-debug/pulls/comments/37037916"},"html":{"href":"https://github.com/kadirahq/meteor-debug/pull/12#discussion_r37037916"},"pull_request":{"href":"https://api.github.com/repos/kadirahq/meteor-debug/pulls/12"}}},"pull_request":{"url":"https://api.github.com/repos/kadirahq/meteor-debug/pulls/12","id":42120861,"html_url":"https://github.com/kadirahq/meteor-debug/pull/12","diff_url":"https://github.com/kadirahq/meteor-debug/pull/12.diff","patch_url":"https://github.com/kadirahq/meteor-debug/pull/12.patch","issue_url":"https://api.github.com/repos/kadirahq/meteor-debug/issues/12","number":12,"state":"open","locked":false,"title":"Test Cases for TraceStore","user":{"login":"thinkholic","id":1164024,"avatar_url":"https://avatars.githubusercontent.com/u/1164024?v=3","gravatar_id":"","url":"https://api.github.com/users/thinkholic","html_url":"https://github.com/thinkholic","followers_url":"https://api.github.com/users/thinkholic/followers","following_url":"https://api.github.com/users/thinkholic/following{/other_user}","gists_url":"https://api.github.com/users/thinkholic/gists{/gist_id}","starred_url":"https://api.github.com/users/thinkholic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thinkholic/subscriptions","organizations_url":"https://api.github.com/users/thinkholic/orgs","repos_url":"https://api.github.com/users/thinkholic/repos","events_url":"https://api.github.com/users/thinkholic/events{/privacy}","received_events_url":"https://api.github.com/users/thinkholic/received_events","type":"User","site_admin":false},"body":"Test Cases:\r\n- Server - Unit - TraceStore - registerSession\r\n- Server - Unit - TraceStore - getTrace (Method)\r\n- Server - Unit - TraceStore - getTrace (PubSub)\r\n- Server - Unit - TraceStore - unregisterSession","created_at":"2015-08-11T12:00:10Z","updated_at":"2015-08-13T23:39:27Z","closed_at":null,"merged_at":null,"merge_commit_sha":"89e5fe70d1e4fc05f45fce3a6190412fb1f820e0","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/kadirahq/meteor-debug/pulls/12/commits","review_comments_url":"https://api.github.com/repos/kadirahq/meteor-debug/pulls/12/comments","review_comment_url":"https://api.github.com/repos/kadirahq/meteor-debug/pulls/comments{/number}","comments_url":"https://api.github.com/repos/kadirahq/meteor-debug/issues/12/comments","statuses_url":"https://api.github.com/repos/kadirahq/meteor-debug/statuses/bbed4b4413e33f97f1709f7469b9835df8318251","head":{"label":"kadirahq:trace-store-test-cases","ref":"trace-store-test-cases","sha":"bbed4b4413e33f97f1709f7469b9835df8318251","user":{"login":"kadirahq","id":13164545,"avatar_url":"https://avatars.githubusercontent.com/u/13164545?v=3","gravatar_id":"","url":"https://api.github.com/users/kadirahq","html_url":"https://github.com/kadirahq","followers_url":"https://api.github.com/users/kadirahq/followers","following_url":"https://api.github.com/users/kadirahq/following{/other_user}","gists_url":"https://api.github.com/users/kadirahq/gists{/gist_id}","starred_url":"https://api.github.com/users/kadirahq/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kadirahq/subscriptions","organizations_url":"https://api.github.com/users/kadirahq/orgs","repos_url":"https://api.github.com/users/kadirahq/repos","events_url":"https://api.github.com/users/kadirahq/events{/privacy}","received_events_url":"https://api.github.com/users/kadirahq/received_events","type":"Organization","site_admin":false},"repo":{"id":36714391,"name":"meteor-debug","full_name":"kadirahq/meteor-debug","owner":{"login":"kadirahq","id":13164545,"avatar_url":"https://avatars.githubusercontent.com/u/13164545?v=3","gravatar_id":"","url":"https://api.github.com/users/kadirahq","html_url":"https://github.com/kadirahq","followers_url":"https://api.github.com/users/kadirahq/followers","following_url":"https://api.github.com/users/kadirahq/following{/other_user}","gists_url":"https://api.github.com/users/kadirahq/gists{/gist_id}","starred_url":"https://api.github.com/users/kadirahq/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kadirahq/subscriptions","organizations_url":"https://api.github.com/users/kadirahq/orgs","repos_url":"https://api.github.com/users/kadirahq/repos","events_url":"https://api.github.com/users/kadirahq/events{/privacy}","received_events_url":"https://api.github.com/users/kadirahq/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/kadirahq/meteor-debug","description":"Full Stack Debugging Solution for Meteor","fork":false,"url":"https://api.github.com/repos/kadirahq/meteor-debug","forks_url":"https://api.github.com/repos/kadirahq/meteor-debug/forks","keys_url":"https://api.github.com/repos/kadirahq/meteor-debug/keys{/key_id}","collaborators_url":"https://api.github.com/repos/kadirahq/meteor-debug/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/kadirahq/meteor-debug/teams","hooks_url":"https://api.github.com/repos/kadirahq/meteor-debug/hooks","issue_events_url":"https://api.github.com/repos/kadirahq/meteor-debug/issues/events{/number}","events_url":"https://api.github.com/repos/kadirahq/meteor-debug/events","assignees_url":"https://api.github.com/repos/kadirahq/meteor-debug/assignees{/user}","branches_url":"https://api.github.com/repos/kadirahq/meteor-debug/branches{/branch}","tags_url":"https://api.github.com/repos/kadirahq/meteor-debug/tags","blobs_url":"https://api.github.com/repos/kadirahq/meteor-debug/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/kadirahq/meteor-debug/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/kadirahq/meteor-debug/git/refs{/sha}","trees_url":"https://api.github.com/repos/kadirahq/meteor-debug/git/trees{/sha}","statuses_url":"https://api.github.com/repos/kadirahq/meteor-debug/statuses/{sha}","languages_url":"https://api.github.com/repos/kadirahq/meteor-debug/languages","stargazers_url":"https://api.github.com/repos/kadirahq/meteor-debug/stargazers","contributors_url":"https://api.github.com/repos/kadirahq/meteor-debug/contributors","subscribers_url":"https://api.github.com/repos/kadirahq/meteor-debug/subscribers","subscription_url":"https://api.github.com/repos/kadirahq/meteor-debug/subscription","commits_url":"https://api.github.com/repos/kadirahq/meteor-debug/commits{/sha}","git_commits_url":"https://api.github.com/repos/kadirahq/meteor-debug/git/commits{/sha}","comments_url":"https://api.github.com/repos/kadirahq/meteor-debug/comments{/number}","issue_comment_url":"https://api.github.com/repos/kadirahq/meteor-debug/issues/comments{/number}","contents_url":"https://api.github.com/repos/kadirahq/meteor-debug/contents/{+path}","compare_url":"https://api.github.com/repos/kadirahq/meteor-debug/compare/{base}...{head}","merges_url":"https://api.github.com/repos/kadirahq/meteor-debug/merges","archive_url":"https://api.github.com/repos/kadirahq/meteor-debug/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/kadirahq/meteor-debug/downloads","issues_url":"https://api.github.com/repos/kadirahq/meteor-debug/issues{/number}","pulls_url":"https://api.github.com/repos/kadirahq/meteor-debug/pulls{/number}","milestones_url":"https://api.github.com/repos/kadirahq/meteor-debug/milestones{/number}","notifications_url":"https://api.github.com/repos/kadirahq/meteor-debug/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/kadirahq/meteor-debug/labels{/name}","releases_url":"https://api.github.com/repos/kadirahq/meteor-debug/releases{/id}","created_at":"2015-06-02T06:59:17Z","updated_at":"2015-08-04T01:54:41Z","pushed_at":"2015-08-13T07:22:37Z","git_url":"git://github.com/kadirahq/meteor-debug.git","ssh_url":"git@github.com:kadirahq/meteor-debug.git","clone_url":"https://github.com/kadirahq/meteor-debug.git","svn_url":"https://github.com/kadirahq/meteor-debug","homepage":"https://kadira.io/platform/kadira-debug/overview","size":247,"stargazers_count":76,"watchers_count":76,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":4,"mirror_url":null,"open_issues_count":6,"forks":4,"open_issues":6,"watchers":76,"default_branch":"master"}},"base":{"label":"kadirahq:trace-tracking","ref":"trace-tracking","sha":"17fec45a929478557a3193aab0e8aed27e223db0","user":{"login":"kadirahq","id":13164545,"avatar_url":"https://avatars.githubusercontent.com/u/13164545?v=3","gravatar_id":"","url":"https://api.github.com/users/kadirahq","html_url":"https://github.com/kadirahq","followers_url":"https://api.github.com/users/kadirahq/followers","following_url":"https://api.github.com/users/kadirahq/following{/other_user}","gists_url":"https://api.github.com/users/kadirahq/gists{/gist_id}","starred_url":"https://api.github.com/users/kadirahq/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kadirahq/subscriptions","organizations_url":"https://api.github.com/users/kadirahq/orgs","repos_url":"https://api.github.com/users/kadirahq/repos","events_url":"https://api.github.com/users/kadirahq/events{/privacy}","received_events_url":"https://api.github.com/users/kadirahq/received_events","type":"Organization","site_admin":false},"repo":{"id":36714391,"name":"meteor-debug","full_name":"kadirahq/meteor-debug","owner":{"login":"kadirahq","id":13164545,"avatar_url":"https://avatars.githubusercontent.com/u/13164545?v=3","gravatar_id":"","url":"https://api.github.com/users/kadirahq","html_url":"https://github.com/kadirahq","followers_url":"https://api.github.com/users/kadirahq/followers","following_url":"https://api.github.com/users/kadirahq/following{/other_user}","gists_url":"https://api.github.com/users/kadirahq/gists{/gist_id}","starred_url":"https://api.github.com/users/kadirahq/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kadirahq/subscriptions","organizations_url":"https://api.github.com/users/kadirahq/orgs","repos_url":"https://api.github.com/users/kadirahq/repos","events_url":"https://api.github.com/users/kadirahq/events{/privacy}","received_events_url":"https://api.github.com/users/kadirahq/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/kadirahq/meteor-debug","description":"Full Stack Debugging Solution for Meteor","fork":false,"url":"https://api.github.com/repos/kadirahq/meteor-debug","forks_url":"https://api.github.com/repos/kadirahq/meteor-debug/forks","keys_url":"https://api.github.com/repos/kadirahq/meteor-debug/keys{/key_id}","collaborators_url":"https://api.github.com/repos/kadirahq/meteor-debug/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/kadirahq/meteor-debug/teams","hooks_url":"https://api.github.com/repos/kadirahq/meteor-debug/hooks","issue_events_url":"https://api.github.com/repos/kadirahq/meteor-debug/issues/events{/number}","events_url":"https://api.github.com/repos/kadirahq/meteor-debug/events","assignees_url":"https://api.github.com/repos/kadirahq/meteor-debug/assignees{/user}","branches_url":"https://api.github.com/repos/kadirahq/meteor-debug/branches{/branch}","tags_url":"https://api.github.com/repos/kadirahq/meteor-debug/tags","blobs_url":"https://api.github.com/repos/kadirahq/meteor-debug/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/kadirahq/meteor-debug/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/kadirahq/meteor-debug/git/refs{/sha}","trees_url":"https://api.github.com/repos/kadirahq/meteor-debug/git/trees{/sha}","statuses_url":"https://api.github.com/repos/kadirahq/meteor-debug/statuses/{sha}","languages_url":"https://api.github.com/repos/kadirahq/meteor-debug/languages","stargazers_url":"https://api.github.com/repos/kadirahq/meteor-debug/stargazers","contributors_url":"https://api.github.com/repos/kadirahq/meteor-debug/contributors","subscribers_url":"https://api.github.com/repos/kadirahq/meteor-debug/subscribers","subscription_url":"https://api.github.com/repos/kadirahq/meteor-debug/subscription","commits_url":"https://api.github.com/repos/kadirahq/meteor-debug/commits{/sha}","git_commits_url":"https://api.github.com/repos/kadirahq/meteor-debug/git/commits{/sha}","comments_url":"https://api.github.com/repos/kadirahq/meteor-debug/comments{/number}","issue_comment_url":"https://api.github.com/repos/kadirahq/meteor-debug/issues/comments{/number}","contents_url":"https://api.github.com/repos/kadirahq/meteor-debug/contents/{+path}","compare_url":"https://api.github.com/repos/kadirahq/meteor-debug/compare/{base}...{head}","merges_url":"https://api.github.com/repos/kadirahq/meteor-debug/merges","archive_url":"https://api.github.com/repos/kadirahq/meteor-debug/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/kadirahq/meteor-debug/downloads","issues_url":"https://api.github.com/repos/kadirahq/meteor-debug/issues{/number}","pulls_url":"https://api.github.com/repos/kadirahq/meteor-debug/pulls{/number}","milestones_url":"https://api.github.com/repos/kadirahq/meteor-debug/milestones{/number}","notifications_url":"https://api.github.com/repos/kadirahq/meteor-debug/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/kadirahq/meteor-debug/labels{/name}","releases_url":"https://api.github.com/repos/kadirahq/meteor-debug/releases{/id}","created_at":"2015-06-02T06:59:17Z","updated_at":"2015-08-04T01:54:41Z","pushed_at":"2015-08-13T07:22:37Z","git_url":"git://github.com/kadirahq/meteor-debug.git","ssh_url":"git@github.com:kadirahq/meteor-debug.git","clone_url":"https://github.com/kadirahq/meteor-debug.git","svn_url":"https://github.com/kadirahq/meteor-debug","homepage":"https://kadira.io/platform/kadira-debug/overview","size":247,"stargazers_count":76,"watchers_count":76,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":4,"mirror_url":null,"open_issues_count":6,"forks":4,"open_issues":6,"watchers":76,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/kadirahq/meteor-debug/pulls/12"},"html":{"href":"https://github.com/kadirahq/meteor-debug/pull/12"},"issue":{"href":"https://api.github.com/repos/kadirahq/meteor-debug/issues/12"},"comments":{"href":"https://api.github.com/repos/kadirahq/meteor-debug/issues/12/comments"},"review_comments":{"href":"https://api.github.com/repos/kadirahq/meteor-debug/pulls/12/comments"},"review_comment":{"href":"https://api.github.com/repos/kadirahq/meteor-debug/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/kadirahq/meteor-debug/pulls/12/commits"},"statuses":{"href":"https://api.github.com/repos/kadirahq/meteor-debug/statuses/bbed4b4413e33f97f1709f7469b9835df8318251"}}}}