Commit 96e0eaa6 authored by Luke Duncalfe's avatar Luke Duncalfe

Remove rubocop CodeReuse/ServiceClass

This comment was added because previously the `Integrations::Jira` model
was named `PrometheusService` which triggered the cop.

The model was renamed in
https://gitlab.com/gitlab-org/gitlab/-/merge_requests/61743 however it
was missed that we could remove this pragma comment until
https://gitlab.com/gitlab-org/gitlab/-/merge_requests/62645#note_602285858
parent 4439507e
......@@ -534,7 +534,7 @@ class Project < ApplicationRecord
scope :for_milestones, ->(ids) { joins(:milestones).where('milestones.id' => ids).distinct }
scope :with_push, -> { joins(:events).merge(Event.pushed_action) }
scope :with_project_feature, -> { joins('LEFT JOIN project_features ON projects.id = project_features.project_id') }
scope :with_active_jira_services, -> { joins(:integrations).merge(::Integrations::Jira.active) } # rubocop:disable CodeReuse/ServiceClass
scope :with_active_jira_services, -> { joins(:integrations).merge(::Integrations::Jira.active) }
scope :with_jira_dvcs_cloud, -> { joins(:feature_usage).merge(ProjectFeatureUsage.with_jira_dvcs_integration_enabled(cloud: true)) }
scope :with_jira_dvcs_server, -> { joins(:feature_usage).merge(ProjectFeatureUsage.with_jira_dvcs_integration_enabled(cloud: false)) }
scope :inc_routes, -> { includes(:route, namespace: :route) }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment