(config_ids, domain)
return dynamic_report_configs + static_report_configs
Return a list of ReportConfigurations.
    config_ids may be ReportConfiguration or StaticReportConfiguration ids.
Return a list of ReportConfigurations.
    config_ids may be ReportConfiguration or StaticReportConfiguration ids.
Return a list of ReportConfigurations . config_ids may be ReportConfiguration or StaticReportConfiguration ids .
def get_report_configs(config_ids, domain):
    """
    Return a list of ReportConfigurations.
    config_ids may be ReportConfiguration or StaticReportConfiguration ids.
    """

    static_report_config_ids = []
    dynamic_report_config_ids = []
    for config_id in set(config_ids):
        if report_config_id_is_static(config_id):
            static_report_config_ids.append(config_id)
        else:
            dynamic_report_config_ids.append(config_id)
    static_report_config_by_ids = StaticReportConfiguration.by_ids(static_report_config_ids)
    static_report_configs = list(static_report_config_by_ids.values())
    if len(static_report_configs) != len(static_report_config_ids):
        raise ReportConfigurationNotFoundError
    for config in static_report_configs:
        if config.domain != domain:
            raise ReportConfigurationNotFoundError

    dynamic_report_configs = []
    if dynamic_report_config_ids:
        dynamic_report_configs = [
            wrap_report_config_by_type(doc) for doc in
            get_docs(ReportConfiguration.get_db(), dynamic_report_config_ids)
        ]

    if len(dynamic_report_configs) != len(dynamic_report_config_ids):
        raise ReportConfigurationNotFoundError
    for config in dynamic_report_configs:
        if config.domain != domain:
            raise ReportConfigurationNotFoundError
    return dynamic_report_configs + static_report_configs
def get_report_configs ( config_ids , domain ) : static_report_config_ids = [ ] dynamic_report_config_ids = [ ] for config_id in set ( config_ids ) : if report_config_id_is_static ( config_id ) : static_report_config_ids . append ( config_id ) else : dynamic_report_config_ids . append ( config_id ) static_report_config_by_ids = StaticReportConfiguration . by_ids ( static_report_config_ids ) static_report_configs = list ( static_report_config_by_ids . values ( ) ) if len ( static_report_configs ) != len ( static_report_config_ids ) : raise ReportConfigurationNotFoundError for config in static_report_configs : if config . domain != domain : raise ReportConfigurationNotFoundError dynamic_report_configs = [ ] if dynamic_report_config_ids : dynamic_report_configs = [ wrap_report_config_by_type ( doc ) for doc in get_docs ( ReportConfiguration . get_db ( ) , dynamic_report_config_ids ) ] if len ( dynamic_report_configs ) != len ( dynamic_report_config_ids ) : raise ReportConfigurationNotFoundError for config in dynamic_report_configs : if config . domain != domain : raise ReportConfigurationNotFoundError return dynamic_report_configs + static_report_configs