def get_sharing_groups(self, query, start, size): groups = (self.group_es_query(query, group_type="case_sharing") .fields(['_id', 'name']) .start(start) .size(size) .sort("name.exact")) return list(map(self.utils.sharing_group_tuple, groups.run().hits))
def get_groups(self, query, start, size): groups = (self.group_es_query(query) .fields(['_id', 'name']) .start(start) .size(size) .sort("name.exact")) return [self.utils.reporting_group_tuple(g) for g in groups.run().hits]