{"action":"created","issue":{"url":"https://api.github.com/repos/Elgg/Elgg/issues/7843","labels_url":"https://api.github.com/repos/Elgg/Elgg/issues/7843/labels{/name}","comments_url":"https://api.github.com/repos/Elgg/Elgg/issues/7843/comments","events_url":"https://api.github.com/repos/Elgg/Elgg/issues/7843/events","html_url":"https://github.com/Elgg/Elgg/issues/7843","id":56074681,"number":7843,"title":"get_registered_entity_types() cannot check types with no subtype","user":{"login":"mrclay","id":170687,"avatar_url":"https://avatars.githubusercontent.com/u/170687?v=3","gravatar_id":"","url":"https://api.github.com/users/mrclay","html_url":"https://github.com/mrclay","followers_url":"https://api.github.com/users/mrclay/followers","following_url":"https://api.github.com/users/mrclay/following{/other_user}","gists_url":"https://api.github.com/users/mrclay/gists{/gist_id}","starred_url":"https://api.github.com/users/mrclay/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mrclay/subscriptions","organizations_url":"https://api.github.com/users/mrclay/orgs","repos_url":"https://api.github.com/users/mrclay/repos","events_url":"https://api.github.com/users/mrclay/events{/privacy}","received_events_url":"https://api.github.com/users/mrclay/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/Elgg/Elgg/labels/bug","name":"bug","color":"DDDDDD"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-01-30T19:33:34Z","updated_at":"2015-02-01T20:26:26Z","closed_at":null,"body":"E.g. even if \"group\" was registered as a type, `get_registered_entity_types('group')` returns false."},"comment":{"url":"https://api.github.com/repos/Elgg/Elgg/issues/comments/72382405","html_url":"https://github.com/Elgg/Elgg/issues/7843#issuecomment-72382405","issue_url":"https://api.github.com/repos/Elgg/Elgg/issues/7843","id":72382405,"user":{"login":"Srokap","id":1339628,"avatar_url":"https://avatars.githubusercontent.com/u/1339628?v=3","gravatar_id":"","url":"https://api.github.com/users/Srokap","html_url":"https://github.com/Srokap","followers_url":"https://api.github.com/users/Srokap/followers","following_url":"https://api.github.com/users/Srokap/following{/other_user}","gists_url":"https://api.github.com/users/Srokap/gists{/gist_id}","starred_url":"https://api.github.com/users/Srokap/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Srokap/subscriptions","organizations_url":"https://api.github.com/users/Srokap/orgs","repos_url":"https://api.github.com/users/Srokap/repos","events_url":"https://api.github.com/users/Srokap/events{/privacy}","received_events_url":"https://api.github.com/users/Srokap/received_events","type":"User","site_admin":false},"created_at":"2015-02-01T20:26:26Z","updated_at":"2015-02-01T20:26:26Z","body":"I wonder why we don't just use the subtypes data from database for that purpose. We load it anyway, so whole process of additional registering entity types seems somewhat obsolete.\r\n\r\nApart from that i'm not sure what really would we like to return for the types without subtype. Empty string?"}}