Skip to content

Fix `Jira` constant autoloading problem in development

What does this MR do?

In !61743 (merged) we renamed a model file from JiraService to Integrations::Jira.

Subsequently, in development mode, Rails would error when we called the service files that are in the top-level ::Jira namespace, rather than load them:

  • app/services/jira
  • ee/app/services/jira

This MR fixes this issue by adding an empty Jira module #331756 (comment 583983122).

QA steps

Compare this branch to master by starting a Rails console on each branch and typing:

::Jira::Requests::Projects::ListService

On master currently, this will error with:

LoadError: Unable to autoload constant Jira, expected /Users/luke/Sites/gdk-ee/gitlab/app/models/integrations/jira.rb to define it

Whereas it will load without problems on this branch.

Does this MR meet the acceptance criteria?

Conformity

Related to #331756 (closed)

Edited by Luke Duncalfe

Merge request reports

Loading