Exemple #1
0
 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))
Exemple #2
0
 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]
Exemple #3
0
 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]
Exemple #4
0
 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))