{"action":"created","issue":{"url":"https://api.github.com/repos/loomio/loomio/issues/3390","repository_url":"https://api.github.com/repos/loomio/loomio","labels_url":"https://api.github.com/repos/loomio/loomio/issues/3390/labels{/name}","comments_url":"https://api.github.com/repos/loomio/loomio/issues/3390/comments","events_url":"https://api.github.com/repos/loomio/loomio/issues/3390/events","html_url":"https://github.com/loomio/loomio/pull/3390","id":156660046,"number":3390,"title":"Serialize out parent groups for groups controller","user":{"login":"gdpelican","id":750477,"avatar_url":"https://avatars.githubusercontent.com/u/750477?v=3","gravatar_id":"","url":"https://api.github.com/users/gdpelican","html_url":"https://github.com/gdpelican","followers_url":"https://api.github.com/users/gdpelican/followers","following_url":"https://api.github.com/users/gdpelican/following{/other_user}","gists_url":"https://api.github.com/users/gdpelican/gists{/gist_id}","starred_url":"https://api.github.com/users/gdpelican/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gdpelican/subscriptions","organizations_url":"https://api.github.com/users/gdpelican/orgs","repos_url":"https://api.github.com/users/gdpelican/repos","events_url":"https://api.github.com/users/gdpelican/events{/privacy}","received_events_url":"https://api.github.com/users/gdpelican/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-05-25T04:18:04Z","updated_at":"2016-05-25T14:07:15Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/loomio/loomio/pulls/3390","html_url":"https://github.com/loomio/loomio/pull/3390","diff_url":"https://github.com/loomio/loomio/pull/3390.diff","patch_url":"https://github.com/loomio/loomio/pull/3390.patch"},"body":"#2900"},"comment":{"url":"https://api.github.com/repos/loomio/loomio/issues/comments/221587110","html_url":"https://github.com/loomio/loomio/pull/3390#issuecomment-221587110","issue_url":"https://api.github.com/repos/loomio/loomio/issues/3390","id":221587110,"user":{"login":"gdpelican","id":750477,"avatar_url":"https://avatars.githubusercontent.com/u/750477?v=3","gravatar_id":"","url":"https://api.github.com/users/gdpelican","html_url":"https://github.com/gdpelican","followers_url":"https://api.github.com/users/gdpelican/followers","following_url":"https://api.github.com/users/gdpelican/following{/other_user}","gists_url":"https://api.github.com/users/gdpelican/gists{/gist_id}","starred_url":"https://api.github.com/users/gdpelican/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gdpelican/subscriptions","organizations_url":"https://api.github.com/users/gdpelican/orgs","repos_url":"https://api.github.com/users/gdpelican/repos","events_url":"https://api.github.com/users/gdpelican/events{/privacy}","received_events_url":"https://api.github.com/users/gdpelican/received_events","type":"User","site_admin":false},"created_at":"2016-05-25T14:07:15Z","updated_at":"2016-05-25T14:07:15Z","body":"@robguthrie Would you mind taking a look at this?\r\n\r\nCurrently there's no way to tack on a different model to the serialized object's hash (so, adding a separate group to a group serializer doesn't work), I'm pretty sure due to a bug or design flaw in AMS (we're running an ancient version, after all)\r\n\r\nThis hacks the groups controller to serialize out the group as well as its parent all the time.\r\n\r\nPossible shortcoming / weirdness is that we won't get the parent serialized out when requesting from a different controller (so, I request a group from `api/v1/groups/key` and get the parent, but I request a discussion from `api/v1/discussions/key` and I get the discussion, and its group, but not the group's parent) but I'm pretty sure that's alright, if a bit of a gotcha."}}
{"actor":{"display_login":"gdpelican"}}