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.
GroupCreateService.create_private_group()
andGroupCreateService.create_restricted_group()
both returnmodels.Group
objects whosepubid
attribute has already been generated, butGroupCreateService.create_open_group()
returns groups withpubid=None
because the value forpubid
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 fixGroupCreateService
to generatepubid
's also for open groups before returning the group to the caller.