(app)
return config_ids
map ReportAppConfig.uuids list to user-defined ReportAppConfig.instance_ids

    This is per-domain, since registering instances (like
    commcare_reports_fixture_instances) is per-domain
map ReportAppConfig.uuids list to user-defined ReportAppConfig.instance_ids
map ReportAppConfig . uuids list to user - defined ReportAppConfig . instance_ids
def get_uuids_by_instance_id(app):
    """
    map ReportAppConfig.uuids list to user-defined ReportAppConfig.instance_ids

    This is per-domain, since registering instances (like
    commcare_reports_fixture_instances) is per-domain
    """
    config_ids = defaultdict(list)
    if app.mobile_ucr_restore_version in (MOBILE_UCR_MIGRATING_TO_2, MOBILE_UCR_VERSION_2):
        for module in app.modules:
            if module.module_type == 'report':
                for report_config in module.report_configs:
                    config_ids[report_config.instance_id].append(report_config.uuid)
    return config_ids
def get_uuids_by_instance_id ( app ) : config_ids = defaultdict ( list ) if app . mobile_ucr_restore_version in ( MOBILE_UCR_MIGRATING_TO_2 , MOBILE_UCR_VERSION_2 ) : for module in app . modules : if module . module_type == 'report' : for report_config in module . report_configs : config_ids [ report_config . instance_id ] . append ( report_config . uuid ) return config_ids