Rails5: Fix epics finder count_key method
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?
-
Changelog entry added, if necessary -
Documentation created/updated -
Tests added for this feature/bug -
Conforms to the code review guidelines -
Conforms to the merge request performance guidelines -
Conforms to the style guides -
Conforms to the database guides -
EE specific content should be in the top level /ee
folder -
For a paid feature, have we considered GitLab.com plans, how it works for groups, and is there a design for promoting it to users who aren't on the correct plan?