gitlab-org--gitlab-foss/app
Sean McGivern 750b2ff0ee Make upcoming milestone work across projects
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).
2016-05-16 10:25:24 +01:00
..
assets Change colors for charcoal and graphite sidebar themes 2016-05-14 00:48:49 -05:00
controllers Satisfy Rubocop 2016-05-13 17:31:58 -05:00
finders Make upcoming milestone work across projects 2016-05-16 10:25:24 +01:00
helpers Extract LegacyDiffNote out of Note 2016-05-13 17:31:43 -05:00
mailers Only generate repository push email once 2016-05-11 09:16:01 +01:00
models Make upcoming milestone work across projects 2016-05-16 10:25:24 +01:00
services Codestyle: make sure we have space around operators 2016-05-13 04:46:56 -03:00
uploaders Remove reduntant move_to_store override 2016-03-30 12:50:19 +02:00
validators Allow webhooks URL to have leading and trailing spaces 2016-02-26 14:34:06 -05:00
views Rename diff_with_notes partial. 2016-05-13 17:31:59 -05:00
workers Only generate repository push email once 2016-05-11 09:16:01 +01:00