1. 20 5月, 2016 2 次提交
  2. 19 5月, 2016 1 次提交
  3. 17 5月, 2016 5 次提交
  4. 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
  5. 14 5月, 2016 5 次提交
  6. 13 5月, 2016 2 次提交
  7. 12 5月, 2016 2 次提交
  8. 11 5月, 2016 2 次提交
    • S
      Tidy up user project specs · acd8930c
      Sean McGivern 提交于
      acd8930c
    • S
      Restrict starred projects to viewable ones · 97424ea5
      Sean McGivern 提交于
      `User#starred_projects` doesn't perform any visibility checks. This has
      a couple of problems:
      
      1. It assumes a user can always view all of their starred projects in
         perpetuity (project not changed to private, access revoked, etc.).
      2. It assumes that we'll only ever allow a user to star a project they
         can view. This is currently the case, but bugs happen.
      
      Add `User#viewable_starred_projects` to filter the starred projects by
      those the user either has explicit access to, or are public or
      internal. Then use that in all places where we list the user's starred
      projects.
      97424ea5
  9. 10 5月, 2016 2 次提交
  10. 09 5月, 2016 3 次提交
  11. 06 5月, 2016 1 次提交
  12. 04 5月, 2016 2 次提交
  13. 30 4月, 2016 2 次提交
  14. 29 4月, 2016 2 次提交
  15. 28 4月, 2016 3 次提交
  16. 27 4月, 2016 2 次提交
  17. 26 4月, 2016 1 次提交
  18. 25 4月, 2016 1 次提交