Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Set group.pubid before returning open groups
`GroupCreateService.create_private_group()` and `GroupCreateService.create_restricted_group()` both return `models.Group` objects whose `pubid` attribute has already been generated, but `GroupCreateService.create_open_group()` returns groups with `pubid=None` because the value for `pubid` won't be generated until the group is flushed to the DB. This is a likely source of errors (for example the API returning `id: null` in the JSON response when creating an open group) so fix `GroupCreateService` to generate `pubid`'s also for open groups before returning the group to the caller.
- Loading branch information