1. 19 Mar, 2019 1 commit
  2. 06 Mar, 2019 1 commit
  3. 26 Feb, 2019 1 commit
  4. 04 Jan, 2019 1 commit
  5. 19 Dec, 2018 1 commit
  6. 16 Dec, 2018 1 commit
  7. 05 Dec, 2018 1 commit
  8. 03 Dec, 2018 1 commit
  9. 20 Nov, 2018 1 commit
  10. 17 Sep, 2018 1 commit
    • Yorick Peterse's avatar
      Added FromUnion to easily select from a UNION · 8a72f5c4
      Yorick Peterse authored
      This commit adds the module `FromUnion`, which provides the class method
      `from_union`. This simplifies the process of selecting data from the
      result of a UNION, and reduces the likelihood of making mistakes. As a
      result, instead of this:
      
          union = Gitlab::SQL::Union.new([foo, bar])
      
          Foo.from("(#{union.to_sql}) #{Foo.table_name}")
      
      We can now write this instead:
      
          Foo.from_union([foo, bar])
      
      This commit also includes some changes to make this new setup work
      properly. For example, a bug in Rails 4
      (https://github.com/rails/rails/issues/24193) would break the use of
      `from("sub-query-here").includes(:relation)` in certain cases. There was
      also a CI query which appeared to repeat a lot of conditions from an
      outer query on an inner query, which isn't necessary.
      
      Finally, we include a RuboCop cop to ensure developers use this new
      module, instead of using Gitlab::SQL::Union directly.
      
      Fixes https://gitlab.com/gitlab-org/gitlab-ce/issues/51307
      8a72f5c4
  11. 15 Sep, 2018 1 commit
  12. 14 Sep, 2018 1 commit
    • Yorick Peterse's avatar
      Cleaned up CI runner administration code · f0e7b5e7
      Yorick Peterse authored
      In https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/19625 some
      changes were introduced that do not meet our abstraction reuse rules.
      This commit cleans up some of these changes so the requirements are met.
      
      Most notably, sorting of the runners in Admin::RunnersFinder has been
      delegated to Ci::Runner.order_by, similar to how we order data in
      models that include the Sortable module. If we need more sort orders in
      the future we can include Sortable and have Ci::Runner.order_by call
      `super` to delegate to Sortable.order_by.
      f0e7b5e7
  13. 13 Sep, 2018 1 commit
  14. 20 Aug, 2018 2 commits
  15. 03 Aug, 2018 1 commit
  16. 04 Jul, 2018 1 commit
  17. 26 Jun, 2018 1 commit
  18. 05 Jun, 2018 1 commit
  19. 31 May, 2018 7 commits
  20. 16 May, 2018 1 commit
  21. 15 May, 2018 1 commit
  22. 10 May, 2018 2 commits
  23. 09 May, 2018 1 commit
  24. 08 May, 2018 1 commit
  25. 03 May, 2018 2 commits
  26. 02 May, 2018 2 commits
  27. 30 Apr, 2018 3 commits
  28. 27 Apr, 2018 1 commit