gitlab-org--gitlab-foss/spec
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
..
config Enable the Rubocop DeprecatedClassMethods cop 2016-05-08 15:33:34 -06:00
controllers Merge branch 'health-check-route' 2016-05-12 16:39:03 -05:00
factories Update specs 2016-05-13 17:31:58 -05:00
features Update specs 2016-05-13 17:31:58 -05:00
finders Make upcoming milestone work across projects 2016-05-16 10:25:24 +01:00
fixtures Update SVG sanitizer to conform to SVG 1.1 2016-05-06 23:20:24 -07:00
helpers Merge branch 'rs-cleanup-events_helper_spec' into 'master' 2016-05-12 22:41:19 +00:00
initializers Add tests for setting trusted_proxies 2016-05-04 15:49:39 -07:00
javascripts Fix build notification on merge request page change even if the build status didn't change 2016-05-08 21:41:09 +02:00
lib Add cache count metrics to rails cache 2016-05-15 19:47:41 +01: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
requests Codestyle: make sure we have space around operators 2016-05-13 04:46:56 -03:00
routing Merge branch 'health-check-route' 2016-05-12 16:39:03 -05:00
services Merge branch 'deprecated-class-methods-cop' into 'master' 2016-05-12 22:41:01 +00:00
support Codestyle: make sure we have space around operators 2016-05-13 04:46:56 -03:00
tasks/gitlab Ensure uploads dir exists when running backup specs 2016-03-30 15:40:49 +02:00
views Move "I should see Crowd login form" feature to a view spec 2016-02-24 17:38:13 -05:00
workers Only generate repository push email once 2016-05-11 09:16:01 +01:00
factories_spec.rb Add support for not Active Record based factories 2016-03-30 10:44:18 +02:00
rails_helper.rb
spec_helper.rb Update rspec-rails from 3.3.3 to 3.4.2. 2016-05-01 13:44:50 -06:00
teaspoon_env.rb