{"action":"created","issue":{"url":"https://api.github.com/repos/ManageIQ/manageiq/issues/10308","repository_url":"https://api.github.com/repos/ManageIQ/manageiq","labels_url":"https://api.github.com/repos/ManageIQ/manageiq/issues/10308/labels{/name}","comments_url":"https://api.github.com/repos/ManageIQ/manageiq/issues/10308/comments","events_url":"https://api.github.com/repos/ManageIQ/manageiq/issues/10308/events","html_url":"https://github.com/ManageIQ/manageiq/pull/10308","id":169900443,"number":10308,"title":"Handle gracefully missing number_of nil","user":{"login":"Ladas","id":1737058,"avatar_url":"https://avatars.githubusercontent.com/u/1737058?v=3","gravatar_id":"","url":"https://api.github.com/users/Ladas","html_url":"https://github.com/Ladas","followers_url":"https://api.github.com/users/Ladas/followers","following_url":"https://api.github.com/users/Ladas/following{/other_user}","gists_url":"https://api.github.com/users/Ladas/gists{/gist_id}","starred_url":"https://api.github.com/users/Ladas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Ladas/subscriptions","organizations_url":"https://api.github.com/users/Ladas/orgs","repos_url":"https://api.github.com/users/Ladas/repos","events_url":"https://api.github.com/users/Ladas/events{/privacy}","received_events_url":"https://api.github.com/users/Ladas/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/ManageIQ/manageiq/labels/bug","name":"bug","color":"fc2929"},{"url":"https://api.github.com/repos/ManageIQ/manageiq/labels/core","name":"core","color":"5319e7"}],"state":"open","locked":false,"assignee":{"login":"gtanzillo","id":76593,"avatar_url":"https://avatars.githubusercontent.com/u/76593?v=3","gravatar_id":"","url":"https://api.github.com/users/gtanzillo","html_url":"https://github.com/gtanzillo","followers_url":"https://api.github.com/users/gtanzillo/followers","following_url":"https://api.github.com/users/gtanzillo/following{/other_user}","gists_url":"https://api.github.com/users/gtanzillo/gists{/gist_id}","starred_url":"https://api.github.com/users/gtanzillo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gtanzillo/subscriptions","organizations_url":"https://api.github.com/users/gtanzillo/orgs","repos_url":"https://api.github.com/users/gtanzillo/repos","events_url":"https://api.github.com/users/gtanzillo/events{/privacy}","received_events_url":"https://api.github.com/users/gtanzillo/received_events","type":"User","site_admin":false},"assignees":[{"login":"gtanzillo","id":76593,"avatar_url":"https://avatars.githubusercontent.com/u/76593?v=3","gravatar_id":"","url":"https://api.github.com/users/gtanzillo","html_url":"https://github.com/gtanzillo","followers_url":"https://api.github.com/users/gtanzillo/followers","following_url":"https://api.github.com/users/gtanzillo/following{/other_user}","gists_url":"https://api.github.com/users/gtanzillo/gists{/gist_id}","starred_url":"https://api.github.com/users/gtanzillo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gtanzillo/subscriptions","organizations_url":"https://api.github.com/users/gtanzillo/orgs","repos_url":"https://api.github.com/users/gtanzillo/repos","events_url":"https://api.github.com/users/gtanzillo/events{/privacy}","received_events_url":"https://api.github.com/users/gtanzillo/received_events","type":"User","site_admin":false}],"milestone":null,"comments":7,"created_at":"2016-08-08T11:23:37Z","updated_at":"2016-08-15T07:42:14Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/ManageIQ/manageiq/pulls/10308","html_url":"https://github.com/ManageIQ/manageiq/pull/10308","diff_url":"https://github.com/ManageIQ/manageiq/pull/10308.diff","patch_url":"https://github.com/ManageIQ/manageiq/pull/10308.patch"},"body":"Purpose or Intent\r\n-----------------\r\n\r\nWhen delegate object is nil and we compute number_of association, through that delegate, we should just return 0\r\n\r\nSteps for Testing/QA\r\n--------------------\r\n\r\nDelete NetworkManager and click through associated CloudManager, no error should be thrown. Optionally delete a CloudManager in DB and click through associated NetworkManager.\r\n\r\nFixes BZ:\r\nhttps://bugzilla.redhat.com/show_bug.cgi?id=1364458"},"comment":{"url":"https://api.github.com/repos/ManageIQ/manageiq/issues/comments/239745845","html_url":"https://github.com/ManageIQ/manageiq/pull/10308#issuecomment-239745845","issue_url":"https://api.github.com/repos/ManageIQ/manageiq/issues/10308","id":239745845,"user":{"login":"Ladas","id":1737058,"avatar_url":"https://avatars.githubusercontent.com/u/1737058?v=3","gravatar_id":"","url":"https://api.github.com/users/Ladas","html_url":"https://github.com/Ladas","followers_url":"https://api.github.com/users/Ladas/followers","following_url":"https://api.github.com/users/Ladas/following{/other_user}","gists_url":"https://api.github.com/users/Ladas/gists{/gist_id}","starred_url":"https://api.github.com/users/Ladas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Ladas/subscriptions","organizations_url":"https://api.github.com/users/Ladas/orgs","repos_url":"https://api.github.com/users/Ladas/repos","events_url":"https://api.github.com/users/Ladas/events{/privacy}","received_events_url":"https://api.github.com/users/Ladas/received_events","type":"User","site_admin":false},"created_at":"2016-08-15T07:42:14Z","updated_at":"2016-08-15T07:42:14Z","body":"@kbrock possibly, seems like we are doing a similar call here https://github.com/Ladas/manageiq/blob/e6c1a5be2882a131bae78ea7b94c5e9aa35c8557/app/models/mixins/virtual_total_mixin.rb#L19-L19\r\n"}}
{"actor":{"display_login":"Ladas"}}