• Patrick Bajao's avatar
    Fix ResultsStore#read to return a CheckResult · e0f2c52e
    Patrick Bajao authored
    `MergeRequests::Mergeability::RunChecksService#run_check` expects
    that `MergeRequests::Mergeability::ResultsStore#read` to return
    a `MergeRequests::Mergeability::CheckResult` object.
    
    This fixes the `ResultsStore#read` to return a `CheckResult` object
    once it received a result from cache (e.g. Redis).
    
    This is behind the `mergeability_caching` feature flag.
    e0f2c52e
results_store.rb 696 Bytes