def get_run_times_grouped_by_run_metadata_key(key, start_date=None,
                                              stop_date=None, session=None):
    session = session or get_session()
    run_times_query = db_utils.model_query(models.Run, session).filter(
        models.Run.fails == 0, models.Run.passes > 0).join(
            models.RunMetadata,
            models.Run.id == models.RunMetadata.run_id).filter(
                models.RunMetadata.key == key)

    run_times_query = _filter_runs_by_date(run_times_query, start_date,
                                           stop_date)
    run_times = run_times_query.values(models.Run.run_at, models.Run.run_time,
                                       models.RunMetadata.value)
    result = {}
    for run in run_times:
        if result.get(run.value):
            result[run.value].append(run.run_time)
        else:
            result[run.value] = [run.run_time]
    return result
Configure Yum priorities to include obsoletes
dataset/ETHPy150Open openstack-infra/subunit2sql/subunit2sql/db/api.py/get_run_times_grouped_by_run_metadata_key--crossover with--dataset/ETHPy150Open ceph/ceph-deploy/ceph_deploy/hosts/remotes.py/enable_yum_priority_obsoletes