{"action":"created","comment":{"url":"https://api.github.com/repos/DynamoDS/Dynamo/pulls/comments/24228111","id":24228111,"diff_hunk":"@@ -176,12 +176,9 @@ private WorkspaceModel GetWorkspaceByGuid(string guidStr)\n         {\n             Guid guidValue;\n             if (!Guid.TryParse(guidStr, out guidValue) || guidValue.Equals(Guid.Empty))\n-                return dynamoModel.HomeSpace;\n+                return dynamoModel.Workspaces.First(w => w is HomeWorkspaceModel);","path":"src/DynamoWebServer/Messages/MessageHandler.cs","position":5,"original_position":5,"commit_id":"000cfd2d705052c033fa80aa2be2a5c0ff33d08d","original_commit_id":"000cfd2d705052c033fa80aa2be2a5c0ff33d08d","user":{"login":"marimano","id":7658189,"avatar_url":"https://avatars.githubusercontent.com/u/7658189?v=3","gravatar_id":"","url":"https://api.github.com/users/marimano","html_url":"https://github.com/marimano","followers_url":"https://api.github.com/users/marimano/followers","following_url":"https://api.github.com/users/marimano/following{/other_user}","gists_url":"https://api.github.com/users/marimano/gists{/gist_id}","starred_url":"https://api.github.com/users/marimano/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/marimano/subscriptions","organizations_url":"https://api.github.com/users/marimano/orgs","repos_url":"https://api.github.com/users/marimano/repos","events_url":"https://api.github.com/users/marimano/events{/privacy}","received_events_url":"https://api.github.com/users/marimano/received_events","type":"User","site_admin":false},"body":"there is no `HomeSpace` in dynamo model anymore, so I choose it from the workspaces list","created_at":"2015-02-06T08:36:44Z","updated_at":"2015-02-06T08:36:44Z","html_url":"https://github.com/DynamoDS/Dynamo/pull/3707#discussion_r24228111","pull_request_url":"https://api.github.com/repos/DynamoDS/Dynamo/pulls/3707","_links":{"self":{"href":"https://api.github.com/repos/DynamoDS/Dynamo/pulls/comments/24228111"},"html":{"href":"https://github.com/DynamoDS/Dynamo/pull/3707#discussion_r24228111"},"pull_request":{"href":"https://api.github.com/repos/DynamoDS/Dynamo/pulls/3707"}}},"pull_request":{"url":"https://api.github.com/repos/DynamoDS/Dynamo/pulls/3707","id":28792487,"html_url":"https://github.com/DynamoDS/Dynamo/pull/3707","diff_url":"https://github.com/DynamoDS/Dynamo/pull/3707.diff","patch_url":"https://github.com/DynamoDS/Dynamo/pull/3707.patch","issue_url":"https://api.github.com/repos/DynamoDS/Dynamo/issues/3707","number":3707,"state":"open","locked":false,"title":"Clearing workspaces","user":{"login":"marimano","id":7658189,"avatar_url":"https://avatars.githubusercontent.com/u/7658189?v=3","gravatar_id":"","url":"https://api.github.com/users/marimano","html_url":"https://github.com/marimano","followers_url":"https://api.github.com/users/marimano/followers","following_url":"https://api.github.com/users/marimano/following{/other_user}","gists_url":"https://api.github.com/users/marimano/gists{/gist_id}","starred_url":"https://api.github.com/users/marimano/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/marimano/subscriptions","organizations_url":"https://api.github.com/users/marimano/orgs","repos_url":"https://api.github.com/users/marimano/repos","events_url":"https://api.github.com/users/marimano/events{/privacy}","received_events_url":"https://api.github.com/users/marimano/received_events","type":"User","site_admin":false},"body":"Fix clearing Home workspace and removing all custom nodes by request from Flood.\r\nActually the functionality is the same as it was but implemented with using new changes of Dynamo core","created_at":"2015-02-06T08:35:55Z","updated_at":"2015-02-06T08:36:44Z","closed_at":null,"merged_at":null,"merge_commit_sha":"0a14bcf4ec6cc0d8d7cee2eaeecfa49a037810f9","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/DynamoDS/Dynamo/pulls/3707/commits","review_comments_url":"https://api.github.com/repos/DynamoDS/Dynamo/pulls/3707/comments","review_comment_url":"https://api.github.com/repos/DynamoDS/Dynamo/pulls/comments/{number}","comments_url":"https://api.github.com/repos/DynamoDS/Dynamo/issues/3707/comments","statuses_url":"https://api.github.com/repos/DynamoDS/Dynamo/statuses/000cfd2d705052c033fa80aa2be2a5c0ff33d08d","head":{"label":"marimano:clear-ws","ref":"clear-ws","sha":"000cfd2d705052c033fa80aa2be2a5c0ff33d08d","user":{"login":"marimano","id":7658189,"avatar_url":"https://avatars.githubusercontent.com/u/7658189?v=3","gravatar_id":"","url":"https://api.github.com/users/marimano","html_url":"https://github.com/marimano","followers_url":"https://api.github.com/users/marimano/followers","following_url":"https://api.github.com/users/marimano/following{/other_user}","gists_url":"https://api.github.com/users/marimano/gists{/gist_id}","starred_url":"https://api.github.com/users/marimano/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/marimano/subscriptions","organizations_url":"https://api.github.com/users/marimano/orgs","repos_url":"https://api.github.com/users/marimano/repos","events_url":"https://api.github.com/users/marimano/events{/privacy}","received_events_url":"https://api.github.com/users/marimano/received_events","type":"User","site_admin":false},"repo":{"id":22464277,"name":"Dynamo","full_name":"marimano/Dynamo","owner":{"login":"marimano","id":7658189,"avatar_url":"https://avatars.githubusercontent.com/u/7658189?v=3","gravatar_id":"","url":"https://api.github.com/users/marimano","html_url":"https://github.com/marimano","followers_url":"https://api.github.com/users/marimano/followers","following_url":"https://api.github.com/users/marimano/following{/other_user}","gists_url":"https://api.github.com/users/marimano/gists{/gist_id}","starred_url":"https://api.github.com/users/marimano/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/marimano/subscriptions","organizations_url":"https://api.github.com/users/marimano/orgs","repos_url":"https://api.github.com/users/marimano/repos","events_url":"https://api.github.com/users/marimano/events{/privacy}","received_events_url":"https://api.github.com/users/marimano/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/marimano/Dynamo","description":"Visual Programming For Revit","fork":true,"url":"https://api.github.com/repos/marimano/Dynamo","forks_url":"https://api.github.com/repos/marimano/Dynamo/forks","keys_url":"https://api.github.com/repos/marimano/Dynamo/keys{/key_id}","collaborators_url":"https://api.github.com/repos/marimano/Dynamo/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/marimano/Dynamo/teams","hooks_url":"https://api.github.com/repos/marimano/Dynamo/hooks","issue_events_url":"https://api.github.com/repos/marimano/Dynamo/issues/events{/number}","events_url":"https://api.github.com/repos/marimano/Dynamo/events","assignees_url":"https://api.github.com/repos/marimano/Dynamo/assignees{/user}","branches_url":"https://api.github.com/repos/marimano/Dynamo/branches{/branch}","tags_url":"https://api.github.com/repos/marimano/Dynamo/tags","blobs_url":"https://api.github.com/repos/marimano/Dynamo/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/marimano/Dynamo/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/marimano/Dynamo/git/refs{/sha}","trees_url":"https://api.github.com/repos/marimano/Dynamo/git/trees{/sha}","statuses_url":"https://api.github.com/repos/marimano/Dynamo/statuses/{sha}","languages_url":"https://api.github.com/repos/marimano/Dynamo/languages","stargazers_url":"https://api.github.com/repos/marimano/Dynamo/stargazers","contributors_url":"https://api.github.com/repos/marimano/Dynamo/contributors","subscribers_url":"https://api.github.com/repos/marimano/Dynamo/subscribers","subscription_url":"https://api.github.com/repos/marimano/Dynamo/subscription","commits_url":"https://api.github.com/repos/marimano/Dynamo/commits{/sha}","git_commits_url":"https://api.github.com/repos/marimano/Dynamo/git/commits{/sha}","comments_url":"https://api.github.com/repos/marimano/Dynamo/comments{/number}","issue_comment_url":"https://api.github.com/repos/marimano/Dynamo/issues/comments/{number}","contents_url":"https://api.github.com/repos/marimano/Dynamo/contents/{+path}","compare_url":"https://api.github.com/repos/marimano/Dynamo/compare/{base}...{head}","merges_url":"https://api.github.com/repos/marimano/Dynamo/merges","archive_url":"https://api.github.com/repos/marimano/Dynamo/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/marimano/Dynamo/downloads","issues_url":"https://api.github.com/repos/marimano/Dynamo/issues{/number}","pulls_url":"https://api.github.com/repos/marimano/Dynamo/pulls{/number}","milestones_url":"https://api.github.com/repos/marimano/Dynamo/milestones{/number}","notifications_url":"https://api.github.com/repos/marimano/Dynamo/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/marimano/Dynamo/labels{/name}","releases_url":"https://api.github.com/repos/marimano/Dynamo/releases{/id}","created_at":"2014-07-31T09:45:07Z","updated_at":"2014-07-31T02:37:47Z","pushed_at":"2015-02-05T17:00:34Z","git_url":"git://github.com/marimano/Dynamo.git","ssh_url":"git@github.com:marimano/Dynamo.git","clone_url":"https://github.com/marimano/Dynamo.git","svn_url":"https://github.com/marimano/Dynamo","homepage":"http://dynamobim.org","size":656262,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"DynamoDS:Reaching","ref":"Reaching","sha":"7a6514d074924ca5dc73af739bb9dbc46e7fc199","user":{"login":"DynamoDS","id":6528209,"avatar_url":"https://avatars.githubusercontent.com/u/6528209?v=3","gravatar_id":"","url":"https://api.github.com/users/DynamoDS","html_url":"https://github.com/DynamoDS","followers_url":"https://api.github.com/users/DynamoDS/followers","following_url":"https://api.github.com/users/DynamoDS/following{/other_user}","gists_url":"https://api.github.com/users/DynamoDS/gists{/gist_id}","starred_url":"https://api.github.com/users/DynamoDS/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DynamoDS/subscriptions","organizations_url":"https://api.github.com/users/DynamoDS/orgs","repos_url":"https://api.github.com/users/DynamoDS/repos","events_url":"https://api.github.com/users/DynamoDS/events{/privacy}","received_events_url":"https://api.github.com/users/DynamoDS/received_events","type":"Organization","site_admin":false},"repo":{"id":3395179,"name":"Dynamo","full_name":"DynamoDS/Dynamo","owner":{"login":"DynamoDS","id":6528209,"avatar_url":"https://avatars.githubusercontent.com/u/6528209?v=3","gravatar_id":"","url":"https://api.github.com/users/DynamoDS","html_url":"https://github.com/DynamoDS","followers_url":"https://api.github.com/users/DynamoDS/followers","following_url":"https://api.github.com/users/DynamoDS/following{/other_user}","gists_url":"https://api.github.com/users/DynamoDS/gists{/gist_id}","starred_url":"https://api.github.com/users/DynamoDS/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DynamoDS/subscriptions","organizations_url":"https://api.github.com/users/DynamoDS/orgs","repos_url":"https://api.github.com/users/DynamoDS/repos","events_url":"https://api.github.com/users/DynamoDS/events{/privacy}","received_events_url":"https://api.github.com/users/DynamoDS/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/DynamoDS/Dynamo","description":"Visual Programming","fork":false,"url":"https://api.github.com/repos/DynamoDS/Dynamo","forks_url":"https://api.github.com/repos/DynamoDS/Dynamo/forks","keys_url":"https://api.github.com/repos/DynamoDS/Dynamo/keys{/key_id}","collaborators_url":"https://api.github.com/repos/DynamoDS/Dynamo/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/DynamoDS/Dynamo/teams","hooks_url":"https://api.github.com/repos/DynamoDS/Dynamo/hooks","issue_events_url":"https://api.github.com/repos/DynamoDS/Dynamo/issues/events{/number}","events_url":"https://api.github.com/repos/DynamoDS/Dynamo/events","assignees_url":"https://api.github.com/repos/DynamoDS/Dynamo/assignees{/user}","branches_url":"https://api.github.com/repos/DynamoDS/Dynamo/branches{/branch}","tags_url":"https://api.github.com/repos/DynamoDS/Dynamo/tags","blobs_url":"https://api.github.com/repos/DynamoDS/Dynamo/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/DynamoDS/Dynamo/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/DynamoDS/Dynamo/git/refs{/sha}","trees_url":"https://api.github.com/repos/DynamoDS/Dynamo/git/trees{/sha}","statuses_url":"https://api.github.com/repos/DynamoDS/Dynamo/statuses/{sha}","languages_url":"https://api.github.com/repos/DynamoDS/Dynamo/languages","stargazers_url":"https://api.github.com/repos/DynamoDS/Dynamo/stargazers","contributors_url":"https://api.github.com/repos/DynamoDS/Dynamo/contributors","subscribers_url":"https://api.github.com/repos/DynamoDS/Dynamo/subscribers","subscription_url":"https://api.github.com/repos/DynamoDS/Dynamo/subscription","commits_url":"https://api.github.com/repos/DynamoDS/Dynamo/commits{/sha}","git_commits_url":"https://api.github.com/repos/DynamoDS/Dynamo/git/commits{/sha}","comments_url":"https://api.github.com/repos/DynamoDS/Dynamo/comments{/number}","issue_comment_url":"https://api.github.com/repos/DynamoDS/Dynamo/issues/comments/{number}","contents_url":"https://api.github.com/repos/DynamoDS/Dynamo/contents/{+path}","compare_url":"https://api.github.com/repos/DynamoDS/Dynamo/compare/{base}...{head}","merges_url":"https://api.github.com/repos/DynamoDS/Dynamo/merges","archive_url":"https://api.github.com/repos/DynamoDS/Dynamo/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/DynamoDS/Dynamo/downloads","issues_url":"https://api.github.com/repos/DynamoDS/Dynamo/issues{/number}","pulls_url":"https://api.github.com/repos/DynamoDS/Dynamo/pulls{/number}","milestones_url":"https://api.github.com/repos/DynamoDS/Dynamo/milestones{/number}","notifications_url":"https://api.github.com/repos/DynamoDS/Dynamo/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/DynamoDS/Dynamo/labels{/name}","releases_url":"https://api.github.com/repos/DynamoDS/Dynamo/releases{/id}","created_at":"2012-02-09T07:35:33Z","updated_at":"2015-02-06T07:05:24Z","pushed_at":"2015-02-06T07:05:22Z","git_url":"git://github.com/DynamoDS/Dynamo.git","ssh_url":"git@github.com:DynamoDS/Dynamo.git","clone_url":"https://github.com/DynamoDS/Dynamo.git","svn_url":"https://github.com/DynamoDS/Dynamo","homepage":"http://dynamobim.org","size":886608,"stargazers_count":193,"watchers_count":193,"language":"C#","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":134,"mirror_url":null,"open_issues_count":502,"forks":134,"open_issues":502,"watchers":193,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/DynamoDS/Dynamo/pulls/3707"},"html":{"href":"https://github.com/DynamoDS/Dynamo/pull/3707"},"issue":{"href":"https://api.github.com/repos/DynamoDS/Dynamo/issues/3707"},"comments":{"href":"https://api.github.com/repos/DynamoDS/Dynamo/issues/3707/comments"},"review_comments":{"href":"https://api.github.com/repos/DynamoDS/Dynamo/pulls/3707/comments"},"review_comment":{"href":"https://api.github.com/repos/DynamoDS/Dynamo/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/DynamoDS/Dynamo/pulls/3707/commits"},"statuses":{"href":"https://api.github.com/repos/DynamoDS/Dynamo/statuses/000cfd2d705052c033fa80aa2be2a5c0ff33d08d"}}}}