BigW Consortium Gitlab

  1. 01 Jul, 2016 1 commit
  2. 23 Jun, 2016 1 commit
    • Fix pagination on sorts with lots of ties · d7a5a28c
      Sean McGivern authored
      Postgres and MySQL don't guarantee that pagination with `LIMIT` and
      `OFFSET` will work if the ordering isn't unique. From the Postgres docs:
      
      > When using `LIMIT`, it is important to use an `ORDER BY` clause that
      > constrains the result rows into a unique order. Otherwise you will get
      > an unpredictable subset of the query's rows
      
      Before:
      
          [1] pry(main)> issues = 1.upto(Issue.count).map { |i| Issue.sort('priority').page(i).per(1).map(&:id) }.flatten
          [2] pry(main)> issues.count
          => 81
          [3] pry(main)> issues.uniq.count
          => 42
      
      After:
      
          [1] pry(main)> issues = 1.upto(Issue.count).map { |i| Issue.sort('priority').page(i).per(1).map(&:id) }.flatten
          [2] pry(main)> issues.count
          => 81
          [3] pry(main)> issues.uniq.count
          => 81
  3. 08 Jun, 2016 1 commit
    • Fix pseudo n+1 queries with Note and Note Authors in issuables APIs · fade1a4c
      Alejandro Rodríguez authored
      This was not a clear cut n+1 query, given that if you're directly subscribed to all issues
      that the API is returning you never really need to check for the notes. However, if you're
      subscribed to _all_ of them, then for each issuable you need to go once to `notes`, and
      once to `users` (for the authors). By preemtively loading notes and authors, at worst you have
      1 extra query, and at best you saved 2n extra queries. We also took advantage of this preloading
      of notes when counting user notes.
  4. 03 Jun, 2016 2 commits
  5. 02 Jun, 2016 1 commit
    • issuable#labels_array explicitly load the labels · 078ba8c0
      Paco Guzman authored
      This will be useful when you want to ask for the 
      number of items and later iterate over them, without 
      needing to ask if the association is load or not.
      
      So you avoid extra database queries
  6. 31 May, 2016 1 commit
  7. 29 May, 2016 2 commits
  8. 24 May, 2016 5 commits
  9. 12 May, 2016 1 commit
  10. 11 May, 2016 1 commit
  11. 10 May, 2016 1 commit
  12. 06 May, 2016 1 commit
  13. 21 Apr, 2016 2 commits
  14. 20 Apr, 2016 3 commits
  15. 30 Mar, 2016 1 commit
  16. 15 Mar, 2016 1 commit
  17. 11 Mar, 2016 2 commits
  18. 22 Feb, 2016 2 commits
  19. 11 Feb, 2016 1 commit
    • Add new data to project in push, issue, merge-request and note webhooks data · b123171d
      Kirill Zaitsev authored
      - Add `avatar_url`, `description`, `git_ssh_url`, `git_http_url`,
        `path_with_namespace` and `default_branch` in `project` in push, issue,
        merge-request and note webhooks data
      - Deprecate the `ssh_url` in favor of `git_ssh_url` and `http_url` in
        favor of `git_http_url` in `project` for push, issue, merge-request and
        note webhooks data
      - Deprecate the `repository` key in push, issue, merge-request and
        note webhooks data, use `project` instead
  20. 10 Feb, 2016 1 commit
  21. 28 Dec, 2015 1 commit
  22. 25 Dec, 2015 1 commit
  23. 24 Dec, 2015 1 commit
  24. 16 Oct, 2015 1 commit
  25. 16 Sep, 2015 1 commit
  26. 22 Jun, 2015 1 commit
  27. 10 Jun, 2015 1 commit
  28. 12 Feb, 2015 1 commit
  29. 25 Mar, 2014 1 commit