1. 29 Aug, 2019 5 commits
    • Thong Kuah's avatar
      Remove redundant index · 0e6f0c0c
      Thong Kuah authored
      Now we have cluster_id, state index, we don't the cluster_id index as
      well.
      0e6f0c0c
    • Thong Kuah's avatar
      Match on project_id in query · 4bcf600a
      Thong Kuah authored
      This improves query performance by causing the query planner to choose
      deployments_cluster_status_idx over environments_pkey, which improves
      the query as environments_pkey is far bigger.
      4bcf600a
    • Thong Kuah's avatar
      Convert to arel · e740b7d9
      Thong Kuah authored
      e740b7d9
    • Thong Kuah's avatar
      Add index to improve query performance · 6f0f9f2a
      Thong Kuah authored
      For Environment.deployed_to_cluster
      6f0f9f2a
    • Thong Kuah's avatar
      New cluster environments endpoint · e4254f4a
      Thong Kuah authored
      - GitLab Premium feature. Adds cluster_deployments license feature
      
      - Finder for Cluster's environments. Returns a scope for the cluster's
      environments. If no permission, returns a None scope
      
      - Add a new serializer to represent environments for a cluster. These
      can be for a group cluster so we cannot restrict to a single project
      (like EnvironmentEntity currently does)
      
      - Load environments for a cluster. We need it to return where the
      environment's latest deployment is to a cluster. (and not the latest
      deployment to that cluster).
      
      - Add n+1 request spec.
      e4254f4a
  2. 28 Aug, 2019 35 commits