1. 30 9月, 2016 1 次提交
  2. 27 9月, 2016 1 次提交
  3. 09 8月, 2016 1 次提交
  4. 12 7月, 2016 1 次提交
  5. 03 6月, 2016 2 次提交
  6. 16 5月, 2016 2 次提交
    • S
      Return a relation with Postgres · e8058bd2
      Sean McGivern 提交于
      Postgres only needs to select a single column, so that can used as a
      sub-query where `Milestone.upcoming_ids_by_projects` is actually used in
      `IssuableFinder`.
      
      MySQL needs to select the `due_date` column because it's used in the
      `HAVING` clause, so it has to return an array of IDs.
      e8058bd2
    • S
      Make upcoming milestone work across projects · 750b2ff0
      Sean McGivern 提交于
      Before: we took the next milestone due across all projects in the
      search and found issues whose milestone title matched that
      one. Problems:
      
      1. The milestone could be closed.
      2. Different projects have milestones with different schedules.
      3. Different projects have milestones with different titles.
      4. Different projects can have milestones with different schedules, but
         the _same_ title. That means we could show issues from a past
         milestone, or one that's far in the future.
      
      After: gather the ID of the next milestone on each project we're looking
      at, and find issues with those milestone IDs. Problems:
      
      1. For a lot of projects, this can return a lot of IDs.
      2. The SQL query has to be different between Postgres and MySQL, because
         MySQL is much more lenient with HAVING: as well as the columns
         appearing in GROUP BY or in aggregate clauses, MySQL allows them to
         appear in the SELECT list (un-aggregated).
      750b2ff0
  7. 10 5月, 2016 1 次提交
    • J
      Remove the annotate gem and delete old annotations · f1479b56
      Jeroen van Baarsen 提交于
      In 8278b763 the default behaviour of annotation
      has changes, which was causing a lot of noise in diffs. We decided in #17382
      that it is better to get rid of the whole annotate gem, and instead let people
      look at schema.rb for the columns in a table.
      
      Fixes: #17382
      f1479b56
  8. 06 5月, 2016 1 次提交
  9. 18 3月, 2016 1 次提交
  10. 12 3月, 2016 1 次提交
  11. 07 3月, 2016 1 次提交
  12. 08 2月, 2016 1 次提交
  13. 09 12月, 2015 1 次提交
  14. 19 10月, 2015 1 次提交
    • Y
      Improve performance of sorting milestone issues · 4ff75e31
      Yorick Peterse 提交于
      This cuts down the time it takes to sort issues of a milestone by about
      10x. In the previous setup the code would run a SQL query for every
      issue that had to be sorted. The new setup instead runs a single SQL
      query to update all the given issues at once.
      
      The attached benchmark used to run at around 60 iterations per second,
      using the new setup this hovers around 600 iterations per second. Timing
      wise a request to update a milestone with 40-something issues would take
      about 760 ms, in the new setup this only takes about 130 ms.
      
      Fixes #3066
      4ff75e31
  15. 03 10月, 2015 1 次提交
  16. 22 6月, 2015 1 次提交
  17. 27 5月, 2015 1 次提交
    • J
      Change percent_complete rescue value from 100 to 0 · 8b92946b
      Jonah Bishop 提交于
      The percent_complete method returns a value of 100 when a
      ZeroDivisionError occurs. That seems like a very strange default for an
      error case, and results in a bug when a milestone has no corresponding
      issues (new, empty milestones show 100% completion). This commit changes
      the rescue value to 0, and subsequently fixes #1656, which reported this
      problem.
      8b92946b
  18. 13 2月, 2015 1 次提交
  19. 27 6月, 2014 1 次提交
  20. 09 4月, 2014 1 次提交
  21. 21 8月, 2013 2 次提交
  22. 29 7月, 2013 1 次提交
  23. 11 6月, 2013 1 次提交
  24. 05 5月, 2013 1 次提交
  25. 15 3月, 2013 1 次提交
  26. 18 2月, 2013 4 次提交
  27. 04 1月, 2013 1 次提交
  28. 03 1月, 2013 1 次提交
  29. 20 11月, 2012 1 次提交
  30. 13 11月, 2012 1 次提交
  31. 09 10月, 2012 2 次提交
  32. 27 9月, 2012 1 次提交
  33. 05 9月, 2012 1 次提交