{"action":"created","comment":{"url":"https://api.github.com/repos/redhat-developer/odo/pulls/comments/223599722","pull_request_review_id":162763691,"id":223599722,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIyMzU5OTcyMg==","diff_hunk":"@@ -297,7 +298,12 @@ func (c *Client) CreateNewProject(name string) error {\n \treturn nil\n }\n \n-func (c *Client) SetCurrentProject(project string) error {\n+// SetCurrentProject sets the passed project as active in kube config file\n+// Parameters:\n+//\t1. project to set as active\n+//\t2. the instance of client to be used to set the project as active\n+// Returns: error. non nil error in case of errors, nil otherwise\n+var SetCurrentProject = func(project string, c *Client) error {","path":"pkg/occlient/occlient.go","position":18,"original_position":18,"commit_id":"27949e6b9ac96463783cd8df88a32045ed0f8971","original_commit_id":"27949e6b9ac96463783cd8df88a32045ed0f8971","user":{"login":"kadel","id":57206,"node_id":"MDQ6VXNlcjU3MjA2","avatar_url":"https://avatars1.githubusercontent.com/u/57206?v=4","gravatar_id":"","url":"https://api.github.com/users/kadel","html_url":"https://github.com/kadel","followers_url":"https://api.github.com/users/kadel/followers","following_url":"https://api.github.com/users/kadel/following{/other_user}","gists_url":"https://api.github.com/users/kadel/gists{/gist_id}","starred_url":"https://api.github.com/users/kadel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kadel/subscriptions","organizations_url":"https://api.github.com/users/kadel/orgs","repos_url":"https://api.github.com/users/kadel/repos","events_url":"https://api.github.com/users/kadel/events{/privacy}","received_events_url":"https://api.github.com/users/kadel/received_events","type":"User","site_admin":false},"body":"Could it be done in FakeClient https://github.com/redhat-developer/odo/blob/master/pkg/occlient/fakeclient.go ?","created_at":"2018-10-09T08:17:24Z","updated_at":"2018-10-09T08:17:24Z","html_url":"https://github.com/redhat-developer/odo/pull/740#discussion_r223599722","pull_request_url":"https://api.github.com/repos/redhat-developer/odo/pulls/740","author_association":"MEMBER","_links":{"self":{"href":"https://api.github.com/repos/redhat-developer/odo/pulls/comments/223599722"},"html":{"href":"https://github.com/redhat-developer/odo/pull/740#discussion_r223599722"},"pull_request":{"href":"https://api.github.com/repos/redhat-developer/odo/pulls/740"}},"in_reply_to_id":223348197},"pull_request":{"url":"https://api.github.com/repos/redhat-developer/odo/pulls/740","id":215755131,"node_id":"MDExOlB1bGxSZXF1ZXN0MjE1NzU1MTMx","html_url":"https://github.com/redhat-developer/odo/pull/740","diff_url":"https://github.com/redhat-developer/odo/pull/740.diff","patch_url":"https://github.com/redhat-developer/odo/pull/740.patch","issue_url":"https://api.github.com/repos/redhat-developer/odo/issues/740","number":740,"state":"open","locked":false,"title":"Enhance project delete + Add UTs","user":{"login":"anmolbabu","id":3525639,"node_id":"MDQ6VXNlcjM1MjU2Mzk=","avatar_url":"https://avatars1.githubusercontent.com/u/3525639?v=4","gravatar_id":"","url":"https://api.github.com/users/anmolbabu","html_url":"https://github.com/anmolbabu","followers_url":"https://api.github.com/users/anmolbabu/followers","following_url":"https://api.github.com/users/anmolbabu/following{/other_user}","gists_url":"https://api.github.com/users/anmolbabu/gists{/gist_id}","starred_url":"https://api.github.com/users/anmolbabu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/anmolbabu/subscriptions","organizations_url":"https://api.github.com/users/anmolbabu/orgs","repos_url":"https://api.github.com/users/anmolbabu/repos","events_url":"https://api.github.com/users/anmolbabu/events{/privacy}","received_events_url":"https://api.github.com/users/anmolbabu/received_events","type":"User","site_admin":false},"body":"Delete project enhancements + Unit tests and e2e tests\r\n\r\nThis PR adds the following:\r\n1. When a project is deleted, the delete project now displays also the\r\n   active project post deletion if there are more projects left post deletion\r\n2. Adds UTs and e2e tests for project delete\r\n3. Handles the case of project list with no projects with a proper message\r\n   indicating that there are no currently available projects and suggests the\r\n   command to create a project instead of displaying an empty table.\r\n\r\nfixes #726 #750\r\nSigned-off-by: anmolbabu <anmolbudugutta@gmail.com>\r\n","created_at":"2018-09-15T07:15:16Z","updated_at":"2018-10-09T08:17:24Z","closed_at":null,"merged_at":null,"merge_commit_sha":"2a4429d1b1463c91a6c256a4b3be044e862bad81","assignee":{"login":"anmolbabu","id":3525639,"node_id":"MDQ6VXNlcjM1MjU2Mzk=","avatar_url":"https://avatars1.githubusercontent.com/u/3525639?v=4","gravatar_id":"","url":"https://api.github.com/users/anmolbabu","html_url":"https://github.com/anmolbabu","followers_url":"https://api.github.com/users/anmolbabu/followers","following_url":"https://api.github.com/users/anmolbabu/following{/other_user}","gists_url":"https://api.github.com/users/anmolbabu/gists{/gist_id}","starred_url":"https://api.github.com/users/anmolbabu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/anmolbabu/subscriptions","organizations_url":"https://api.github.com/users/anmolbabu/orgs","repos_url":"https://api.github.com/users/anmolbabu/repos","events_url":"https://api.github.com/users/anmolbabu/events{/privacy}","received_events_url":"https://api.github.com/users/anmolbabu/received_events","type":"User","site_admin":false},"assignees":[{"login":"anmolbabu","id":3525639,"node_id":"MDQ6VXNlcjM1MjU2Mzk=","avatar_url":"https://avatars1.githubusercontent.com/u/3525639?v=4","gravatar_id":"","url":"https://api.github.com/users/anmolbabu","html_url":"https://github.com/anmolbabu","followers_url":"https://api.github.com/users/anmolbabu/followers","following_url":"https://api.github.com/users/anmolbabu/following{/other_user}","gists_url":"https://api.github.com/users/anmolbabu/gists{/gist_id}","starred_url":"https://api.github.com/users/anmolbabu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/anmolbabu/subscriptions","organizations_url":"https://api.github.com/users/anmolbabu/orgs","repos_url":"https://api.github.com/users/anmolbabu/repos","events_url":"https://api.github.com/users/anmolbabu/events{/privacy}","received_events_url":"https://api.github.com/users/anmolbabu/received_events","type":"User","site_admin":false}],"requested_reviewers":[{"login":"mik-dass","id":14028106,"node_id":"MDQ6VXNlcjE0MDI4MTA2","avatar_url":"https://avatars2.githubusercontent.com/u/14028106?v=4","gravatar_id":"","url":"https://api.github.com/users/mik-dass","html_url":"https://github.com/mik-dass","followers_url":"https://api.github.com/users/mik-dass/followers","following_url":"https://api.github.com/users/mik-dass/following{/other_user}","gists_url":"https://api.github.com/users/mik-dass/gists{/gist_id}","starred_url":"https://api.github.com/users/mik-dass/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mik-dass/subscriptions","organizations_url":"https://api.github.com/users/mik-dass/orgs","repos_url":"https://api.github.com/users/mik-dass/repos","events_url":"https://api.github.com/users/mik-dass/events{/privacy}","received_events_url":"https://api.github.com/users/mik-dass/received_events","type":"User","site_admin":false},{"login":"surajnarwade","id":17265451,"node_id":"MDQ6VXNlcjE3MjY1NDUx","avatar_url":"https://avatars3.githubusercontent.com/u/17265451?v=4","gravatar_id":"","url":"https://api.github.com/users/surajnarwade","html_url":"https://github.com/surajnarwade","followers_url":"https://api.github.com/users/surajnarwade/followers","following_url":"https://api.github.com/users/surajnarwade/following{/other_user}","gists_url":"https://api.github.com/users/surajnarwade/gists{/gist_id}","starred_url":"https://api.github.com/users/surajnarwade/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/surajnarwade/subscriptions","organizations_url":"https://api.github.com/users/surajnarwade/orgs","repos_url":"https://api.github.com/users/surajnarwade/repos","events_url":"https://api.github.com/users/surajnarwade/events{/privacy}","received_events_url":"https://api.github.com/users/surajnarwade/received_events","type":"User","site_admin":false}],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/redhat-developer/odo/pulls/740/commits","review_comments_url":"https://api.github.com/repos/redhat-developer/odo/pulls/740/comments","review_comment_url":"https://api.github.com/repos/redhat-developer/odo/pulls/comments{/number}","comments_url":"https://api.github.com/repos/redhat-developer/odo/issues/740/comments","statuses_url":"https://api.github.com/repos/redhat-developer/odo/statuses/27949e6b9ac96463783cd8df88a32045ed0f8971","head":{"label":"anmolbabu:fixes#726","ref":"fixes#726","sha":"27949e6b9ac96463783cd8df88a32045ed0f8971","user":{"login":"anmolbabu","id":3525639,"node_id":"MDQ6VXNlcjM1MjU2Mzk=","avatar_url":"https://avatars1.githubusercontent.com/u/3525639?v=4","gravatar_id":"","url":"https://api.github.com/users/anmolbabu","html_url":"https://github.com/anmolbabu","followers_url":"https://api.github.com/users/anmolbabu/followers","following_url":"https://api.github.com/users/anmolbabu/following{/other_user}","gists_url":"https://api.github.com/users/anmolbabu/gists{/gist_id}","starred_url":"https://api.github.com/users/anmolbabu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/anmolbabu/subscriptions","organizations_url":"https://api.github.com/users/anmolbabu/orgs","repos_url":"https://api.github.com/users/anmolbabu/repos","events_url":"https://api.github.com/users/anmolbabu/events{/privacy}","received_events_url":"https://api.github.com/users/anmolbabu/received_events","type":"User","site_admin":false},"repo":{"id":141098025,"node_id":"MDEwOlJlcG9zaXRvcnkxNDEwOTgwMjU=","name":"odo","full_name":"anmolbabu/odo","private":false,"owner":{"login":"anmolbabu","id":3525639,"node_id":"MDQ6VXNlcjM1MjU2Mzk=","avatar_url":"https://avatars1.githubusercontent.com/u/3525639?v=4","gravatar_id":"","url":"https://api.github.com/users/anmolbabu","html_url":"https://github.com/anmolbabu","followers_url":"https://api.github.com/users/anmolbabu/followers","following_url":"https://api.github.com/users/anmolbabu/following{/other_user}","gists_url":"https://api.github.com/users/anmolbabu/gists{/gist_id}","starred_url":"https://api.github.com/users/anmolbabu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/anmolbabu/subscriptions","organizations_url":"https://api.github.com/users/anmolbabu/orgs","repos_url":"https://api.github.com/users/anmolbabu/repos","events_url":"https://api.github.com/users/anmolbabu/events{/privacy}","received_events_url":"https://api.github.com/users/anmolbabu/received_events","type":"User","site_admin":false},"html_url":"https://github.com/anmolbabu/odo","description":"OpenShift Command line for Developers","fork":true,"url":"https://api.github.com/repos/anmolbabu/odo","forks_url":"https://api.github.com/repos/anmolbabu/odo/forks","keys_url":"https://api.github.com/repos/anmolbabu/odo/keys{/key_id}","collaborators_url":"https://api.github.com/repos/anmolbabu/odo/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/anmolbabu/odo/teams","hooks_url":"https://api.github.com/repos/anmolbabu/odo/hooks","issue_events_url":"https://api.github.com/repos/anmolbabu/odo/issues/events{/number}","events_url":"https://api.github.com/repos/anmolbabu/odo/events","assignees_url":"https://api.github.com/repos/anmolbabu/odo/assignees{/user}","branches_url":"https://api.github.com/repos/anmolbabu/odo/branches{/branch}","tags_url":"https://api.github.com/repos/anmolbabu/odo/tags","blobs_url":"https://api.github.com/repos/anmolbabu/odo/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/anmolbabu/odo/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/anmolbabu/odo/git/refs{/sha}","trees_url":"https://api.github.com/repos/anmolbabu/odo/git/trees{/sha}","statuses_url":"https://api.github.com/repos/anmolbabu/odo/statuses/{sha}","languages_url":"https://api.github.com/repos/anmolbabu/odo/languages","stargazers_url":"https://api.github.com/repos/anmolbabu/odo/stargazers","contributors_url":"https://api.github.com/repos/anmolbabu/odo/contributors","subscribers_url":"https://api.github.com/repos/anmolbabu/odo/subscribers","subscription_url":"https://api.github.com/repos/anmolbabu/odo/subscription","commits_url":"https://api.github.com/repos/anmolbabu/odo/commits{/sha}","git_commits_url":"https://api.github.com/repos/anmolbabu/odo/git/commits{/sha}","comments_url":"https://api.github.com/repos/anmolbabu/odo/comments{/number}","issue_comment_url":"https://api.github.com/repos/anmolbabu/odo/issues/comments{/number}","contents_url":"https://api.github.com/repos/anmolbabu/odo/contents/{+path}","compare_url":"https://api.github.com/repos/anmolbabu/odo/compare/{base}...{head}","merges_url":"https://api.github.com/repos/anmolbabu/odo/merges","archive_url":"https://api.github.com/repos/anmolbabu/odo/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/anmolbabu/odo/downloads","issues_url":"https://api.github.com/repos/anmolbabu/odo/issues{/number}","pulls_url":"https://api.github.com/repos/anmolbabu/odo/pulls{/number}","milestones_url":"https://api.github.com/repos/anmolbabu/odo/milestones{/number}","notifications_url":"https://api.github.com/repos/anmolbabu/odo/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/anmolbabu/odo/labels{/name}","releases_url":"https://api.github.com/repos/anmolbabu/odo/releases{/id}","deployments_url":"https://api.github.com/repos/anmolbabu/odo/deployments","created_at":"2018-07-16T06:50:21Z","updated_at":"2018-10-06T09:52:59Z","pushed_at":"2018-10-06T09:52:57Z","git_url":"git://github.com/anmolbabu/odo.git","ssh_url":"git@github.com:anmolbabu/odo.git","clone_url":"https://github.com/anmolbabu/odo.git","svn_url":"https://github.com/anmolbabu/odo","homepage":"","size":92283,"stargazers_count":0,"watchers_count":0,"language":"Go","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0","node_id":"MDc6TGljZW5zZTI="},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"redhat-developer:master","ref":"master","sha":"e55bcb579ca94c1eeb70683cdf7983954efb283e","user":{"login":"redhat-developer","id":11033755,"node_id":"MDEyOk9yZ2FuaXphdGlvbjExMDMzNzU1","avatar_url":"https://avatars0.githubusercontent.com/u/11033755?v=4","gravatar_id":"","url":"https://api.github.com/users/redhat-developer","html_url":"https://github.com/redhat-developer","followers_url":"https://api.github.com/users/redhat-developer/followers","following_url":"https://api.github.com/users/redhat-developer/following{/other_user}","gists_url":"https://api.github.com/users/redhat-developer/gists{/gist_id}","starred_url":"https://api.github.com/users/redhat-developer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/redhat-developer/subscriptions","organizations_url":"https://api.github.com/users/redhat-developer/orgs","repos_url":"https://api.github.com/users/redhat-developer/repos","events_url":"https://api.github.com/users/redhat-developer/events{/privacy}","received_events_url":"https://api.github.com/users/redhat-developer/received_events","type":"Organization","site_admin":false},"repo":{"id":118630356,"node_id":"MDEwOlJlcG9zaXRvcnkxMTg2MzAzNTY=","name":"odo","full_name":"redhat-developer/odo","private":false,"owner":{"login":"redhat-developer","id":11033755,"node_id":"MDEyOk9yZ2FuaXphdGlvbjExMDMzNzU1","avatar_url":"https://avatars0.githubusercontent.com/u/11033755?v=4","gravatar_id":"","url":"https://api.github.com/users/redhat-developer","html_url":"https://github.com/redhat-developer","followers_url":"https://api.github.com/users/redhat-developer/followers","following_url":"https://api.github.com/users/redhat-developer/following{/other_user}","gists_url":"https://api.github.com/users/redhat-developer/gists{/gist_id}","starred_url":"https://api.github.com/users/redhat-developer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/redhat-developer/subscriptions","organizations_url":"https://api.github.com/users/redhat-developer/orgs","repos_url":"https://api.github.com/users/redhat-developer/repos","events_url":"https://api.github.com/users/redhat-developer/events{/privacy}","received_events_url":"https://api.github.com/users/redhat-developer/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/redhat-developer/odo","description":"OpenShift Command line for Developers","fork":false,"url":"https://api.github.com/repos/redhat-developer/odo","forks_url":"https://api.github.com/repos/redhat-developer/odo/forks","keys_url":"https://api.github.com/repos/redhat-developer/odo/keys{/key_id}","collaborators_url":"https://api.github.com/repos/redhat-developer/odo/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/redhat-developer/odo/teams","hooks_url":"https://api.github.com/repos/redhat-developer/odo/hooks","issue_events_url":"https://api.github.com/repos/redhat-developer/odo/issues/events{/number}","events_url":"https://api.github.com/repos/redhat-developer/odo/events","assignees_url":"https://api.github.com/repos/redhat-developer/odo/assignees{/user}","branches_url":"https://api.github.com/repos/redhat-developer/odo/branches{/branch}","tags_url":"https://api.github.com/repos/redhat-developer/odo/tags","blobs_url":"https://api.github.com/repos/redhat-developer/odo/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/redhat-developer/odo/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/redhat-developer/odo/git/refs{/sha}","trees_url":"https://api.github.com/repos/redhat-developer/odo/git/trees{/sha}","statuses_url":"https://api.github.com/repos/redhat-developer/odo/statuses/{sha}","languages_url":"https://api.github.com/repos/redhat-developer/odo/languages","stargazers_url":"https://api.github.com/repos/redhat-developer/odo/stargazers","contributors_url":"https://api.github.com/repos/redhat-developer/odo/contributors","subscribers_url":"https://api.github.com/repos/redhat-developer/odo/subscribers","subscription_url":"https://api.github.com/repos/redhat-developer/odo/subscription","commits_url":"https://api.github.com/repos/redhat-developer/odo/commits{/sha}","git_commits_url":"https://api.github.com/repos/redhat-developer/odo/git/commits{/sha}","comments_url":"https://api.github.com/repos/redhat-developer/odo/comments{/number}","issue_comment_url":"https://api.github.com/repos/redhat-developer/odo/issues/comments{/number}","contents_url":"https://api.github.com/repos/redhat-developer/odo/contents/{+path}","compare_url":"https://api.github.com/repos/redhat-developer/odo/compare/{base}...{head}","merges_url":"https://api.github.com/repos/redhat-developer/odo/merges","archive_url":"https://api.github.com/repos/redhat-developer/odo/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/redhat-developer/odo/downloads","issues_url":"https://api.github.com/repos/redhat-developer/odo/issues{/number}","pulls_url":"https://api.github.com/repos/redhat-developer/odo/pulls{/number}","milestones_url":"https://api.github.com/repos/redhat-developer/odo/milestones{/number}","notifications_url":"https://api.github.com/repos/redhat-developer/odo/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/redhat-developer/odo/labels{/name}","releases_url":"https://api.github.com/repos/redhat-developer/odo/releases{/id}","deployments_url":"https://api.github.com/repos/redhat-developer/odo/deployments","created_at":"2018-01-23T15:36:17Z","updated_at":"2018-10-09T06:42:10Z","pushed_at":"2018-10-09T08:13:39Z","git_url":"git://github.com/redhat-developer/odo.git","ssh_url":"git@github.com:redhat-developer/odo.git","clone_url":"https://github.com/redhat-developer/odo.git","svn_url":"https://github.com/redhat-developer/odo","homepage":"","size":92235,"stargazers_count":235,"watchers_count":235,"language":"Go","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":49,"mirror_url":null,"archived":false,"open_issues_count":140,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0","node_id":"MDc6TGljZW5zZTI="},"forks":49,"open_issues":140,"watchers":235,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/redhat-developer/odo/pulls/740"},"html":{"href":"https://github.com/redhat-developer/odo/pull/740"},"issue":{"href":"https://api.github.com/repos/redhat-developer/odo/issues/740"},"comments":{"href":"https://api.github.com/repos/redhat-developer/odo/issues/740/comments"},"review_comments":{"href":"https://api.github.com/repos/redhat-developer/odo/pulls/740/comments"},"review_comment":{"href":"https://api.github.com/repos/redhat-developer/odo/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/redhat-developer/odo/pulls/740/commits"},"statuses":{"href":"https://api.github.com/repos/redhat-developer/odo/statuses/27949e6b9ac96463783cd8df88a32045ed0f8971"}},"author_association":"COLLABORATOR"}}
{"actor":{"display_login":"kadel"}}