{"action":"created","issue":{"url":"https://api.github.com/repos/amcgowanca/discoverable_entity_bundle_classes/issues/9","repository_url":"https://api.github.com/repos/amcgowanca/discoverable_entity_bundle_classes","labels_url":"https://api.github.com/repos/amcgowanca/discoverable_entity_bundle_classes/issues/9/labels{/name}","comments_url":"https://api.github.com/repos/amcgowanca/discoverable_entity_bundle_classes/issues/9/comments","events_url":"https://api.github.com/repos/amcgowanca/discoverable_entity_bundle_classes/issues/9/events","html_url":"https://github.com/amcgowanca/discoverable_entity_bundle_classes/pull/9","id":375044351,"node_id":"MDExOlB1bGxSZXF1ZXN0MjI2NTgyMjMy","number":9,"title":"Call postLoad() hook by bundle #8","user":{"login":"simonbaese","id":13441546,"node_id":"MDQ6VXNlcjEzNDQxNTQ2","avatar_url":"https://avatars3.githubusercontent.com/u/13441546?v=4","gravatar_id":"","url":"https://api.github.com/users/simonbaese","html_url":"https://github.com/simonbaese","followers_url":"https://api.github.com/users/simonbaese/followers","following_url":"https://api.github.com/users/simonbaese/following{/other_user}","gists_url":"https://api.github.com/users/simonbaese/gists{/gist_id}","starred_url":"https://api.github.com/users/simonbaese/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/simonbaese/subscriptions","organizations_url":"https://api.github.com/users/simonbaese/orgs","repos_url":"https://api.github.com/users/simonbaese/repos","events_url":"https://api.github.com/users/simonbaese/events{/privacy}","received_events_url":"https://api.github.com/users/simonbaese/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-10-29T14:31:01Z","updated_at":"2018-10-29T14:32:38Z","closed_at":null,"author_association":"NONE","pull_request":{"url":"https://api.github.com/repos/amcgowanca/discoverable_entity_bundle_classes/pulls/9","html_url":"https://github.com/amcgowanca/discoverable_entity_bundle_classes/pull/9","diff_url":"https://github.com/amcgowanca/discoverable_entity_bundle_classes/pull/9.diff","patch_url":"https://github.com/amcgowanca/discoverable_entity_bundle_classes/pull/9.patch"},"body":"Looking to resolve #8 with this pull request. I modified the suggested code because the given entities might have different bundles. Thus we have to get the entity classes for each entity and call the respective hook defined by the class.\r\n\r\nMaybe we should add another check if the bundle is set for the entity in line 130. But I dont know if there is a scenario were the postLoad() hook is called for bundled and \"not\"-bundled entities at the same time."},"comment":{"url":"https://api.github.com/repos/amcgowanca/discoverable_entity_bundle_classes/issues/comments/433932412","html_url":"https://github.com/amcgowanca/discoverable_entity_bundle_classes/pull/9#issuecomment-433932412","issue_url":"https://api.github.com/repos/amcgowanca/discoverable_entity_bundle_classes/issues/9","id":433932412,"node_id":"MDEyOklzc3VlQ29tbWVudDQzMzkzMjQxMg==","user":{"login":"simonbaese","id":13441546,"node_id":"MDQ6VXNlcjEzNDQxNTQ2","avatar_url":"https://avatars3.githubusercontent.com/u/13441546?v=4","gravatar_id":"","url":"https://api.github.com/users/simonbaese","html_url":"https://github.com/simonbaese","followers_url":"https://api.github.com/users/simonbaese/followers","following_url":"https://api.github.com/users/simonbaese/following{/other_user}","gists_url":"https://api.github.com/users/simonbaese/gists{/gist_id}","starred_url":"https://api.github.com/users/simonbaese/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/simonbaese/subscriptions","organizations_url":"https://api.github.com/users/simonbaese/orgs","repos_url":"https://api.github.com/users/simonbaese/repos","events_url":"https://api.github.com/users/simonbaese/events{/privacy}","received_events_url":"https://api.github.com/users/simonbaese/received_events","type":"User","site_admin":false},"created_at":"2018-10-29T14:32:38Z","updated_at":"2018-10-29T14:32:38Z","author_association":"NONE","body":"@amcgowanca Glad if you could review this pull request."}}
{"actor":{"display_login":"simonbaese"}}