(domain, data_source_id)
return ReportConfiguration.view(
        'userreports/report_configs_by_data_source',
        reduce=True,
        key=[domain, data_source_id]
    ).one()['value']
Return the number of report configurations that use the given data source.
Return the number of report configurations that use the given data source.
Return the number of report configurations that use the given data source .
def get_number_of_report_configs_by_data_source(domain, data_source_id):
    """
    Return the number of report configurations that use the given data source.
    """
    from corehq.apps.userreports.models import ReportConfiguration
    return ReportConfiguration.view(
        'userreports/report_configs_by_data_source',
        reduce=True,
        key=[domain, data_source_id]
    ).one()['value']
def get_number_of_report_configs_by_data_source ( domain , data_source_id ) : from corehq . apps . userreports . models import ReportConfiguration return ReportConfiguration . view ( 'userreports/report_configs_by_data_source' , reduce = True , key = [ domain , data_source_id ] ) . one ( ) [ 'value' ]