(self, data_source_id, username)
return report
Updates the datasource then creates and saves a report config.

        :raises BadSpecError if report is invalid
Updates the datasource then creates and saves a report config.
Updates the datasource then creates and saves a report config .
def create_temp_report(self, data_source_id, username):
        """
        Updates the datasource then creates and saves a report config.

        :raises BadSpecError if report is invalid
        """

        self._update_temp_datasource(data_source_id, username)
        report = self.ds_builder.report_config_class(
            domain=self.domain,
            config_id=data_source_id,
            title=self.report_name,
            aggregation_columns=self._report_aggregation_cols,
            columns=self._get_report_columns(),
            filters=self._report_filters,
            configured_charts=self._report_charts,
            data_source_type=guess_data_source_type(data_source_id),
            report_meta=ReportMeta(
                created_by_builder=True,
                report_builder_version="2.0",
                builder_report_type=self.report_type
            )
        )
        report.validate()
        report.save()
        return report
def create_temp_report ( self , data_source_id , username ) : self . _update_temp_datasource ( data_source_id , username ) report = self . ds_builder . report_config_class ( domain = self . domain , config_id = data_source_id , title = self . report_name , aggregation_columns = self . _report_aggregation_cols , columns = self . _get_report_columns ( ) , filters = self . _report_filters , configured_charts = self . _report_charts , data_source_type = guess_data_source_type ( data_source_id ) , report_meta = ReportMeta ( created_by_builder = True , report_builder_version = "2.0" , builder_report_type = self . report_type ) ) report . validate ( ) report . save ( ) return report