1. 23 6月, 2016 3 次提交
    • S
      Fix pagination on sorts with lots of ties · d7a5a28c
      Sean McGivern 提交于
      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
      d7a5a28c
    • P
      Add Sidekiq queue duration to transaction metrics. · 9101915c
      Paco Guzman 提交于
      9101915c
    • C
      Add clarifying comment and a Changelog entry. · bba1d2de
      Connor Shea 提交于
      bba1d2de
  2. 22 6月, 2016 3 次提交
    • R
      Fix CHANGELOG · 1d9bbb0b
      Rémy Coutable 提交于
      [ci skip]
      Signed-off-by: NRémy Coutable <remy@rymai.me>
      1d9bbb0b
    • S
      Fix auto-MR-close text from branch name · b2f60bb9
      Sean McGivern 提交于
      Rails's form helpers use the `$attr_before_type_cast` method where
      available, and this value only appears to be updated on assignment, not
      when the object is mutated in some other way:
      
          [1] pry(main)> mr = MergeRequest.new
          => #<MergeRequest:0x007fcf28395d88 ...>
          [2] pry(main)> mr.description = 'foo'
          => "foo"
          [3] pry(main)> mr.description << ' bar'
          => "foo bar"
          [4] pry(main)> mr.description
          => "foo bar"
          [5] pry(main)> mr.description_before_type_cast
          => "foo"
          [6] pry(main)> mr.description += ' bar'
          => "foo bar bar"
          [7] pry(main)> mr.description_before_type_cast
          => "foo bar bar"
      b2f60bb9
    • A
      Update CHANGELOG · 596b2f46
      Annabel Dunstone 提交于
      596b2f46
  3. 21 6月, 2016 9 次提交
  4. 20 6月, 2016 3 次提交
  5. 18 6月, 2016 8 次提交
  6. 17 6月, 2016 10 次提交
  7. 16 6月, 2016 4 次提交