Skip to content

Rails5: Fix epics finder count_key method

Jasper Maes requested to merge jlemaes/gitlab-ee:rails5-epic-finder-fix into master

What does this MR do?

Rails 5 fix for epics finder. In Rails 5 the argument is the epic state enum value("opened" or "closed") while for Rails 5 the argument is the epic state enum db integer(1 or 2). This MR adds a Rails5? check to fix this.

Fixes: ee/spec/finders/epics_finder_spec.rb:187 and other epic specs. See https://gitlab.com/gitlab-org/gitlab-ee/-/jobs/104966630 and https://gitlab.com/gitlab-org/gitlab-ee/-/jobs/104963302.

What are the relevant issue numbers?

Does this MR meet the acceptance criteria?

Merge request reports