Commit 7adb9d45 authored by Alex Kalderimis's avatar Alex Kalderimis

Rename buildkite_service to buildkite_integration

Part of service => integration renaming effort
parent 313c82d0
......@@ -38,6 +38,12 @@ class Integration < ApplicationRecord
Integrations::BaseSlashCommands
].freeze
# used as part of the renaming effort (https://gitlab.com/groups/gitlab-org/-/epics/2504)
RENAMED_TO_INTEGRATION = %w[
asana assembla
bamboo bugzilla buildkite
].to_set.freeze
serialize :properties, JSON # rubocop:disable Cop/ActiveRecordSerialize
attribute :type, Gitlab::Integrations::StiType.new
......@@ -228,9 +234,6 @@ class Integration < ApplicationRecord
service_names.sort_by(&:downcase)
end
# used as part of the renaming effort
RENAMED_TO_INTEGRATION = %w[asana assembla bamboo bugzilla].freeze
def self.available_integration_names(**args)
available_services_names(**args)
.select { RENAMED_TO_INTEGRATION.include?(_1) }
......
......@@ -159,7 +159,7 @@ class Project < ApplicationRecord
has_one :assembla_integration, class_name: 'Integrations::Assembla'
has_one :bamboo_integration, class_name: 'Integrations::Bamboo'
has_one :bugzilla_integration, class_name: 'Integrations::Bugzilla'
has_one :buildkite_service, class_name: 'Integrations::Buildkite'
has_one :buildkite_integration, class_name: 'Integrations::Buildkite'
has_one :campfire_service, class_name: 'Integrations::Campfire'
has_one :confluence_service, class_name: 'Integrations::Confluence'
has_one :custom_issue_tracker_service, class_name: 'Integrations::CustomIssueTracker'
......
......@@ -383,7 +383,7 @@ project:
- mattermost_service
- hangouts_chat_service
- unify_circuit_service
- buildkite_service
- buildkite_integration
- bamboo_integration
- teamcity_service
- pushover_service
......
......@@ -57,7 +57,7 @@ RSpec.describe Project, factory_default: :keep do
it { is_expected.to have_one(:assembla_integration) }
it { is_expected.to have_one(:slack_slash_commands_service) }
it { is_expected.to have_one(:mattermost_slash_commands_service) }
it { is_expected.to have_one(:buildkite_service) }
it { is_expected.to have_one(:buildkite_integration) }
it { is_expected.to have_one(:bamboo_integration) }
it { is_expected.to have_one(:teamcity_service) }
it { is_expected.to have_one(:jira_service) }
......
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