Skip to content

Drop app/models/integrations from eager load paths

What does this MR do?

The models in this folder all use the new Integrations:: namespace, so they can be properly auto-loaded without having to add the path to eager_load_paths. This was only needed for the old project_services directory, which didn't use namespaces.

This fixes errors like this when referencing integration classes in the toplevel scope:

LoadError: Unable to autoload constant Github, expected ee/app/models/integrations/github.rb to define it

Instead we'll now get:

NameError: uninitialized constant Github

The previous workaround for the Jira integration to create an empty module in app/services/jira.rb isn't needed anymore, referencing a service like Jira::requests::Projects::ListService still works without raising an error.

Part of #201855 (closed), replaces the changes in !62437 (merged)

Does this MR meet the acceptance criteria?

Conformity

Availability and Testing

Related to #201855 (closed)

Merge request reports

Loading