{"action":"created","comment":{"url":"https://api.github.com/repos/theforeman/foreman/pulls/comments/226029036","pull_request_review_id":165753971,"id":226029036,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIyNjAyOTAzNg==","diff_hunk":"@@ -64,6 +64,21 @@ def token_expired?\n     def build_errors?\n       host && host.build_errors.present?\n     end\n+\n+    def remediation_help_text\n+      case host.build_status\n+        when PENDING\n+          N_(\"Installation haven't started yet or in progress\")\n+        when TOKEN_EXPIRED\n+          N_(\"Build token is no longer valid, cancel build mode and enter it again to generate a new token\")\n+         when BUILT\n+          N_(\"OS installer reported end of installation and rebooted the system\")","path":"app/models/host_status/build_status.rb","position":12,"original_position":12,"commit_id":"4dff5891fa17393b4fccc08d4d6d566f41160eb8","original_commit_id":"4dff5891fa17393b4fccc08d4d6d566f41160eb8","user":{"login":"houndci-bot","id":6697940,"node_id":"MDQ6VXNlcjY2OTc5NDA=","avatar_url":"https://avatars0.githubusercontent.com/u/6697940?v=4","gravatar_id":"","url":"https://api.github.com/users/houndci-bot","html_url":"https://github.com/houndci-bot","followers_url":"https://api.github.com/users/houndci-bot/followers","following_url":"https://api.github.com/users/houndci-bot/following{/other_user}","gists_url":"https://api.github.com/users/houndci-bot/gists{/gist_id}","starred_url":"https://api.github.com/users/houndci-bot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/houndci-bot/subscriptions","organizations_url":"https://api.github.com/users/houndci-bot/orgs","repos_url":"https://api.github.com/users/houndci-bot/repos","events_url":"https://api.github.com/users/houndci-bot/events{/privacy}","received_events_url":"https://api.github.com/users/houndci-bot/received_events","type":"User","site_admin":false},"body":"Layout/IndentationWidth: Use 2 (not 1) spaces for indentation.","created_at":"2018-10-17T17:39:53Z","updated_at":"2018-10-17T17:39:53Z","html_url":"https://github.com/theforeman/foreman/pull/6135#discussion_r226029036","pull_request_url":"https://api.github.com/repos/theforeman/foreman/pulls/6135","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/theforeman/foreman/pulls/comments/226029036"},"html":{"href":"https://github.com/theforeman/foreman/pull/6135#discussion_r226029036"},"pull_request":{"href":"https://api.github.com/repos/theforeman/foreman/pulls/6135"}}},"pull_request":{"url":"https://api.github.com/repos/theforeman/foreman/pulls/6135","id":222601488,"node_id":"MDExOlB1bGxSZXF1ZXN0MjIyNjAxNDg4","html_url":"https://github.com/theforeman/foreman/pull/6135","diff_url":"https://github.com/theforeman/foreman/pull/6135.diff","patch_url":"https://github.com/theforeman/foreman/pull/6135.patch","issue_url":"https://api.github.com/repos/theforeman/foreman/issues/6135","number":6135,"state":"open","locked":false,"title":"Fixes #23699 - Remediation Support for Host Status","user":{"login":"akshay-mendhe","id":24548539,"node_id":"MDQ6VXNlcjI0NTQ4NTM5","avatar_url":"https://avatars0.githubusercontent.com/u/24548539?v=4","gravatar_id":"","url":"https://api.github.com/users/akshay-mendhe","html_url":"https://github.com/akshay-mendhe","followers_url":"https://api.github.com/users/akshay-mendhe/followers","following_url":"https://api.github.com/users/akshay-mendhe/following{/other_user}","gists_url":"https://api.github.com/users/akshay-mendhe/gists{/gist_id}","starred_url":"https://api.github.com/users/akshay-mendhe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/akshay-mendhe/subscriptions","organizations_url":"https://api.github.com/users/akshay-mendhe/orgs","repos_url":"https://api.github.com/users/akshay-mendhe/repos","events_url":"https://api.github.com/users/akshay-mendhe/events{/privacy}","received_events_url":"https://api.github.com/users/akshay-mendhe/received_events","type":"User","site_admin":false},"body":"Hello, I am just confused about what text should we display when the status is \"pending installation\" or \"installation error\", as the case may have variety of solutions. Also in case of \"Token expired\", we can show cancel build and regenerate token again but if same host renders Token expired for many times, then we can tell user to create a new host instead, isn't it?","created_at":"2018-10-12T22:27:47Z","updated_at":"2018-10-17T17:39:53Z","closed_at":null,"merged_at":null,"merge_commit_sha":"8989cefc616408a4fc997f6e822d7560d19d96fe","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[{"id":79040160,"node_id":"MDU6TGFiZWw3OTA0MDE2MA==","url":"https://api.github.com/repos/theforeman/foreman/labels/Needs%20re-review","name":"Needs re-review","color":"0052cc","default":false},{"id":79040689,"node_id":"MDU6TGFiZWw3OTA0MDY4OQ==","url":"https://api.github.com/repos/theforeman/foreman/labels/Needs%20testing","name":"Needs testing","color":"fbca04","default":false}],"milestone":null,"commits_url":"https://api.github.com/repos/theforeman/foreman/pulls/6135/commits","review_comments_url":"https://api.github.com/repos/theforeman/foreman/pulls/6135/comments","review_comment_url":"https://api.github.com/repos/theforeman/foreman/pulls/comments{/number}","comments_url":"https://api.github.com/repos/theforeman/foreman/issues/6135/comments","statuses_url":"https://api.github.com/repos/theforeman/foreman/statuses/4dff5891fa17393b4fccc08d4d6d566f41160eb8","head":{"label":"akshay-mendhe:remediation_support_host_status","ref":"remediation_support_host_status","sha":"4dff5891fa17393b4fccc08d4d6d566f41160eb8","user":{"login":"akshay-mendhe","id":24548539,"node_id":"MDQ6VXNlcjI0NTQ4NTM5","avatar_url":"https://avatars0.githubusercontent.com/u/24548539?v=4","gravatar_id":"","url":"https://api.github.com/users/akshay-mendhe","html_url":"https://github.com/akshay-mendhe","followers_url":"https://api.github.com/users/akshay-mendhe/followers","following_url":"https://api.github.com/users/akshay-mendhe/following{/other_user}","gists_url":"https://api.github.com/users/akshay-mendhe/gists{/gist_id}","starred_url":"https://api.github.com/users/akshay-mendhe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/akshay-mendhe/subscriptions","organizations_url":"https://api.github.com/users/akshay-mendhe/orgs","repos_url":"https://api.github.com/users/akshay-mendhe/repos","events_url":"https://api.github.com/users/akshay-mendhe/events{/privacy}","received_events_url":"https://api.github.com/users/akshay-mendhe/received_events","type":"User","site_admin":false},"repo":{"id":144155887,"node_id":"MDEwOlJlcG9zaXRvcnkxNDQxNTU4ODc=","name":"foreman","full_name":"akshay-mendhe/foreman","private":false,"owner":{"login":"akshay-mendhe","id":24548539,"node_id":"MDQ6VXNlcjI0NTQ4NTM5","avatar_url":"https://avatars0.githubusercontent.com/u/24548539?v=4","gravatar_id":"","url":"https://api.github.com/users/akshay-mendhe","html_url":"https://github.com/akshay-mendhe","followers_url":"https://api.github.com/users/akshay-mendhe/followers","following_url":"https://api.github.com/users/akshay-mendhe/following{/other_user}","gists_url":"https://api.github.com/users/akshay-mendhe/gists{/gist_id}","starred_url":"https://api.github.com/users/akshay-mendhe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/akshay-mendhe/subscriptions","organizations_url":"https://api.github.com/users/akshay-mendhe/orgs","repos_url":"https://api.github.com/users/akshay-mendhe/repos","events_url":"https://api.github.com/users/akshay-mendhe/events{/privacy}","received_events_url":"https://api.github.com/users/akshay-mendhe/received_events","type":"User","site_admin":false},"html_url":"https://github.com/akshay-mendhe/foreman","description":"an application that automates the lifecycle of servers ","fork":true,"url":"https://api.github.com/repos/akshay-mendhe/foreman","forks_url":"https://api.github.com/repos/akshay-mendhe/foreman/forks","keys_url":"https://api.github.com/repos/akshay-mendhe/foreman/keys{/key_id}","collaborators_url":"https://api.github.com/repos/akshay-mendhe/foreman/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/akshay-mendhe/foreman/teams","hooks_url":"https://api.github.com/repos/akshay-mendhe/foreman/hooks","issue_events_url":"https://api.github.com/repos/akshay-mendhe/foreman/issues/events{/number}","events_url":"https://api.github.com/repos/akshay-mendhe/foreman/events","assignees_url":"https://api.github.com/repos/akshay-mendhe/foreman/assignees{/user}","branches_url":"https://api.github.com/repos/akshay-mendhe/foreman/branches{/branch}","tags_url":"https://api.github.com/repos/akshay-mendhe/foreman/tags","blobs_url":"https://api.github.com/repos/akshay-mendhe/foreman/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/akshay-mendhe/foreman/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/akshay-mendhe/foreman/git/refs{/sha}","trees_url":"https://api.github.com/repos/akshay-mendhe/foreman/git/trees{/sha}","statuses_url":"https://api.github.com/repos/akshay-mendhe/foreman/statuses/{sha}","languages_url":"https://api.github.com/repos/akshay-mendhe/foreman/languages","stargazers_url":"https://api.github.com/repos/akshay-mendhe/foreman/stargazers","contributors_url":"https://api.github.com/repos/akshay-mendhe/foreman/contributors","subscribers_url":"https://api.github.com/repos/akshay-mendhe/foreman/subscribers","subscription_url":"https://api.github.com/repos/akshay-mendhe/foreman/subscription","commits_url":"https://api.github.com/repos/akshay-mendhe/foreman/commits{/sha}","git_commits_url":"https://api.github.com/repos/akshay-mendhe/foreman/git/commits{/sha}","comments_url":"https://api.github.com/repos/akshay-mendhe/foreman/comments{/number}","issue_comment_url":"https://api.github.com/repos/akshay-mendhe/foreman/issues/comments{/number}","contents_url":"https://api.github.com/repos/akshay-mendhe/foreman/contents/{+path}","compare_url":"https://api.github.com/repos/akshay-mendhe/foreman/compare/{base}...{head}","merges_url":"https://api.github.com/repos/akshay-mendhe/foreman/merges","archive_url":"https://api.github.com/repos/akshay-mendhe/foreman/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/akshay-mendhe/foreman/downloads","issues_url":"https://api.github.com/repos/akshay-mendhe/foreman/issues{/number}","pulls_url":"https://api.github.com/repos/akshay-mendhe/foreman/pulls{/number}","milestones_url":"https://api.github.com/repos/akshay-mendhe/foreman/milestones{/number}","notifications_url":"https://api.github.com/repos/akshay-mendhe/foreman/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/akshay-mendhe/foreman/labels{/name}","releases_url":"https://api.github.com/repos/akshay-mendhe/foreman/releases{/id}","deployments_url":"https://api.github.com/repos/akshay-mendhe/foreman/deployments","created_at":"2018-08-09T13:24:50Z","updated_at":"2018-10-16T10:44:28Z","pushed_at":"2018-10-17T17:39:37Z","git_url":"git://github.com/akshay-mendhe/foreman.git","ssh_url":"git@github.com:akshay-mendhe/foreman.git","clone_url":"https://github.com/akshay-mendhe/foreman.git","svn_url":"https://github.com/akshay-mendhe/foreman","homepage":"http://theforeman.org","size":79615,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":false,"has_projects":true,"has_downloads":false,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"gpl-3.0","name":"GNU General Public License v3.0","spdx_id":"GPL-3.0","url":"https://api.github.com/licenses/gpl-3.0","node_id":"MDc6TGljZW5zZTk="},"forks":0,"open_issues":0,"watchers":0,"default_branch":"develop"}},"base":{"label":"theforeman:develop","ref":"develop","sha":"9ccfbde5c417ed466b21c997d01d4608cc4e8c57","user":{"login":"theforeman","id":1439844,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE0Mzk4NDQ=","avatar_url":"https://avatars2.githubusercontent.com/u/1439844?v=4","gravatar_id":"","url":"https://api.github.com/users/theforeman","html_url":"https://github.com/theforeman","followers_url":"https://api.github.com/users/theforeman/followers","following_url":"https://api.github.com/users/theforeman/following{/other_user}","gists_url":"https://api.github.com/users/theforeman/gists{/gist_id}","starred_url":"https://api.github.com/users/theforeman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/theforeman/subscriptions","organizations_url":"https://api.github.com/users/theforeman/orgs","repos_url":"https://api.github.com/users/theforeman/repos","events_url":"https://api.github.com/users/theforeman/events{/privacy}","received_events_url":"https://api.github.com/users/theforeman/received_events","type":"Organization","site_admin":false},"repo":{"id":258750,"node_id":"MDEwOlJlcG9zaXRvcnkyNTg3NTA=","name":"foreman","full_name":"theforeman/foreman","private":false,"owner":{"login":"theforeman","id":1439844,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE0Mzk4NDQ=","avatar_url":"https://avatars2.githubusercontent.com/u/1439844?v=4","gravatar_id":"","url":"https://api.github.com/users/theforeman","html_url":"https://github.com/theforeman","followers_url":"https://api.github.com/users/theforeman/followers","following_url":"https://api.github.com/users/theforeman/following{/other_user}","gists_url":"https://api.github.com/users/theforeman/gists{/gist_id}","starred_url":"https://api.github.com/users/theforeman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/theforeman/subscriptions","organizations_url":"https://api.github.com/users/theforeman/orgs","repos_url":"https://api.github.com/users/theforeman/repos","events_url":"https://api.github.com/users/theforeman/events{/privacy}","received_events_url":"https://api.github.com/users/theforeman/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/theforeman/foreman","description":"an application that automates the lifecycle of servers ","fork":false,"url":"https://api.github.com/repos/theforeman/foreman","forks_url":"https://api.github.com/repos/theforeman/foreman/forks","keys_url":"https://api.github.com/repos/theforeman/foreman/keys{/key_id}","collaborators_url":"https://api.github.com/repos/theforeman/foreman/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/theforeman/foreman/teams","hooks_url":"https://api.github.com/repos/theforeman/foreman/hooks","issue_events_url":"https://api.github.com/repos/theforeman/foreman/issues/events{/number}","events_url":"https://api.github.com/repos/theforeman/foreman/events","assignees_url":"https://api.github.com/repos/theforeman/foreman/assignees{/user}","branches_url":"https://api.github.com/repos/theforeman/foreman/branches{/branch}","tags_url":"https://api.github.com/repos/theforeman/foreman/tags","blobs_url":"https://api.github.com/repos/theforeman/foreman/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/theforeman/foreman/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/theforeman/foreman/git/refs{/sha}","trees_url":"https://api.github.com/repos/theforeman/foreman/git/trees{/sha}","statuses_url":"https://api.github.com/repos/theforeman/foreman/statuses/{sha}","languages_url":"https://api.github.com/repos/theforeman/foreman/languages","stargazers_url":"https://api.github.com/repos/theforeman/foreman/stargazers","contributors_url":"https://api.github.com/repos/theforeman/foreman/contributors","subscribers_url":"https://api.github.com/repos/theforeman/foreman/subscribers","subscription_url":"https://api.github.com/repos/theforeman/foreman/subscription","commits_url":"https://api.github.com/repos/theforeman/foreman/commits{/sha}","git_commits_url":"https://api.github.com/repos/theforeman/foreman/git/commits{/sha}","comments_url":"https://api.github.com/repos/theforeman/foreman/comments{/number}","issue_comment_url":"https://api.github.com/repos/theforeman/foreman/issues/comments{/number}","contents_url":"https://api.github.com/repos/theforeman/foreman/contents/{+path}","compare_url":"https://api.github.com/repos/theforeman/foreman/compare/{base}...{head}","merges_url":"https://api.github.com/repos/theforeman/foreman/merges","archive_url":"https://api.github.com/repos/theforeman/foreman/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/theforeman/foreman/downloads","issues_url":"https://api.github.com/repos/theforeman/foreman/issues{/number}","pulls_url":"https://api.github.com/repos/theforeman/foreman/pulls{/number}","milestones_url":"https://api.github.com/repos/theforeman/foreman/milestones{/number}","notifications_url":"https://api.github.com/repos/theforeman/foreman/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/theforeman/foreman/labels{/name}","releases_url":"https://api.github.com/repos/theforeman/foreman/releases{/id}","deployments_url":"https://api.github.com/repos/theforeman/foreman/deployments","created_at":"2009-07-23T15:07:00Z","updated_at":"2018-10-17T08:31:39Z","pushed_at":"2018-10-17T17:39:40Z","git_url":"git://github.com/theforeman/foreman.git","ssh_url":"git@github.com:theforeman/foreman.git","clone_url":"https://github.com/theforeman/foreman.git","svn_url":"https://github.com/theforeman/foreman","homepage":"http://theforeman.org","size":82791,"stargazers_count":1523,"watchers_count":1523,"language":"Ruby","has_issues":false,"has_projects":true,"has_downloads":false,"has_wiki":false,"has_pages":true,"forks_count":761,"mirror_url":null,"archived":false,"open_issues_count":113,"license":{"key":"gpl-3.0","name":"GNU General Public License v3.0","spdx_id":"GPL-3.0","url":"https://api.github.com/licenses/gpl-3.0","node_id":"MDc6TGljZW5zZTk="},"forks":761,"open_issues":113,"watchers":1523,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/theforeman/foreman/pulls/6135"},"html":{"href":"https://github.com/theforeman/foreman/pull/6135"},"issue":{"href":"https://api.github.com/repos/theforeman/foreman/issues/6135"},"comments":{"href":"https://api.github.com/repos/theforeman/foreman/issues/6135/comments"},"review_comments":{"href":"https://api.github.com/repos/theforeman/foreman/pulls/6135/comments"},"review_comment":{"href":"https://api.github.com/repos/theforeman/foreman/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/theforeman/foreman/pulls/6135/commits"},"statuses":{"href":"https://api.github.com/repos/theforeman/foreman/statuses/4dff5891fa17393b4fccc08d4d6d566f41160eb8"}},"author_association":"MEMBER"}}
{"actor":{"display_login":"houndci-bot"}}