{"action":"created","comment":{"url":"https://api.github.com/repos/rangle/augury/pulls/comments/77851036","id":77851036,"diff_hunk":"@@ -26,8 +26,13 @@ export class UserActions {\n   ) {}\n \n   /// Toggle the expansion state of a node\n-  toggle(node: Node) {\n-    switch (this.viewState.expandState(node)) {\n+  toggle(node: Node, defaultState: ExpandState) {\n+    let state = this.viewState.expandState(node);\n+    if (state == null) {\n+      state = defaultState;","path":"src/frontend/actions/user-actions/user-actions.ts","position":9,"original_position":9,"commit_id":"c30dac4abe43c56350451fb5f48e9ac02ac15629","original_commit_id":"c30dac4abe43c56350451fb5f48e9ac02ac15629","user":{"login":"igor-ka","id":12536242,"avatar_url":"https://avatars.githubusercontent.com/u/12536242?v=3","gravatar_id":"","url":"https://api.github.com/users/igor-ka","html_url":"https://github.com/igor-ka","followers_url":"https://api.github.com/users/igor-ka/followers","following_url":"https://api.github.com/users/igor-ka/following{/other_user}","gists_url":"https://api.github.com/users/igor-ka/gists{/gist_id}","starred_url":"https://api.github.com/users/igor-ka/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/igor-ka/subscriptions","organizations_url":"https://api.github.com/users/igor-ka/orgs","repos_url":"https://api.github.com/users/igor-ka/repos","events_url":"https://api.github.com/users/igor-ka/events{/privacy}","received_events_url":"https://api.github.com/users/igor-ka/received_events","type":"User","site_admin":false},"body":"@clbond can this be done with default parameters in the signature instead?","created_at":"2016-09-07T15:53:20Z","updated_at":"2016-09-07T15:53:20Z","html_url":"https://github.com/rangle/augury/pull/597#discussion_r77851036","pull_request_url":"https://api.github.com/repos/rangle/augury/pulls/597","_links":{"self":{"href":"https://api.github.com/repos/rangle/augury/pulls/comments/77851036"},"html":{"href":"https://github.com/rangle/augury/pull/597#discussion_r77851036"},"pull_request":{"href":"https://api.github.com/repos/rangle/augury/pulls/597"}}},"pull_request":{"url":"https://api.github.com/repos/rangle/augury/pulls/597","id":84203400,"html_url":"https://github.com/rangle/augury/pull/597","diff_url":"https://github.com/rangle/augury/pull/597.diff","patch_url":"https://github.com/rangle/augury/pull/597.patch","issue_url":"https://api.github.com/repos/rangle/augury/issues/597","number":597,"state":"open","locked":false,"title":"Only expand tree nodes 3 levels deep by default","user":{"login":"clbond","id":1780164,"avatar_url":"https://avatars.githubusercontent.com/u/1780164?v=3","gravatar_id":"","url":"https://api.github.com/users/clbond","html_url":"https://github.com/clbond","followers_url":"https://api.github.com/users/clbond/followers","following_url":"https://api.github.com/users/clbond/following{/other_user}","gists_url":"https://api.github.com/users/clbond/gists{/gist_id}","starred_url":"https://api.github.com/users/clbond/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/clbond/subscriptions","organizations_url":"https://api.github.com/users/clbond/orgs","repos_url":"https://api.github.com/users/clbond/repos","events_url":"https://api.github.com/users/clbond/events{/privacy}","received_events_url":"https://api.github.com/users/clbond/received_events","type":"User","site_admin":false},"body":"Addresses issue https://github.com/rangle/augury/issues/558","created_at":"2016-09-06T21:55:26Z","updated_at":"2016-09-07T15:53:20Z","closed_at":null,"merged_at":null,"merge_commit_sha":"baed08ea2079385a550ac7029cebc4199ae00f1e","assignee":{"login":"igor-ka","id":12536242,"avatar_url":"https://avatars.githubusercontent.com/u/12536242?v=3","gravatar_id":"","url":"https://api.github.com/users/igor-ka","html_url":"https://github.com/igor-ka","followers_url":"https://api.github.com/users/igor-ka/followers","following_url":"https://api.github.com/users/igor-ka/following{/other_user}","gists_url":"https://api.github.com/users/igor-ka/gists{/gist_id}","starred_url":"https://api.github.com/users/igor-ka/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/igor-ka/subscriptions","organizations_url":"https://api.github.com/users/igor-ka/orgs","repos_url":"https://api.github.com/users/igor-ka/repos","events_url":"https://api.github.com/users/igor-ka/events{/privacy}","received_events_url":"https://api.github.com/users/igor-ka/received_events","type":"User","site_admin":false},"assignees":[{"login":"igor-ka","id":12536242,"avatar_url":"https://avatars.githubusercontent.com/u/12536242?v=3","gravatar_id":"","url":"https://api.github.com/users/igor-ka","html_url":"https://github.com/igor-ka","followers_url":"https://api.github.com/users/igor-ka/followers","following_url":"https://api.github.com/users/igor-ka/following{/other_user}","gists_url":"https://api.github.com/users/igor-ka/gists{/gist_id}","starred_url":"https://api.github.com/users/igor-ka/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/igor-ka/subscriptions","organizations_url":"https://api.github.com/users/igor-ka/orgs","repos_url":"https://api.github.com/users/igor-ka/repos","events_url":"https://api.github.com/users/igor-ka/events{/privacy}","received_events_url":"https://api.github.com/users/igor-ka/received_events","type":"User","site_admin":false}],"milestone":null,"commits_url":"https://api.github.com/repos/rangle/augury/pulls/597/commits","review_comments_url":"https://api.github.com/repos/rangle/augury/pulls/597/comments","review_comment_url":"https://api.github.com/repos/rangle/augury/pulls/comments{/number}","comments_url":"https://api.github.com/repos/rangle/augury/issues/597/comments","statuses_url":"https://api.github.com/repos/rangle/augury/statuses/c30dac4abe43c56350451fb5f48e9ac02ac15629","head":{"label":"clbond:dev","ref":"dev","sha":"c30dac4abe43c56350451fb5f48e9ac02ac15629","user":{"login":"clbond","id":1780164,"avatar_url":"https://avatars.githubusercontent.com/u/1780164?v=3","gravatar_id":"","url":"https://api.github.com/users/clbond","html_url":"https://github.com/clbond","followers_url":"https://api.github.com/users/clbond/followers","following_url":"https://api.github.com/users/clbond/following{/other_user}","gists_url":"https://api.github.com/users/clbond/gists{/gist_id}","starred_url":"https://api.github.com/users/clbond/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/clbond/subscriptions","organizations_url":"https://api.github.com/users/clbond/orgs","repos_url":"https://api.github.com/users/clbond/repos","events_url":"https://api.github.com/users/clbond/events{/privacy}","received_events_url":"https://api.github.com/users/clbond/received_events","type":"User","site_admin":false},"repo":{"id":66858872,"name":"augury","full_name":"clbond/augury","owner":{"login":"clbond","id":1780164,"avatar_url":"https://avatars.githubusercontent.com/u/1780164?v=3","gravatar_id":"","url":"https://api.github.com/users/clbond","html_url":"https://github.com/clbond","followers_url":"https://api.github.com/users/clbond/followers","following_url":"https://api.github.com/users/clbond/following{/other_user}","gists_url":"https://api.github.com/users/clbond/gists{/gist_id}","starred_url":"https://api.github.com/users/clbond/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/clbond/subscriptions","organizations_url":"https://api.github.com/users/clbond/orgs","repos_url":"https://api.github.com/users/clbond/repos","events_url":"https://api.github.com/users/clbond/events{/privacy}","received_events_url":"https://api.github.com/users/clbond/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/clbond/augury","description":"Angular 2 development tools for Chrome","fork":true,"url":"https://api.github.com/repos/clbond/augury","forks_url":"https://api.github.com/repos/clbond/augury/forks","keys_url":"https://api.github.com/repos/clbond/augury/keys{/key_id}","collaborators_url":"https://api.github.com/repos/clbond/augury/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/clbond/augury/teams","hooks_url":"https://api.github.com/repos/clbond/augury/hooks","issue_events_url":"https://api.github.com/repos/clbond/augury/issues/events{/number}","events_url":"https://api.github.com/repos/clbond/augury/events","assignees_url":"https://api.github.com/repos/clbond/augury/assignees{/user}","branches_url":"https://api.github.com/repos/clbond/augury/branches{/branch}","tags_url":"https://api.github.com/repos/clbond/augury/tags","blobs_url":"https://api.github.com/repos/clbond/augury/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/clbond/augury/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/clbond/augury/git/refs{/sha}","trees_url":"https://api.github.com/repos/clbond/augury/git/trees{/sha}","statuses_url":"https://api.github.com/repos/clbond/augury/statuses/{sha}","languages_url":"https://api.github.com/repos/clbond/augury/languages","stargazers_url":"https://api.github.com/repos/clbond/augury/stargazers","contributors_url":"https://api.github.com/repos/clbond/augury/contributors","subscribers_url":"https://api.github.com/repos/clbond/augury/subscribers","subscription_url":"https://api.github.com/repos/clbond/augury/subscription","commits_url":"https://api.github.com/repos/clbond/augury/commits{/sha}","git_commits_url":"https://api.github.com/repos/clbond/augury/git/commits{/sha}","comments_url":"https://api.github.com/repos/clbond/augury/comments{/number}","issue_comment_url":"https://api.github.com/repos/clbond/augury/issues/comments{/number}","contents_url":"https://api.github.com/repos/clbond/augury/contents/{+path}","compare_url":"https://api.github.com/repos/clbond/augury/compare/{base}...{head}","merges_url":"https://api.github.com/repos/clbond/augury/merges","archive_url":"https://api.github.com/repos/clbond/augury/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/clbond/augury/downloads","issues_url":"https://api.github.com/repos/clbond/augury/issues{/number}","pulls_url":"https://api.github.com/repos/clbond/augury/pulls{/number}","milestones_url":"https://api.github.com/repos/clbond/augury/milestones{/number}","notifications_url":"https://api.github.com/repos/clbond/augury/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/clbond/augury/labels{/name}","releases_url":"https://api.github.com/repos/clbond/augury/releases{/id}","deployments_url":"https://api.github.com/repos/clbond/augury/deployments","created_at":"2016-08-29T16:06:17Z","updated_at":"2016-08-29T16:06:18Z","pushed_at":"2016-09-07T13:12:59Z","git_url":"git://github.com/clbond/augury.git","ssh_url":"git@github.com:clbond/augury.git","clone_url":"https://github.com/clbond/augury.git","svn_url":"https://github.com/clbond/augury","homepage":"","size":5106,"stargazers_count":0,"watchers_count":0,"language":"TypeScript","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":"dev"}},"base":{"label":"rangle:dev","ref":"dev","sha":"d65c9fd49d16e562d82c1fdecbcf0a5a69b83a2c","user":{"login":"rangle","id":4304982,"avatar_url":"https://avatars.githubusercontent.com/u/4304982?v=3","gravatar_id":"","url":"https://api.github.com/users/rangle","html_url":"https://github.com/rangle","followers_url":"https://api.github.com/users/rangle/followers","following_url":"https://api.github.com/users/rangle/following{/other_user}","gists_url":"https://api.github.com/users/rangle/gists{/gist_id}","starred_url":"https://api.github.com/users/rangle/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rangle/subscriptions","organizations_url":"https://api.github.com/users/rangle/orgs","repos_url":"https://api.github.com/users/rangle/repos","events_url":"https://api.github.com/users/rangle/events{/privacy}","received_events_url":"https://api.github.com/users/rangle/received_events","type":"Organization","site_admin":false},"repo":{"id":41743300,"name":"augury","full_name":"rangle/augury","owner":{"login":"rangle","id":4304982,"avatar_url":"https://avatars.githubusercontent.com/u/4304982?v=3","gravatar_id":"","url":"https://api.github.com/users/rangle","html_url":"https://github.com/rangle","followers_url":"https://api.github.com/users/rangle/followers","following_url":"https://api.github.com/users/rangle/following{/other_user}","gists_url":"https://api.github.com/users/rangle/gists{/gist_id}","starred_url":"https://api.github.com/users/rangle/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rangle/subscriptions","organizations_url":"https://api.github.com/users/rangle/orgs","repos_url":"https://api.github.com/users/rangle/repos","events_url":"https://api.github.com/users/rangle/events{/privacy}","received_events_url":"https://api.github.com/users/rangle/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/rangle/augury","description":"Angular 2 development tools for Chrome","fork":false,"url":"https://api.github.com/repos/rangle/augury","forks_url":"https://api.github.com/repos/rangle/augury/forks","keys_url":"https://api.github.com/repos/rangle/augury/keys{/key_id}","collaborators_url":"https://api.github.com/repos/rangle/augury/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/rangle/augury/teams","hooks_url":"https://api.github.com/repos/rangle/augury/hooks","issue_events_url":"https://api.github.com/repos/rangle/augury/issues/events{/number}","events_url":"https://api.github.com/repos/rangle/augury/events","assignees_url":"https://api.github.com/repos/rangle/augury/assignees{/user}","branches_url":"https://api.github.com/repos/rangle/augury/branches{/branch}","tags_url":"https://api.github.com/repos/rangle/augury/tags","blobs_url":"https://api.github.com/repos/rangle/augury/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/rangle/augury/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/rangle/augury/git/refs{/sha}","trees_url":"https://api.github.com/repos/rangle/augury/git/trees{/sha}","statuses_url":"https://api.github.com/repos/rangle/augury/statuses/{sha}","languages_url":"https://api.github.com/repos/rangle/augury/languages","stargazers_url":"https://api.github.com/repos/rangle/augury/stargazers","contributors_url":"https://api.github.com/repos/rangle/augury/contributors","subscribers_url":"https://api.github.com/repos/rangle/augury/subscribers","subscription_url":"https://api.github.com/repos/rangle/augury/subscription","commits_url":"https://api.github.com/repos/rangle/augury/commits{/sha}","git_commits_url":"https://api.github.com/repos/rangle/augury/git/commits{/sha}","comments_url":"https://api.github.com/repos/rangle/augury/comments{/number}","issue_comment_url":"https://api.github.com/repos/rangle/augury/issues/comments{/number}","contents_url":"https://api.github.com/repos/rangle/augury/contents/{+path}","compare_url":"https://api.github.com/repos/rangle/augury/compare/{base}...{head}","merges_url":"https://api.github.com/repos/rangle/augury/merges","archive_url":"https://api.github.com/repos/rangle/augury/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/rangle/augury/downloads","issues_url":"https://api.github.com/repos/rangle/augury/issues{/number}","pulls_url":"https://api.github.com/repos/rangle/augury/pulls{/number}","milestones_url":"https://api.github.com/repos/rangle/augury/milestones{/number}","notifications_url":"https://api.github.com/repos/rangle/augury/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/rangle/augury/labels{/name}","releases_url":"https://api.github.com/repos/rangle/augury/releases{/id}","deployments_url":"https://api.github.com/repos/rangle/augury/deployments","created_at":"2015-09-01T14:25:50Z","updated_at":"2016-09-04T18:51:20Z","pushed_at":"2016-09-07T15:48:12Z","git_url":"git://github.com/rangle/augury.git","ssh_url":"git@github.com:rangle/augury.git","clone_url":"https://github.com/rangle/augury.git","svn_url":"https://github.com/rangle/augury","homepage":"","size":7650,"stargazers_count":780,"watchers_count":780,"language":"TypeScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":84,"mirror_url":null,"open_issues_count":32,"forks":84,"open_issues":32,"watchers":780,"default_branch":"dev"}},"_links":{"self":{"href":"https://api.github.com/repos/rangle/augury/pulls/597"},"html":{"href":"https://github.com/rangle/augury/pull/597"},"issue":{"href":"https://api.github.com/repos/rangle/augury/issues/597"},"comments":{"href":"https://api.github.com/repos/rangle/augury/issues/597/comments"},"review_comments":{"href":"https://api.github.com/repos/rangle/augury/pulls/597/comments"},"review_comment":{"href":"https://api.github.com/repos/rangle/augury/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/rangle/augury/pulls/597/commits"},"statuses":{"href":"https://api.github.com/repos/rangle/augury/statuses/c30dac4abe43c56350451fb5f48e9ac02ac15629"}}}}
{"actor":{"display_login":"igor-ka"}}