(self, aggregation_group)
Add an aggregation group to the Story.

        Args:
            aggregation_group (SQLAggregationGroup): Save aggregation group
                to add to the story.
Add an aggregation group to the Story.
Add an aggregation group to the Story .
def add_aggregation_group(self, aggregation_group):
        """Add an aggregation group to the Story.

        Args:
            aggregation_group (SQLAggregationGroup): Save aggregation group
                to add to the story.
        """
        if not isinstance(aggregation_group, AggregationGroup):
            return

        block = self._create_new_block()
        block['componentName'] = 'TsAggregationGroupCompact'
        block['componentProps']['aggregation_group'] = {
            'id': aggregation_group.id,
            'name': aggregation_group.name}
        self._commit(block)
def add_aggregation_group ( self , aggregation_group ) : if not isinstance ( aggregation_group , AggregationGroup ) : return block = self . _create_new_block ( ) block [ 'componentName' ] = 'TsAggregationGroupCompact' block [ 'componentProps' ] [ 'aggregation_group' ] = { 'id' : aggregation_group . id , 'name' : aggregation_group . name } self . _commit ( block )