{"action":"created","issue":{"url":"https://api.github.com/repos/theforeman/foreman/issues/4717","repository_url":"https://api.github.com/repos/theforeman/foreman","labels_url":"https://api.github.com/repos/theforeman/foreman/issues/4717/labels{/name}","comments_url":"https://api.github.com/repos/theforeman/foreman/issues/4717/comments","events_url":"https://api.github.com/repos/theforeman/foreman/issues/4717/events","html_url":"https://github.com/theforeman/foreman/pull/4717","id":247762998,"number":4717,"title":"Fixes #20499 - Import ConfigReports asynchronously","user":{"login":"dLobatog","id":598891,"avatar_url":"https://avatars2.githubusercontent.com/u/598891?v=4","gravatar_id":"","url":"https://api.github.com/users/dLobatog","html_url":"https://github.com/dLobatog","followers_url":"https://api.github.com/users/dLobatog/followers","following_url":"https://api.github.com/users/dLobatog/following{/other_user}","gists_url":"https://api.github.com/users/dLobatog/gists{/gist_id}","starred_url":"https://api.github.com/users/dLobatog/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dLobatog/subscriptions","organizations_url":"https://api.github.com/users/dLobatog/orgs","repos_url":"https://api.github.com/users/dLobatog/repos","events_url":"https://api.github.com/users/dLobatog/events{/privacy}","received_events_url":"https://api.github.com/users/dLobatog/received_events","type":"User","site_admin":false},"labels":[{"id":79040689,"url":"https://api.github.com/repos/theforeman/foreman/labels/Needs%20testing","name":"Needs testing","color":"fbca04","default":false},{"id":79040085,"url":"https://api.github.com/repos/theforeman/foreman/labels/Not%20yet%20reviewed","name":"Not yet reviewed","color":"009800","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2017-08-03T16:24:53Z","updated_at":"2017-08-11T11:13:26Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/theforeman/foreman/pulls/4717","html_url":"https://github.com/theforeman/foreman/pull/4717","diff_url":"https://github.com/theforeman/foreman/pull/4717.diff","patch_url":"https://github.com/theforeman/foreman/pull/4717.patch"},"body":"Moves the content of the POST calls to create a report to an\r\nasynchronous job to be run by the ActiveJob executor (Dynflow by\r\ndefault).\r\n\r\nSomething like this is what's logged when a report is imported.\r\n\r\n```\r\n2017-08-03T15:14:40  [app] [I] processing report for lenovolobato.lobatolan.home\r\n2017-08-03T15:14:40  [app] [D] Report: {\"reported_at\"=>\"2017-08-03 17:14:39 594274\", \"metrics\"=>{\"time\"=>{\"total\"=>0, \"_aj_hash_with_indifferent_access\"=>true}, \"_aj_hash_with_indifferent_access\"=>true}, \"host\"=>\"lenovolobato.lobatolan.home\", \"status\"=>{\"applied\"=>0, \"failed\"=>1, \"skipped\"=>0, \"_aj_hash_with_indifferent_access\"=>true}, \"logs\"=>[{\"log\"=>{\"sources\"=>{\"source\"=>\"Gathering Facts\", \"_aj_hash_with_indifferent_access\"=>true}, \"messages\"=>{\"message\"=>\"{\\\"msg\\\": \\\"Failed to connect to the host via ssh: ssh: connect to host lenovolobato.lobatolan.home port 22: Connection refused\\\\r\\\\n\\\", \\\"unreachable\\\": true, \\\"changed\\\": false}\", \"_aj_hash_with_indifferent_access\"=>true}, \"level\"=>\"info\", \"_aj_hash_with_indifferent_access\"=>true}, \"_aj_hash_with_indifferent_access\"=>true}], \"_aj_hash_with_indifferent_access\"=>true}\r\n2017-08-03T15:14:40 4985e809 [dynflow] [D] ExecutionPlan d4d5e0f6-2c85-43e0-bf87-cb28d7d24bda      pending >>  planning\r\n2017-08-03T15:14:40  [permissions] [D] verifying the transaction by permission edit_hosts for class Host::Managed\r\n2017-08-03T15:14:40  [app] [I] Performed ImportConfigReport from Dynflow(default) in 161.41ms\r\n```"},"comment":{"url":"https://api.github.com/repos/theforeman/foreman/issues/comments/321786041","html_url":"https://github.com/theforeman/foreman/pull/4717#issuecomment-321786041","issue_url":"https://api.github.com/repos/theforeman/foreman/issues/4717","id":321786041,"user":{"login":"lzap","id":49752,"avatar_url":"https://avatars0.githubusercontent.com/u/49752?v=4","gravatar_id":"","url":"https://api.github.com/users/lzap","html_url":"https://github.com/lzap","followers_url":"https://api.github.com/users/lzap/followers","following_url":"https://api.github.com/users/lzap/following{/other_user}","gists_url":"https://api.github.com/users/lzap/gists{/gist_id}","starred_url":"https://api.github.com/users/lzap/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lzap/subscriptions","organizations_url":"https://api.github.com/users/lzap/orgs","repos_url":"https://api.github.com/users/lzap/repos","events_url":"https://api.github.com/users/lzap/events{/privacy}","received_events_url":"https://api.github.com/users/lzap/received_events","type":"User","site_admin":false},"created_at":"2017-08-11T11:13:26Z","updated_at":"2017-08-11T11:13:26Z","body":"We should start actively monitoring queue length, this can easily grow."}}
{"actor":{"display_login":"lzap"}}