• Thong Kuah's avatar
    Create CTE query for clusters hierarchy · 3bc76511
    Thong Kuah authored
    - This enables us to use a scope to query all clusters in group
    hierarchy order in one query, and also enables us to union to instance
    clusters later.
    
    - Handle case where clusters not present at level. In which case the
    query should go ahead and return the next level's clusters.
    
    - Swap with new CTE query behind Feature flag. This FF is default
    disabled.
    3bc76511
clusters_hierarchy_spec.rb 2.54 KB