{"action":"created","comment":{"url":"https://api.github.com/repos/kubeapps/kubeapps/pulls/comments/209937169","pull_request_review_id":146044520,"id":209937169,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIwOTkzNzE2OQ==","diff_hunk":"@@ -28,19 +28,23 @@ class AppControls extends React.Component<IAppControlsProps, IAppControlsState>\n \n   public render() {\n     const { name, namespace } = this.props.app;\n+    const deleted = this.props.app.info && this.props.app.info.deleted;\n     if (!name || !namespace) {\n       return <div> Loading </div>;\n     }\n     return (\n       <div className=\"AppControls\">\n-        <button className=\"button\" onClick={this.handleUpgradeClick}>\n-          Upgrade\n-        </button>\n+        {/* If the app has been deleted hide the upgrade button */}\n+        {!deleted && (\n+          <button className=\"button\" onClick={this.handleUpgradeClick}>\n+            Upgrade\n+          </button>\n+        )}\n         {this.state.upgrade && (\n           <Redirect push={true} to={`/apps/ns/${namespace}/upgrade/${name}`} />\n         )}\n         <button className=\"button button-danger\" onClick={this.openModel}>\n-          Delete\n+          {deleted ? \"Purge\" : \"Delete\"}","path":"dashboard/src/components/AppView/AppControls.tsx","position":24,"original_position":24,"commit_id":"a0e209b5223b82a20c2aa8cb77d2137e3c4da3f5","original_commit_id":"a0e209b5223b82a20c2aa8cb77d2137e3c4da3f5","user":{"login":"andresmgot","id":4025665,"node_id":"MDQ6VXNlcjQwMjU2NjU=","avatar_url":"https://avatars0.githubusercontent.com/u/4025665?v=4","gravatar_id":"","url":"https://api.github.com/users/andresmgot","html_url":"https://github.com/andresmgot","followers_url":"https://api.github.com/users/andresmgot/followers","following_url":"https://api.github.com/users/andresmgot/following{/other_user}","gists_url":"https://api.github.com/users/andresmgot/gists{/gist_id}","starred_url":"https://api.github.com/users/andresmgot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andresmgot/subscriptions","organizations_url":"https://api.github.com/users/andresmgot/orgs","repos_url":"https://api.github.com/users/andresmgot/repos","events_url":"https://api.github.com/users/andresmgot/events{/privacy}","received_events_url":"https://api.github.com/users/andresmgot/received_events","type":"User","site_admin":false},"body":"yes, I agree with @prydonius. I think that using `Purge` always is unnecessary verbose (and a bit confusing if a user see this changing).","created_at":"2018-08-14T12:48:53Z","updated_at":"2018-08-14T12:58:23Z","html_url":"https://github.com/kubeapps/kubeapps/pull/460#discussion_r209937169","pull_request_url":"https://api.github.com/repos/kubeapps/kubeapps/pulls/460","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/kubeapps/kubeapps/pulls/comments/209937169"},"html":{"href":"https://github.com/kubeapps/kubeapps/pull/460#discussion_r209937169"},"pull_request":{"href":"https://api.github.com/repos/kubeapps/kubeapps/pulls/460"}},"in_reply_to_id":209797759},"pull_request":{"url":"https://api.github.com/repos/kubeapps/kubeapps/pulls/460","id":207305179,"node_id":"MDExOlB1bGxSZXF1ZXN0MjA3MzA1MTc5","html_url":"https://github.com/kubeapps/kubeapps/pull/460","diff_url":"https://github.com/kubeapps/kubeapps/pull/460.diff","patch_url":"https://github.com/kubeapps/kubeapps/pull/460.patch","issue_url":"https://api.github.com/repos/kubeapps/kubeapps/issues/460","number":460,"state":"open","locked":false,"title":"Report Application status","user":{"login":"andresmgot","id":4025665,"node_id":"MDQ6VXNlcjQwMjU2NjU=","avatar_url":"https://avatars0.githubusercontent.com/u/4025665?v=4","gravatar_id":"","url":"https://api.github.com/users/andresmgot","html_url":"https://github.com/andresmgot","followers_url":"https://api.github.com/users/andresmgot/followers","following_url":"https://api.github.com/users/andresmgot/following{/other_user}","gists_url":"https://api.github.com/users/andresmgot/gists{/gist_id}","starred_url":"https://api.github.com/users/andresmgot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andresmgot/subscriptions","organizations_url":"https://api.github.com/users/andresmgot/orgs","repos_url":"https://api.github.com/users/andresmgot/repos","events_url":"https://api.github.com/users/andresmgot/events{/privacy}","received_events_url":"https://api.github.com/users/andresmgot/received_events","type":"User","site_admin":false},"body":"Fixes #436 \r\n\r\nReport the status of the release both in the the `AppList` view and `AppView`. If the application has been deleted (but not purged) hide control buttons:\r\n\r\n<img width=\"1269\" alt=\"screen shot 2018-08-13 at 15 17 40\" src=\"https://user-images.githubusercontent.com/4025665/44034383-44ce89f4-9f0d-11e8-96ce-859aedd7d978.png\">\r\n\r\n<img width=\"1263\" alt=\"screen shot 2018-08-13 at 15 18 15\" src=\"https://user-images.githubusercontent.com/4025665/44034392-489350a6-9f0d-11e8-9cd0-b4623004e52c.png\">\r\n ","created_at":"2018-08-09T12:50:14Z","updated_at":"2018-08-14T12:58:23Z","closed_at":null,"merged_at":null,"merge_commit_sha":"16d48613c9b3714b186562312487b42c46f21361","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/kubeapps/kubeapps/pulls/460/commits","review_comments_url":"https://api.github.com/repos/kubeapps/kubeapps/pulls/460/comments","review_comment_url":"https://api.github.com/repos/kubeapps/kubeapps/pulls/comments{/number}","comments_url":"https://api.github.com/repos/kubeapps/kubeapps/issues/460/comments","statuses_url":"https://api.github.com/repos/kubeapps/kubeapps/statuses/a0e209b5223b82a20c2aa8cb77d2137e3c4da3f5","head":{"label":"andresmgot:deletedApps","ref":"deletedApps","sha":"a0e209b5223b82a20c2aa8cb77d2137e3c4da3f5","user":{"login":"andresmgot","id":4025665,"node_id":"MDQ6VXNlcjQwMjU2NjU=","avatar_url":"https://avatars0.githubusercontent.com/u/4025665?v=4","gravatar_id":"","url":"https://api.github.com/users/andresmgot","html_url":"https://github.com/andresmgot","followers_url":"https://api.github.com/users/andresmgot/followers","following_url":"https://api.github.com/users/andresmgot/following{/other_user}","gists_url":"https://api.github.com/users/andresmgot/gists{/gist_id}","starred_url":"https://api.github.com/users/andresmgot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andresmgot/subscriptions","organizations_url":"https://api.github.com/users/andresmgot/orgs","repos_url":"https://api.github.com/users/andresmgot/repos","events_url":"https://api.github.com/users/andresmgot/events{/privacy}","received_events_url":"https://api.github.com/users/andresmgot/received_events","type":"User","site_admin":false},"repo":{"id":111571118,"node_id":"MDEwOlJlcG9zaXRvcnkxMTE1NzExMTg=","name":"installer","full_name":"andresmgot/installer","owner":{"login":"andresmgot","id":4025665,"node_id":"MDQ6VXNlcjQwMjU2NjU=","avatar_url":"https://avatars0.githubusercontent.com/u/4025665?v=4","gravatar_id":"","url":"https://api.github.com/users/andresmgot","html_url":"https://github.com/andresmgot","followers_url":"https://api.github.com/users/andresmgot/followers","following_url":"https://api.github.com/users/andresmgot/following{/other_user}","gists_url":"https://api.github.com/users/andresmgot/gists{/gist_id}","starred_url":"https://api.github.com/users/andresmgot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andresmgot/subscriptions","organizations_url":"https://api.github.com/users/andresmgot/orgs","repos_url":"https://api.github.com/users/andresmgot/repos","events_url":"https://api.github.com/users/andresmgot/events{/privacy}","received_events_url":"https://api.github.com/users/andresmgot/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/andresmgot/installer","description":null,"fork":true,"url":"https://api.github.com/repos/andresmgot/installer","forks_url":"https://api.github.com/repos/andresmgot/installer/forks","keys_url":"https://api.github.com/repos/andresmgot/installer/keys{/key_id}","collaborators_url":"https://api.github.com/repos/andresmgot/installer/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/andresmgot/installer/teams","hooks_url":"https://api.github.com/repos/andresmgot/installer/hooks","issue_events_url":"https://api.github.com/repos/andresmgot/installer/issues/events{/number}","events_url":"https://api.github.com/repos/andresmgot/installer/events","assignees_url":"https://api.github.com/repos/andresmgot/installer/assignees{/user}","branches_url":"https://api.github.com/repos/andresmgot/installer/branches{/branch}","tags_url":"https://api.github.com/repos/andresmgot/installer/tags","blobs_url":"https://api.github.com/repos/andresmgot/installer/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/andresmgot/installer/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/andresmgot/installer/git/refs{/sha}","trees_url":"https://api.github.com/repos/andresmgot/installer/git/trees{/sha}","statuses_url":"https://api.github.com/repos/andresmgot/installer/statuses/{sha}","languages_url":"https://api.github.com/repos/andresmgot/installer/languages","stargazers_url":"https://api.github.com/repos/andresmgot/installer/stargazers","contributors_url":"https://api.github.com/repos/andresmgot/installer/contributors","subscribers_url":"https://api.github.com/repos/andresmgot/installer/subscribers","subscription_url":"https://api.github.com/repos/andresmgot/installer/subscription","commits_url":"https://api.github.com/repos/andresmgot/installer/commits{/sha}","git_commits_url":"https://api.github.com/repos/andresmgot/installer/git/commits{/sha}","comments_url":"https://api.github.com/repos/andresmgot/installer/comments{/number}","issue_comment_url":"https://api.github.com/repos/andresmgot/installer/issues/comments{/number}","contents_url":"https://api.github.com/repos/andresmgot/installer/contents/{+path}","compare_url":"https://api.github.com/repos/andresmgot/installer/compare/{base}...{head}","merges_url":"https://api.github.com/repos/andresmgot/installer/merges","archive_url":"https://api.github.com/repos/andresmgot/installer/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/andresmgot/installer/downloads","issues_url":"https://api.github.com/repos/andresmgot/installer/issues{/number}","pulls_url":"https://api.github.com/repos/andresmgot/installer/pulls{/number}","milestones_url":"https://api.github.com/repos/andresmgot/installer/milestones{/number}","notifications_url":"https://api.github.com/repos/andresmgot/installer/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/andresmgot/installer/labels{/name}","releases_url":"https://api.github.com/repos/andresmgot/installer/releases{/id}","deployments_url":"https://api.github.com/repos/andresmgot/installer/deployments","created_at":"2017-11-21T16:04:30Z","updated_at":"2017-11-21T16:04:32Z","pushed_at":"2018-08-14T11:32:21Z","git_url":"git://github.com/andresmgot/installer.git","ssh_url":"git@github.com:andresmgot/installer.git","clone_url":"https://github.com/andresmgot/installer.git","svn_url":"https://github.com/andresmgot/installer","homepage":null,"size":37805,"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":"kubeapps:master","ref":"master","sha":"c874c1a53e2ff8f03b93337c0f9404a0dc093b4f","user":{"login":"kubeapps","id":32396354,"node_id":"MDEyOk9yZ2FuaXphdGlvbjMyMzk2MzU0","avatar_url":"https://avatars0.githubusercontent.com/u/32396354?v=4","gravatar_id":"","url":"https://api.github.com/users/kubeapps","html_url":"https://github.com/kubeapps","followers_url":"https://api.github.com/users/kubeapps/followers","following_url":"https://api.github.com/users/kubeapps/following{/other_user}","gists_url":"https://api.github.com/users/kubeapps/gists{/gist_id}","starred_url":"https://api.github.com/users/kubeapps/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kubeapps/subscriptions","organizations_url":"https://api.github.com/users/kubeapps/orgs","repos_url":"https://api.github.com/users/kubeapps/repos","events_url":"https://api.github.com/users/kubeapps/events{/privacy}","received_events_url":"https://api.github.com/users/kubeapps/received_events","type":"Organization","site_admin":false},"repo":{"id":107555654,"node_id":"MDEwOlJlcG9zaXRvcnkxMDc1NTU2NTQ=","name":"kubeapps","full_name":"kubeapps/kubeapps","owner":{"login":"kubeapps","id":32396354,"node_id":"MDEyOk9yZ2FuaXphdGlvbjMyMzk2MzU0","avatar_url":"https://avatars0.githubusercontent.com/u/32396354?v=4","gravatar_id":"","url":"https://api.github.com/users/kubeapps","html_url":"https://github.com/kubeapps","followers_url":"https://api.github.com/users/kubeapps/followers","following_url":"https://api.github.com/users/kubeapps/following{/other_user}","gists_url":"https://api.github.com/users/kubeapps/gists{/gist_id}","starred_url":"https://api.github.com/users/kubeapps/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kubeapps/subscriptions","organizations_url":"https://api.github.com/users/kubeapps/orgs","repos_url":"https://api.github.com/users/kubeapps/repos","events_url":"https://api.github.com/users/kubeapps/events{/privacy}","received_events_url":"https://api.github.com/users/kubeapps/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/kubeapps/kubeapps","description":"A web-based UI for deploying and managing applications in Kubernetes clusters","fork":false,"url":"https://api.github.com/repos/kubeapps/kubeapps","forks_url":"https://api.github.com/repos/kubeapps/kubeapps/forks","keys_url":"https://api.github.com/repos/kubeapps/kubeapps/keys{/key_id}","collaborators_url":"https://api.github.com/repos/kubeapps/kubeapps/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/kubeapps/kubeapps/teams","hooks_url":"https://api.github.com/repos/kubeapps/kubeapps/hooks","issue_events_url":"https://api.github.com/repos/kubeapps/kubeapps/issues/events{/number}","events_url":"https://api.github.com/repos/kubeapps/kubeapps/events","assignees_url":"https://api.github.com/repos/kubeapps/kubeapps/assignees{/user}","branches_url":"https://api.github.com/repos/kubeapps/kubeapps/branches{/branch}","tags_url":"https://api.github.com/repos/kubeapps/kubeapps/tags","blobs_url":"https://api.github.com/repos/kubeapps/kubeapps/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/kubeapps/kubeapps/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/kubeapps/kubeapps/git/refs{/sha}","trees_url":"https://api.github.com/repos/kubeapps/kubeapps/git/trees{/sha}","statuses_url":"https://api.github.com/repos/kubeapps/kubeapps/statuses/{sha}","languages_url":"https://api.github.com/repos/kubeapps/kubeapps/languages","stargazers_url":"https://api.github.com/repos/kubeapps/kubeapps/stargazers","contributors_url":"https://api.github.com/repos/kubeapps/kubeapps/contributors","subscribers_url":"https://api.github.com/repos/kubeapps/kubeapps/subscribers","subscription_url":"https://api.github.com/repos/kubeapps/kubeapps/subscription","commits_url":"https://api.github.com/repos/kubeapps/kubeapps/commits{/sha}","git_commits_url":"https://api.github.com/repos/kubeapps/kubeapps/git/commits{/sha}","comments_url":"https://api.github.com/repos/kubeapps/kubeapps/comments{/number}","issue_comment_url":"https://api.github.com/repos/kubeapps/kubeapps/issues/comments{/number}","contents_url":"https://api.github.com/repos/kubeapps/kubeapps/contents/{+path}","compare_url":"https://api.github.com/repos/kubeapps/kubeapps/compare/{base}...{head}","merges_url":"https://api.github.com/repos/kubeapps/kubeapps/merges","archive_url":"https://api.github.com/repos/kubeapps/kubeapps/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/kubeapps/kubeapps/downloads","issues_url":"https://api.github.com/repos/kubeapps/kubeapps/issues{/number}","pulls_url":"https://api.github.com/repos/kubeapps/kubeapps/pulls{/number}","milestones_url":"https://api.github.com/repos/kubeapps/kubeapps/milestones{/number}","notifications_url":"https://api.github.com/repos/kubeapps/kubeapps/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/kubeapps/kubeapps/labels{/name}","releases_url":"https://api.github.com/repos/kubeapps/kubeapps/releases{/id}","deployments_url":"https://api.github.com/repos/kubeapps/kubeapps/deployments","created_at":"2017-10-19T14:14:34Z","updated_at":"2018-08-14T12:55:26Z","pushed_at":"2018-08-14T11:32:23Z","git_url":"git://github.com/kubeapps/kubeapps.git","ssh_url":"git@github.com:kubeapps/kubeapps.git","clone_url":"https://github.com/kubeapps/kubeapps.git","svn_url":"https://github.com/kubeapps/kubeapps","homepage":"https://kubeapps.com","size":37708,"stargazers_count":429,"watchers_count":429,"language":"TypeScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":78,"mirror_url":null,"archived":false,"open_issues_count":73,"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":78,"open_issues":73,"watchers":429,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/kubeapps/kubeapps/pulls/460"},"html":{"href":"https://github.com/kubeapps/kubeapps/pull/460"},"issue":{"href":"https://api.github.com/repos/kubeapps/kubeapps/issues/460"},"comments":{"href":"https://api.github.com/repos/kubeapps/kubeapps/issues/460/comments"},"review_comments":{"href":"https://api.github.com/repos/kubeapps/kubeapps/pulls/460/comments"},"review_comment":{"href":"https://api.github.com/repos/kubeapps/kubeapps/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/kubeapps/kubeapps/pulls/460/commits"},"statuses":{"href":"https://api.github.com/repos/kubeapps/kubeapps/statuses/a0e209b5223b82a20c2aa8cb77d2137e3c4da3f5"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"andresmgot"}}