• Fabio Pitino's avatar
    Split same_family_pipeline_ids query to reduce complexity · 929ab2ad
    Fabio Pitino authored
    Ci::Pipeline#same_family_pipeline_ids uses PipelineObjectHierarchy
    to recursively find all pipelines (parent + children) given
    a pipeline object.
    
    This previously was finding recursively all ancestors and then
    all descendants. We can instead fire two queries, one to find
    the root ancestor and then use that as a baseline to find all
    descendants.
    929ab2ad
pipeline.rb 38.3 KB