{"action":"created","comment":{"url":"https://api.github.com/repos/teamsnap/teamsnap-javascript-sdk/pulls/comments/50286013","id":50286013,"diff_hunk":"@@ -397,9 +397,22 @@ modifySDK = (sdk) ->\n     (statistic, callback) ->\n       toRemove = statistic.statisticData.slice()\n       toRemove.push statistic.eventStatistics...\n+      toRemove.push statistic.memberStatistics...","path":"src/persistence.coffee","position":4,"original_position":4,"commit_id":"1501db9cfe86b212b660a9396a8189fa397c65bf","original_commit_id":"1501db9cfe86b212b660a9396a8189fa397c65bf","user":{"login":"matthopson","id":1891789,"avatar_url":"https://avatars.githubusercontent.com/u/1891789?v=3","gravatar_id":"","url":"https://api.github.com/users/matthopson","html_url":"https://github.com/matthopson","followers_url":"https://api.github.com/users/matthopson/followers","following_url":"https://api.github.com/users/matthopson/following{/other_user}","gists_url":"https://api.github.com/users/matthopson/gists{/gist_id}","starred_url":"https://api.github.com/users/matthopson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/matthopson/subscriptions","organizations_url":"https://api.github.com/users/matthopson/orgs","repos_url":"https://api.github.com/users/matthopson/repos","events_url":"https://api.github.com/users/matthopson/events{/privacy}","received_events_url":"https://api.github.com/users/matthopson/received_events","type":"User","site_admin":false},"body":"Splat operator (like ruby)","created_at":"2016-01-20T17:16:38Z","updated_at":"2016-01-20T17:16:38Z","html_url":"https://github.com/teamsnap/teamsnap-javascript-sdk/pull/108#discussion_r50286013","pull_request_url":"https://api.github.com/repos/teamsnap/teamsnap-javascript-sdk/pulls/108","_links":{"self":{"href":"https://api.github.com/repos/teamsnap/teamsnap-javascript-sdk/pulls/comments/50286013"},"html":{"href":"https://github.com/teamsnap/teamsnap-javascript-sdk/pull/108#discussion_r50286013"},"pull_request":{"href":"https://api.github.com/repos/teamsnap/teamsnap-javascript-sdk/pulls/108"}}},"pull_request":{"url":"https://api.github.com/repos/teamsnap/teamsnap-javascript-sdk/pulls/108","id":56512256,"html_url":"https://github.com/teamsnap/teamsnap-javascript-sdk/pull/108","diff_url":"https://github.com/teamsnap/teamsnap-javascript-sdk/pull/108.diff","patch_url":"https://github.com/teamsnap/teamsnap-javascript-sdk/pull/108.patch","issue_url":"https://api.github.com/repos/teamsnap/teamsnap-javascript-sdk/issues/108","number":108,"state":"open","locked":false,"title":"Reload eventStatistics team-wide","user":{"login":"matthopson","id":1891789,"avatar_url":"https://avatars.githubusercontent.com/u/1891789?v=3","gravatar_id":"","url":"https://api.github.com/users/matthopson","html_url":"https://github.com/matthopson","followers_url":"https://api.github.com/users/matthopson/followers","following_url":"https://api.github.com/users/matthopson/following{/other_user}","gists_url":"https://api.github.com/users/matthopson/gists{/gist_id}","starred_url":"https://api.github.com/users/matthopson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/matthopson/subscriptions","organizations_url":"https://api.github.com/users/matthopson/orgs","repos_url":"https://api.github.com/users/matthopson/repos","events_url":"https://api.github.com/users/matthopson/events{/privacy}","received_events_url":"https://api.github.com/users/matthopson/received_events","type":"User","site_admin":false},"body":"Ensure `eventStatistics` are being reloaded team-wide when saving and deleting statistics and statistic data\r\n\r\n@glanotte maybe walk through this logic a bit and let me know if anything is overkill?\r\n\r\nThis returns a LOT more data on these operations, so I want to be sure this is right.","created_at":"2016-01-19T19:21:10Z","updated_at":"2016-01-20T17:16:38Z","closed_at":null,"merged_at":null,"merge_commit_sha":"96877569c1237850d3e0a830b264b1a98543fddf","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/teamsnap/teamsnap-javascript-sdk/pulls/108/commits","review_comments_url":"https://api.github.com/repos/teamsnap/teamsnap-javascript-sdk/pulls/108/comments","review_comment_url":"https://api.github.com/repos/teamsnap/teamsnap-javascript-sdk/pulls/comments{/number}","comments_url":"https://api.github.com/repos/teamsnap/teamsnap-javascript-sdk/issues/108/comments","statuses_url":"https://api.github.com/repos/teamsnap/teamsnap-javascript-sdk/statuses/1501db9cfe86b212b660a9396a8189fa397c65bf","head":{"label":"teamsnap:stats-fixes","ref":"stats-fixes","sha":"1501db9cfe86b212b660a9396a8189fa397c65bf","user":{"login":"teamsnap","id":69031,"avatar_url":"https://avatars.githubusercontent.com/u/69031?v=3","gravatar_id":"","url":"https://api.github.com/users/teamsnap","html_url":"https://github.com/teamsnap","followers_url":"https://api.github.com/users/teamsnap/followers","following_url":"https://api.github.com/users/teamsnap/following{/other_user}","gists_url":"https://api.github.com/users/teamsnap/gists{/gist_id}","starred_url":"https://api.github.com/users/teamsnap/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/teamsnap/subscriptions","organizations_url":"https://api.github.com/users/teamsnap/orgs","repos_url":"https://api.github.com/users/teamsnap/repos","events_url":"https://api.github.com/users/teamsnap/events{/privacy}","received_events_url":"https://api.github.com/users/teamsnap/received_events","type":"Organization","site_admin":false},"repo":{"id":20901458,"name":"teamsnap-javascript-sdk","full_name":"teamsnap/teamsnap-javascript-sdk","owner":{"login":"teamsnap","id":69031,"avatar_url":"https://avatars.githubusercontent.com/u/69031?v=3","gravatar_id":"","url":"https://api.github.com/users/teamsnap","html_url":"https://github.com/teamsnap","followers_url":"https://api.github.com/users/teamsnap/followers","following_url":"https://api.github.com/users/teamsnap/following{/other_user}","gists_url":"https://api.github.com/users/teamsnap/gists{/gist_id}","starred_url":"https://api.github.com/users/teamsnap/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/teamsnap/subscriptions","organizations_url":"https://api.github.com/users/teamsnap/orgs","repos_url":"https://api.github.com/users/teamsnap/repos","events_url":"https://api.github.com/users/teamsnap/events{/privacy}","received_events_url":"https://api.github.com/users/teamsnap/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/teamsnap/teamsnap-javascript-sdk","description":"Javascript SDK for TeamSnap's APIv3","fork":false,"url":"https://api.github.com/repos/teamsnap/teamsnap-javascript-sdk","forks_url":"https://api.github.com/repos/teamsnap/teamsnap-javascript-sdk/forks","keys_url":"https://api.github.com/repos/teamsnap/teamsnap-javascript-sdk/keys{/key_id}","collaborators_url":"https://api.github.com/repos/teamsnap/teamsnap-javascript-sdk/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/teamsnap/teamsnap-javascript-sdk/teams","hooks_url":"https://api.github.com/repos/teamsnap/teamsnap-javascript-sdk/hooks","issue_events_url":"https://api.github.com/repos/teamsnap/teamsnap-javascript-sdk/issues/events{/number}","events_url":"https://api.github.com/repos/teamsnap/teamsnap-javascript-sdk/events","assignees_url":"https://api.github.com/repos/teamsnap/teamsnap-javascript-sdk/assignees{/user}","branches_url":"https://api.github.com/repos/teamsnap/teamsnap-javascript-sdk/branches{/branch}","tags_url":"https://api.github.com/repos/teamsnap/teamsnap-javascript-sdk/tags","blobs_url":"https://api.github.com/repos/teamsnap/teamsnap-javascript-sdk/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/teamsnap/teamsnap-javascript-sdk/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/teamsnap/teamsnap-javascript-sdk/git/refs{/sha}","trees_url":"https://api.github.com/repos/teamsnap/teamsnap-javascript-sdk/git/trees{/sha}","statuses_url":"https://api.github.com/repos/teamsnap/teamsnap-javascript-sdk/statuses/{sha}","languages_url":"https://api.github.com/repos/teamsnap/teamsnap-javascript-sdk/languages","stargazers_url":"https://api.github.com/repos/teamsnap/teamsnap-javascript-sdk/stargazers","contributors_url":"https://api.github.com/repos/teamsnap/teamsnap-javascript-sdk/contributors","subscribers_url":"https://api.github.com/repos/teamsnap/teamsnap-javascript-sdk/subscribers","subscription_url":"https://api.github.com/repos/teamsnap/teamsnap-javascript-sdk/subscription","commits_url":"https://api.github.com/repos/teamsnap/teamsnap-javascript-sdk/commits{/sha}","git_commits_url":"https://api.github.com/repos/teamsnap/teamsnap-javascript-sdk/git/commits{/sha}","comments_url":"https://api.github.com/repos/teamsnap/teamsnap-javascript-sdk/comments{/number}","issue_comment_url":"https://api.github.com/repos/teamsnap/teamsnap-javascript-sdk/issues/comments{/number}","contents_url":"https://api.github.com/repos/teamsnap/teamsnap-javascript-sdk/contents/{+path}","compare_url":"https://api.github.com/repos/teamsnap/teamsnap-javascript-sdk/compare/{base}...{head}","merges_url":"https://api.github.com/repos/teamsnap/teamsnap-javascript-sdk/merges","archive_url":"https://api.github.com/repos/teamsnap/teamsnap-javascript-sdk/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/teamsnap/teamsnap-javascript-sdk/downloads","issues_url":"https://api.github.com/repos/teamsnap/teamsnap-javascript-sdk/issues{/number}","pulls_url":"https://api.github.com/repos/teamsnap/teamsnap-javascript-sdk/pulls{/number}","milestones_url":"https://api.github.com/repos/teamsnap/teamsnap-javascript-sdk/milestones{/number}","notifications_url":"https://api.github.com/repos/teamsnap/teamsnap-javascript-sdk/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/teamsnap/teamsnap-javascript-sdk/labels{/name}","releases_url":"https://api.github.com/repos/teamsnap/teamsnap-javascript-sdk/releases{/id}","created_at":"2014-06-16T21:28:29Z","updated_at":"2016-01-13T21:41:58Z","pushed_at":"2016-01-19T19:21:10Z","git_url":"git://github.com/teamsnap/teamsnap-javascript-sdk.git","ssh_url":"git@github.com:teamsnap/teamsnap-javascript-sdk.git","clone_url":"https://github.com/teamsnap/teamsnap-javascript-sdk.git","svn_url":"https://github.com/teamsnap/teamsnap-javascript-sdk","homepage":null,"size":1278,"stargazers_count":3,"watchers_count":3,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":4,"mirror_url":null,"open_issues_count":7,"forks":4,"open_issues":7,"watchers":3,"default_branch":"master"}},"base":{"label":"teamsnap:master","ref":"master","sha":"826061028c194b5b8157f8c8ada608601be0b950","user":{"login":"teamsnap","id":69031,"avatar_url":"https://avatars.githubusercontent.com/u/69031?v=3","gravatar_id":"","url":"https://api.github.com/users/teamsnap","html_url":"https://github.com/teamsnap","followers_url":"https://api.github.com/users/teamsnap/followers","following_url":"https://api.github.com/users/teamsnap/following{/other_user}","gists_url":"https://api.github.com/users/teamsnap/gists{/gist_id}","starred_url":"https://api.github.com/users/teamsnap/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/teamsnap/subscriptions","organizations_url":"https://api.github.com/users/teamsnap/orgs","repos_url":"https://api.github.com/users/teamsnap/repos","events_url":"https://api.github.com/users/teamsnap/events{/privacy}","received_events_url":"https://api.github.com/users/teamsnap/received_events","type":"Organization","site_admin":false},"repo":{"id":20901458,"name":"teamsnap-javascript-sdk","full_name":"teamsnap/teamsnap-javascript-sdk","owner":{"login":"teamsnap","id":69031,"avatar_url":"https://avatars.githubusercontent.com/u/69031?v=3","gravatar_id":"","url":"https://api.github.com/users/teamsnap","html_url":"https://github.com/teamsnap","followers_url":"https://api.github.com/users/teamsnap/followers","following_url":"https://api.github.com/users/teamsnap/following{/other_user}","gists_url":"https://api.github.com/users/teamsnap/gists{/gist_id}","starred_url":"https://api.github.com/users/teamsnap/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/teamsnap/subscriptions","organizations_url":"https://api.github.com/users/teamsnap/orgs","repos_url":"https://api.github.com/users/teamsnap/repos","events_url":"https://api.github.com/users/teamsnap/events{/privacy}","received_events_url":"https://api.github.com/users/teamsnap/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/teamsnap/teamsnap-javascript-sdk","description":"Javascript SDK for TeamSnap's APIv3","fork":false,"url":"https://api.github.com/repos/teamsnap/teamsnap-javascript-sdk","forks_url":"https://api.github.com/repos/teamsnap/teamsnap-javascript-sdk/forks","keys_url":"https://api.github.com/repos/teamsnap/teamsnap-javascript-sdk/keys{/key_id}","collaborators_url":"https://api.github.com/repos/teamsnap/teamsnap-javascript-sdk/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/teamsnap/teamsnap-javascript-sdk/teams","hooks_url":"https://api.github.com/repos/teamsnap/teamsnap-javascript-sdk/hooks","issue_events_url":"https://api.github.com/repos/teamsnap/teamsnap-javascript-sdk/issues/events{/number}","events_url":"https://api.github.com/repos/teamsnap/teamsnap-javascript-sdk/events","assignees_url":"https://api.github.com/repos/teamsnap/teamsnap-javascript-sdk/assignees{/user}","branches_url":"https://api.github.com/repos/teamsnap/teamsnap-javascript-sdk/branches{/branch}","tags_url":"https://api.github.com/repos/teamsnap/teamsnap-javascript-sdk/tags","blobs_url":"https://api.github.com/repos/teamsnap/teamsnap-javascript-sdk/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/teamsnap/teamsnap-javascript-sdk/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/teamsnap/teamsnap-javascript-sdk/git/refs{/sha}","trees_url":"https://api.github.com/repos/teamsnap/teamsnap-javascript-sdk/git/trees{/sha}","statuses_url":"https://api.github.com/repos/teamsnap/teamsnap-javascript-sdk/statuses/{sha}","languages_url":"https://api.github.com/repos/teamsnap/teamsnap-javascript-sdk/languages","stargazers_url":"https://api.github.com/repos/teamsnap/teamsnap-javascript-sdk/stargazers","contributors_url":"https://api.github.com/repos/teamsnap/teamsnap-javascript-sdk/contributors","subscribers_url":"https://api.github.com/repos/teamsnap/teamsnap-javascript-sdk/subscribers","subscription_url":"https://api.github.com/repos/teamsnap/teamsnap-javascript-sdk/subscription","commits_url":"https://api.github.com/repos/teamsnap/teamsnap-javascript-sdk/commits{/sha}","git_commits_url":"https://api.github.com/repos/teamsnap/teamsnap-javascript-sdk/git/commits{/sha}","comments_url":"https://api.github.com/repos/teamsnap/teamsnap-javascript-sdk/comments{/number}","issue_comment_url":"https://api.github.com/repos/teamsnap/teamsnap-javascript-sdk/issues/comments{/number}","contents_url":"https://api.github.com/repos/teamsnap/teamsnap-javascript-sdk/contents/{+path}","compare_url":"https://api.github.com/repos/teamsnap/teamsnap-javascript-sdk/compare/{base}...{head}","merges_url":"https://api.github.com/repos/teamsnap/teamsnap-javascript-sdk/merges","archive_url":"https://api.github.com/repos/teamsnap/teamsnap-javascript-sdk/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/teamsnap/teamsnap-javascript-sdk/downloads","issues_url":"https://api.github.com/repos/teamsnap/teamsnap-javascript-sdk/issues{/number}","pulls_url":"https://api.github.com/repos/teamsnap/teamsnap-javascript-sdk/pulls{/number}","milestones_url":"https://api.github.com/repos/teamsnap/teamsnap-javascript-sdk/milestones{/number}","notifications_url":"https://api.github.com/repos/teamsnap/teamsnap-javascript-sdk/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/teamsnap/teamsnap-javascript-sdk/labels{/name}","releases_url":"https://api.github.com/repos/teamsnap/teamsnap-javascript-sdk/releases{/id}","created_at":"2014-06-16T21:28:29Z","updated_at":"2016-01-13T21:41:58Z","pushed_at":"2016-01-19T19:21:10Z","git_url":"git://github.com/teamsnap/teamsnap-javascript-sdk.git","ssh_url":"git@github.com:teamsnap/teamsnap-javascript-sdk.git","clone_url":"https://github.com/teamsnap/teamsnap-javascript-sdk.git","svn_url":"https://github.com/teamsnap/teamsnap-javascript-sdk","homepage":null,"size":1278,"stargazers_count":3,"watchers_count":3,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":4,"mirror_url":null,"open_issues_count":7,"forks":4,"open_issues":7,"watchers":3,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/teamsnap/teamsnap-javascript-sdk/pulls/108"},"html":{"href":"https://github.com/teamsnap/teamsnap-javascript-sdk/pull/108"},"issue":{"href":"https://api.github.com/repos/teamsnap/teamsnap-javascript-sdk/issues/108"},"comments":{"href":"https://api.github.com/repos/teamsnap/teamsnap-javascript-sdk/issues/108/comments"},"review_comments":{"href":"https://api.github.com/repos/teamsnap/teamsnap-javascript-sdk/pulls/108/comments"},"review_comment":{"href":"https://api.github.com/repos/teamsnap/teamsnap-javascript-sdk/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/teamsnap/teamsnap-javascript-sdk/pulls/108/commits"},"statuses":{"href":"https://api.github.com/repos/teamsnap/teamsnap-javascript-sdk/statuses/1501db9cfe86b212b660a9396a8189fa397c65bf"}}}}