Commit 19b47867 authored by Alex Kalderimis's avatar Alex Kalderimis

Rename ewm service to integration

Renames ewm project association from service to integration.
parent b1bc22dd
......@@ -167,7 +167,7 @@ class Project < ApplicationRecord
has_one :discord_integration, class_name: 'Integrations::Discord'
has_one :drone_ci_integration, class_name: 'Integrations::DroneCi'
has_one :emails_on_push_integration, class_name: 'Integrations::EmailsOnPush'
has_one :ewm_service, class_name: 'Integrations::Ewm'
has_one :ewm_integration, class_name: 'Integrations::Ewm'
has_one :external_wiki_service, class_name: 'Integrations::ExternalWiki'
has_one :flowdock_service, class_name: 'Integrations::Flowdock'
has_one :hangouts_chat_service, class_name: 'Integrations::HangoutsChat'
......
......@@ -103,7 +103,7 @@ FactoryBot.define do
issue_tracker
end
factory :ewm_service, class: 'Integrations::Ewm' do
factory :ewm_integration, class: 'Integrations::Ewm' do
project
active { true }
issue_tracker
......
......@@ -426,7 +426,7 @@ FactoryBot.define do
factory :ewm_project, parent: :project do
has_external_issue_tracker { true }
ewm_service
ewm_integration
end
factory :project_with_design, parent: :project do
......
......@@ -213,7 +213,9 @@ RSpec.describe Banzai::Filter::References::ExternalIssueReferenceFilter do
end
context "ewm project" do
let_it_be(:service) { create(:ewm_service, project: project) }
let_it_be(:integration) { create(:ewm_integration, project: project) }
let(:service) { integration } # TODO: remove when https://gitlab.com/gitlab-org/gitlab/-/issues/330300 is complete
before do
project.update!(issues_enabled: false)
......
......@@ -391,7 +391,7 @@ project:
- youtrack_service
- custom_issue_tracker_integration
- bugzilla_integration
- ewm_service
- ewm_integration
- external_wiki_service
- mock_ci_service
- mock_monitoring_service
......
......@@ -65,7 +65,7 @@ RSpec.describe Project, factory_default: :keep do
it { is_expected.to have_one(:youtrack_service) }
it { is_expected.to have_one(:custom_issue_tracker_integration) }
it { is_expected.to have_one(:bugzilla_integration) }
it { is_expected.to have_one(:ewm_service) }
it { is_expected.to have_one(:ewm_integration) }
it { is_expected.to have_one(:external_wiki_service) }
it { is_expected.to have_one(:confluence_integration) }
it { is_expected.to have_one(:project_feature) }
......
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