-
- Downloads
Create CTE query for clusters hierarchy
- 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.
Showing
- app/models/clusters/clusters_hierarchy.rb 104 additions, 0 deletionsapp/models/clusters/clusters_hierarchy.rb
- app/models/concerns/deployment_platform.rb 17 additions, 2 deletionsapp/models/concerns/deployment_platform.rb
- changelogs/unreleased/clusters-group-cte.yml 5 additions, 0 deletionschangelogs/unreleased/clusters-group-cte.yml
- spec/models/clusters/clusters_hierarchy_spec.rb 73 additions, 0 deletionsspec/models/clusters/clusters_hierarchy_spec.rb
- spec/models/concerns/deployment_platform_spec.rb 17 additions, 1 deletionspec/models/concerns/deployment_platform_spec.rb
app/models/clusters/clusters_hierarchy.rb
0 → 100644
changelogs/unreleased/clusters-group-cte.yml
0 → 100644
Please register or sign in to comment