BigW Consortium Gitlab

  1. 28 Feb, 2018 1 commit
  2. 23 Feb, 2018 1 commit
  3. 21 Feb, 2018 2 commits
  4. 16 Feb, 2018 1 commit
  5. 09 Feb, 2018 4 commits
  6. 08 Feb, 2018 1 commit
    • Add indexes and change SQL for expired artifacts to deal with artifacts migration efficiently · 271e7a32
      Greg Stark authored
      Artifacts are in the middle of being migrated from ci_builds to
      ci_job_artifacts. The expiration date is currently visible in both of
      these tables and the test for whether an expired artifact is present
      for a job is complex as it requires checking both the of the tables.
      
      Add two new indexes, one on ci_builds.artifacts_expire_at and one on
      ci_job_artifacts.expire_at to enable finding expired artifacts
      efficiently.
      
      And until the migration is finished, replace the SQL for finding
      expired and non-expired artifacts with a hand-crafted UNION ALL based
      query instead of using OR. This overcomes a database optimizer
      limitation that prevents it from using these indexes.
      
      When the migration is finished the next version should remove this
      query and replace it with a much simpler query on just
      ci_job_artifacts. See
      https://gitlab.com/gitlab-org/gitlab-ce/issues/42561 for followup.
  7. 07 Feb, 2018 1 commit
  8. 06 Feb, 2018 2 commits
  9. 05 Feb, 2018 3 commits
  10. 04 Feb, 2018 2 commits
  11. 31 Jan, 2018 1 commit
  12. 29 Jan, 2018 5 commits
  13. 28 Jan, 2018 1 commit
  14. 26 Jan, 2018 1 commit
  15. 25 Jan, 2018 1 commit
  16. 14 Jan, 2018 1 commit
    • Ensure CI pipelines and builds have the correction project associations · 8ddb00ad
      Stan Hu authored
      This should reduce the number of SQL queries and lookups needed to look up a
      project of a build and pipeline and vice versa.
      
      Before:
      
      ```
      [1] pry(main)> Ci::Build.reflect_on_association(:project).has_inverse?
      => false
      [2] pry(main)> Project.reflect_on_association(:builds).has_inverse?
      => false
      [3] pry(main)> Ci::Pipeline.reflect_on_association(:project).has_inverse?
      => false
      [4] pry(main)> Project.reflect_on_association(:pipelines).has_inverse?
      => :project
      ```
      
      After:
      
      ```
      [1] pry(main)> Ci::Build.reflect_on_association(:project).has_inverse?
      => :builds
      [2] pry(main)> Project.reflect_on_association(:builds).has_inverse?
      => :project
      [3] pry(main)> Ci::Pipeline.reflect_on_association(:project).has_inverse?
      => :pipelines
      [4] pry(main)> Project.reflect_on_association(:pipelines).has_inverse?
      => :project
      ```
  17. 08 Jan, 2018 1 commit
  18. 05 Jan, 2018 1 commit
  19. 04 Jan, 2018 2 commits
  20. 22 Dec, 2017 1 commit
  21. 19 Dec, 2017 1 commit
    • Load commit in batches for pipelines#index · c6edae38
      Zeger-Jan van de Weg authored
      Uses `list_commits_by_oid` on the CommitService, to request the needed
      commits for pipelines. These commits are needed to display the user that
      created the commit and the commit title.
      
      This includes fixes for tests failing that depended on the commit
      being `nil`. However, now these are batch loaded, this doesn't happen
      anymore and the commits are an instance of BatchLoader.
  22. 18 Dec, 2017 1 commit
  23. 14 Dec, 2017 1 commit
  24. 07 Dec, 2017 1 commit
  25. 06 Dec, 2017 3 commits