gitlab-org--gitlab-foss/spec/finders
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
..
contributed_projects_finder_spec.rb Align hash literals to keep Rubocop happy 2015-11-18 13:27:03 +01:00
group_projects_finder_spec.rb Add specs and add visibility level to admin groups 2016-03-21 19:11:24 -03:00
groups_finder_spec.rb Improve group visibility level feature 2016-03-18 16:58:04 -03:00
issues_finder_spec.rb Make upcoming milestone work across projects 2016-05-16 10:25:24 +01:00
joined_groups_finder_spec.rb Fix specs 2016-03-22 00:23:58 +01:00
merge_requests_finder_spec.rb Set milestone on new issue when creating issue from index with milestone filter active. 2015-05-27 14:22:11 +02:00
notes_finder_spec.rb Updated rspec to rspec 3.x syntax 2015-02-12 19:17:35 +01:00
personal_projects_finder_spec.rb Improve group visibility level feature 2016-03-18 16:58:04 -03:00
projects_finder_spec.rb Address feedback 2016-03-22 00:09:20 +01:00
snippets_finder_spec.rb Address feedback 2016-03-22 00:09:20 +01:00
trending_projects_finder_spec.rb Revamp trending projects query 2015-10-06 17:26:32 +02:00