{"action":"opened","issue":{"url":"https://api.github.com/repos/redhat-developer/vscode-openshift-tools/issues/188","repository_url":"https://api.github.com/repos/redhat-developer/vscode-openshift-tools","labels_url":"https://api.github.com/repos/redhat-developer/vscode-openshift-tools/issues/188/labels{/name}","comments_url":"https://api.github.com/repos/redhat-developer/vscode-openshift-tools/issues/188/comments","events_url":"https://api.github.com/repos/redhat-developer/vscode-openshift-tools/issues/188/events","html_url":"https://github.com/redhat-developer/vscode-openshift-tools/issues/188","id":366199016,"node_id":"MDU6SXNzdWUzNjYxOTkwMTY=","number":188,"title":"Message `Project has been successfully deleted` is shown before project actually deleted","user":{"login":"dgolovin","id":620330,"node_id":"MDQ6VXNlcjYyMDMzMA==","avatar_url":"https://avatars1.githubusercontent.com/u/620330?v=4","gravatar_id":"","url":"https://api.github.com/users/dgolovin","html_url":"https://github.com/dgolovin","followers_url":"https://api.github.com/users/dgolovin/followers","following_url":"https://api.github.com/users/dgolovin/following{/other_user}","gists_url":"https://api.github.com/users/dgolovin/gists{/gist_id}","starred_url":"https://api.github.com/users/dgolovin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dgolovin/subscriptions","organizations_url":"https://api.github.com/users/dgolovin/orgs","repos_url":"https://api.github.com/users/dgolovin/repos","events_url":"https://api.github.com/users/dgolovin/events{/privacy}","received_events_url":"https://api.github.com/users/dgolovin/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"dgolovin","id":620330,"node_id":"MDQ6VXNlcjYyMDMzMA==","avatar_url":"https://avatars1.githubusercontent.com/u/620330?v=4","gravatar_id":"","url":"https://api.github.com/users/dgolovin","html_url":"https://github.com/dgolovin","followers_url":"https://api.github.com/users/dgolovin/followers","following_url":"https://api.github.com/users/dgolovin/following{/other_user}","gists_url":"https://api.github.com/users/dgolovin/gists{/gist_id}","starred_url":"https://api.github.com/users/dgolovin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dgolovin/subscriptions","organizations_url":"https://api.github.com/users/dgolovin/orgs","repos_url":"https://api.github.com/users/dgolovin/repos","events_url":"https://api.github.com/users/dgolovin/events{/privacy}","received_events_url":"https://api.github.com/users/dgolovin/received_events","type":"User","site_admin":false},"assignees":[{"login":"dgolovin","id":620330,"node_id":"MDQ6VXNlcjYyMDMzMA==","avatar_url":"https://avatars1.githubusercontent.com/u/620330?v=4","gravatar_id":"","url":"https://api.github.com/users/dgolovin","html_url":"https://github.com/dgolovin","followers_url":"https://api.github.com/users/dgolovin/followers","following_url":"https://api.github.com/users/dgolovin/following{/other_user}","gists_url":"https://api.github.com/users/dgolovin/gists{/gist_id}","starred_url":"https://api.github.com/users/dgolovin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dgolovin/subscriptions","organizations_url":"https://api.github.com/users/dgolovin/orgs","repos_url":"https://api.github.com/users/dgolovin/repos","events_url":"https://api.github.com/users/dgolovin/events{/privacy}","received_events_url":"https://api.github.com/users/dgolovin/received_events","type":"User","site_admin":false}],"milestone":{"url":"https://api.github.com/repos/redhat-developer/vscode-openshift-tools/milestones/4","html_url":"https://github.com/redhat-developer/vscode-openshift-tools/milestone/4","labels_url":"https://api.github.com/repos/redhat-developer/vscode-openshift-tools/milestones/4/labels","id":3675857,"node_id":"MDk6TWlsZXN0b25lMzY3NTg1Nw==","number":4,"title":"devex #156","description":"","creator":{"login":"dgolovin","id":620330,"node_id":"MDQ6VXNlcjYyMDMzMA==","avatar_url":"https://avatars1.githubusercontent.com/u/620330?v=4","gravatar_id":"","url":"https://api.github.com/users/dgolovin","html_url":"https://github.com/dgolovin","followers_url":"https://api.github.com/users/dgolovin/followers","following_url":"https://api.github.com/users/dgolovin/following{/other_user}","gists_url":"https://api.github.com/users/dgolovin/gists{/gist_id}","starred_url":"https://api.github.com/users/dgolovin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dgolovin/subscriptions","organizations_url":"https://api.github.com/users/dgolovin/orgs","repos_url":"https://api.github.com/users/dgolovin/repos","events_url":"https://api.github.com/users/dgolovin/events{/privacy}","received_events_url":"https://api.github.com/users/dgolovin/received_events","type":"User","site_admin":false},"open_issues":14,"closed_issues":0,"state":"open","created_at":"2018-09-20T20:23:22Z","updated_at":"2018-10-03T06:56:25Z","due_on":"2018-10-23T07:00:00Z","closed_at":null},"comments":0,"created_at":"2018-10-03T06:56:25Z","updated_at":"2018-10-03T06:56:25Z","closed_at":null,"author_association":"COLLABORATOR","body":"This happens because deleting project in openshift is long running operation that is not finished when `odo project delete` exits. Instead project's status first moved to `Terminating` phase and only after that project disappears from `oc get project' list of projects.\r\n\r\nHere is an example of yaml configuration tor project resource in `terminating` phase:\r\n``` yaml\r\noc.exe get project -o json --watch-only\r\n{\r\n    \"kind\": \"Project\",\r\n    \"apiVersion\": \"v1\",\r\n    \"metadata\": {\r\n        \"name\": \"a1\",\r\n        \"selfLink\": \"/apis/project.openshift.io/v1/projects/a1\",\r\n        \"uid\": \"d57f94f1-c6d6-11e8-a3a5-080027c7413d\",\r\n        \"resourceVersion\": \"12957\",\r\n        \"creationTimestamp\": \"2018-10-03T06:37:44Z\",\r\n        \"deletionTimestamp\": \"2018-10-03T06:40:39Z\",\r\n        \"annotations\": {\r\n            \"openshift.io/description\": \"\",\r\n            \"openshift.io/display-name\": \"\",\r\n            \"openshift.io/requester\": \"developer\",\r\n            \"openshift.io/sa.scc.mcs\": \"s0:c12,c4\",\r\n            \"openshift.io/sa.scc.supplemental-groups\": \"1000140000/10000\",\r\n            \"openshift.io/sa.scc.uid-range\": \"1000140000/10000\"\r\n        }\r\n    },\r\n    \"spec\": {\r\n        \"finalizers\": [\r\n            \"kubernetes\"\r\n        ]\r\n    },\r\n    \"status\": {\r\n        \"phase\": \"Terminating\"\r\n    }\r\n}\r\n{\r\n    \"kind\": \"Project\",\r\n    \"apiVersion\": \"v1\",\r\n    \"metadata\": {\r\n        \"name\": \"a1\",\r\n        \"selfLink\": \"/apis/project.openshift.io/v1/projects/a1\",\r\n        \"creationTimestamp\": null\r\n    },\r\n    \"spec\": {},\r\n    \"status\": {}\r\n}\r\n```"}}
{"actor":{"display_login":"dgolovin"}}