Skip to content
Snippets Groups Projects
Commit 59d9d41c authored by Alexis Kalderimis's avatar Alexis Kalderimis :speech_balloon:
Browse files

Do not introduce new ServiceType members

parent ca888ffb
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -8,22 +8,9 @@ class ServiceTypeEnum < BaseEnum
::Integration.available_services_types(include_dev: false).each do |type|
replacement = Integration.integration_type_for_service_type(type)
 
if replacement.present?
deprecation = {
reason: :renamed,
replacement: "ServiceType.#{replacement.underscore.upcase}",
milestone: '14.0'
}
end
value type.underscore.upcase,
value: replacement.presence || type,
description: "#{type} type",
deprecated: deprecation
end
::Integration.available_integration_types(include_dev: false).each do |type|
value type.underscore.upcase, value: type, description: "Integration with #{type.chomp('Integration')}"
description: "#{type} type"
end
end
end
Loading
Loading
Loading
Loading
@@ -14560,19 +14560,13 @@ State of a Sentry error.
 
| Value | Description |
| ----- | ----------- |
| <a id="servicetypeasana_integration"></a>`ASANA_INTEGRATION` | Integration with Asana. |
| <a id="servicetypeasana_service"></a>`ASANA_SERVICE` **{warning-solid}** | **Deprecated** in 14.0. This was renamed. Use: [`ServiceType.ASANA_INTEGRATION`](#servicetypeasana_integration). |
| <a id="servicetypeassembla_integration"></a>`ASSEMBLA_INTEGRATION` | Integration with Assembla. |
| <a id="servicetypeassembla_service"></a>`ASSEMBLA_SERVICE` **{warning-solid}** | **Deprecated** in 14.0. This was renamed. Use: [`ServiceType.ASSEMBLA_INTEGRATION`](#servicetypeassembla_integration). |
| <a id="servicetypebamboo_integration"></a>`BAMBOO_INTEGRATION` | Integration with Bamboo. |
| <a id="servicetypebamboo_service"></a>`BAMBOO_SERVICE` **{warning-solid}** | **Deprecated** in 14.0. This was renamed. Use: [`ServiceType.BAMBOO_INTEGRATION`](#servicetypebamboo_integration). |
| <a id="servicetypebugzilla_integration"></a>`BUGZILLA_INTEGRATION` | Integration with Bugzilla. |
| <a id="servicetypebugzilla_service"></a>`BUGZILLA_SERVICE` **{warning-solid}** | **Deprecated** in 14.0. This was renamed. Use: [`ServiceType.BUGZILLA_INTEGRATION`](#servicetypebugzilla_integration). |
| <a id="servicetypeasana_service"></a>`ASANA_SERVICE` | AsanaService type. |
| <a id="servicetypeassembla_service"></a>`ASSEMBLA_SERVICE` | AssemblaService type. |
| <a id="servicetypebamboo_service"></a>`BAMBOO_SERVICE` | BambooService type. |
| <a id="servicetypebugzilla_service"></a>`BUGZILLA_SERVICE` | BugzillaService type. |
| <a id="servicetypebuildkite_service"></a>`BUILDKITE_SERVICE` | BuildkiteService type. |
| <a id="servicetypecampfire_integration"></a>`CAMPFIRE_INTEGRATION` | Integration with Campfire. |
| <a id="servicetypecampfire_service"></a>`CAMPFIRE_SERVICE` **{warning-solid}** | **Deprecated** in 14.0. This was renamed. Use: [`ServiceType.CAMPFIRE_INTEGRATION`](#servicetypecampfire_integration). |
| <a id="servicetypeconfluence_integration"></a>`CONFLUENCE_INTEGRATION` | Integration with Confluence. |
| <a id="servicetypeconfluence_service"></a>`CONFLUENCE_SERVICE` **{warning-solid}** | **Deprecated** in 14.0. This was renamed. Use: [`ServiceType.CONFLUENCE_INTEGRATION`](#servicetypeconfluence_integration). |
| <a id="servicetypecampfire_service"></a>`CAMPFIRE_SERVICE` | CampfireService type. |
| <a id="servicetypeconfluence_service"></a>`CONFLUENCE_SERVICE` | ConfluenceService type. |
| <a id="servicetypecustom_issue_tracker_service"></a>`CUSTOM_ISSUE_TRACKER_SERVICE` | CustomIssueTrackerService type. |
| <a id="servicetypedatadog_service"></a>`DATADOG_SERVICE` | DatadogService type. |
| <a id="servicetypediscord_service"></a>`DISCORD_SERVICE` | DiscordService type. |
Loading
Loading
Loading
Loading
@@ -6,12 +6,8 @@
it 'exposes all the existing project services' do
expect(described_class.values.keys).to match_array(available_services_enum)
end
end
def available_services_enum
service_types = ::Integration.available_services_types(include_dev: false).map(&:underscore).map(&:upcase)
 
integration_types = ::Integration.available_integration_types(include_dev: false).map(&:underscore).map(&:upcase)
service_types + integration_types
def available_services_enum
::Integration.available_services_types(include_dev: false).map(&:underscore).map(&:upcase)
end
end
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment