Unable to autoload constant `Jira` in development
Summary
In !61743 (merged) we renamed a model file from JiraService to Integrations::Jira.
Subsequently, in development mode, Rails will error when we call the service files that are in the top-level ::Jira namespace, rather than load them:
app/services/jiraee/app/services/jira
Steps to reproduce
Start a new rails console in development, and then type:
::Jira
You will get the error:
LoadError: Unable to autoload constant Jira, expected /Users/luke/Sites/gdk-ee/gitlab/app/models/integrations/jira.rb to define it
What is the expected correct behavior?
Rails can correctly auto-load those files in development.
Possible fixes
Edited by Luke Duncalfe