From 61386d89fe24f5cbfcc15e39918837433c426f92 Mon Sep 17 00:00:00 2001 From: Christos Nasikas Date: Tue, 9 Jul 2024 18:47:22 +0300 Subject: [PATCH 1/3] Make custom fields GA --- .../cases/public/components/custom_fields/index.tsx | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/x-pack/plugins/cases/public/components/custom_fields/index.tsx b/x-pack/plugins/cases/public/components/custom_fields/index.tsx index a5068df682ad1..afe3a4ad04b32 100644 --- a/x-pack/plugins/cases/public/components/custom_fields/index.tsx +++ b/x-pack/plugins/cases/public/components/custom_fields/index.tsx @@ -21,7 +21,6 @@ import { useCasesContext } from '../cases_context/use_cases_context'; import type { CustomFieldsConfiguration } from '../../../common/types/domain'; import { MAX_CUSTOM_FIELDS_PER_CASE } from '../../../common/constants'; import { CustomFieldsList } from './custom_fields_list'; -import { ExperimentalBadge } from '../experimental_badge/experimental_badge'; export interface Props { customFields: CustomFieldsConfiguration; @@ -68,14 +67,7 @@ const CustomFieldsComponent: React.FC = ({ return canAddCustomFields ? ( - {i18n.TITLE} - - - - - } + title={

{i18n.TITLE}

} description={

{i18n.DESCRIPTION}

} data-test-subj="custom-fields-form-group" > From 0e09d1f7f77f0e5e3a124b60fac6107a23f74416 Mon Sep 17 00:00:00 2001 From: Christos Nasikas Date: Tue, 9 Jul 2024 18:47:43 +0300 Subject: [PATCH 2/3] Make the cases webhook GA --- .../public/connector_types/cases_webhook/webhook.tsx | 1 - 1 file changed, 1 deletion(-) diff --git a/x-pack/plugins/stack_connectors/public/connector_types/cases_webhook/webhook.tsx b/x-pack/plugins/stack_connectors/public/connector_types/cases_webhook/webhook.tsx index 6e86df15c09c7..c547553260813 100644 --- a/x-pack/plugins/stack_connectors/public/connector_types/cases_webhook/webhook.tsx +++ b/x-pack/plugins/stack_connectors/public/connector_types/cases_webhook/webhook.tsx @@ -27,7 +27,6 @@ export function getConnectorType(): ConnectorTypeModel< defaultMessage: 'Send a request to a Case Management web service.', } ), - isExperimental: true, actionTypeTitle: i18n.translate( 'xpack.stackConnectors.components.casesWebhookxpack.stackConnectors.components.casesWebhook.connectorTypeTitle', { From 204960fae9fb3a61a35f8808d74941d8f478371c Mon Sep 17 00:00:00 2001 From: Christos Nasikas Date: Tue, 9 Jul 2024 19:10:05 +0300 Subject: [PATCH 3/3] Remove x-technical-preview from OAS --- .../plugins/cases/docs/openapi/bundled.yaml | 12 -------- .../case_configure_response_properties.yaml | 29 +++++++++---------- .../schemas/case_response_properties.yaml | 17 +++++------ .../schemas/create_case_request.yaml | 1 - .../set_case_configuration_request.yaml | 1 - .../update_case_configuration_request.yaml | 5 ++-- .../schemas/update_case_request.yaml | 1 - 7 files changed, 24 insertions(+), 42 deletions(-) diff --git a/x-pack/plugins/cases/docs/openapi/bundled.yaml b/x-pack/plugins/cases/docs/openapi/bundled.yaml index 08032c30e7f50..7aeea6de8e052 100644 --- a/x-pack/plugins/cases/docs/openapi/bundled.yaml +++ b/x-pack/plugins/cases/docs/openapi/bundled.yaml @@ -281,7 +281,6 @@ paths: - elastic customFields: type: array - x-technical-preview: true description: Custom fields configuration details. items: type: object @@ -478,7 +477,6 @@ paths: - elastic customFields: type: array - x-technical-preview: true description: Custom fields configuration details. items: type: object @@ -677,7 +675,6 @@ paths: - elastic customFields: type: array - x-technical-preview: true description: Custom fields configuration details. items: type: object @@ -1548,7 +1545,6 @@ paths: - elastic customFields: type: array - x-technical-preview: true description: Custom fields configuration details. items: type: object @@ -1746,7 +1742,6 @@ paths: - elastic customFields: type: array - x-technical-preview: true description: Custom fields configuration details. items: type: object @@ -1946,7 +1941,6 @@ paths: - elastic customFields: type: array - x-technical-preview: true description: Custom fields configuration details. items: type: object @@ -3305,7 +3299,6 @@ components: type: array description: | Custom field values for a case. Any optional custom fields that are not specified in the request are set to null. - x-technical-preview: true minItems: 0 maxItems: 10 items: @@ -3804,7 +3797,6 @@ components: customFields: type: array description: Custom field values for the case. - x-technical-preview: true items: type: object properties: @@ -3933,7 +3925,6 @@ components: type: array description: | Custom field values for a case. Any optional custom fields that are not specified in the request are set to null. - x-technical-preview: true minItems: 0 maxItems: 10 items: @@ -4053,7 +4044,6 @@ components: $ref: '#/components/schemas/connector_types' customFields: type: array - x-technical-preview: true description: Custom field values in the template. items: type: object @@ -4135,7 +4125,6 @@ components: customFields: type: array description: Custom fields case configuration. - x-technical-preview: true minItems: 0 maxItems: 10 items: @@ -4216,7 +4205,6 @@ components: customFields: type: array description: Custom fields case configuration. - x-technical-preview: true items: type: object required: diff --git a/x-pack/plugins/cases/docs/openapi/components/schemas/case_configure_response_properties.yaml b/x-pack/plugins/cases/docs/openapi/components/schemas/case_configure_response_properties.yaml index 26a7ed41685a1..1085e1f8ef974 100644 --- a/x-pack/plugins/cases/docs/openapi/components/schemas/case_configure_response_properties.yaml +++ b/x-pack/plugins/cases/docs/openapi/components/schemas/case_configure_response_properties.yaml @@ -1,6 +1,6 @@ closure_type: $ref: 'closure_types.yaml' -connector: +connector: type: object properties: $ref: 'case_configure_connector_properties.yaml' @@ -12,14 +12,13 @@ created_at: created_by: type: object required: - - email - - full_name - - username + - email + - full_name + - username properties: $ref: 'user_properties.yaml' customFields: type: array - x-technical-preview: true description: Custom fields configuration details. items: type: object @@ -27,8 +26,8 @@ customFields: $ref: 'case_configure_customfields.yaml' error: type: - - "string" - - "null" + - 'string' + - 'null' examples: - null id: @@ -58,22 +57,22 @@ templates: $ref: 'templates.yaml' updated_at: type: - - "string" - - "null" + - 'string' + - 'null' format: date-time examples: - 2022-06-01T19:58:48.169Z updated_by: type: - - "object" - - "null" + - 'object' + - 'null' required: - - email - - full_name - - username + - email + - full_name + - username properties: $ref: 'user_properties.yaml' version: type: string examples: - - WzIwNzMsMV0= \ No newline at end of file + - WzIwNzMsMV0= diff --git a/x-pack/plugins/cases/docs/openapi/components/schemas/case_response_properties.yaml b/x-pack/plugins/cases/docs/openapi/components/schemas/case_response_properties.yaml index 5aaa73416bacd..a0ef24983502f 100644 --- a/x-pack/plugins/cases/docs/openapi/components/schemas/case_response_properties.yaml +++ b/x-pack/plugins/cases/docs/openapi/components/schemas/case_response_properties.yaml @@ -27,13 +27,13 @@ properties: $ref: 'assignees.yaml' category: type: - - "string" - - "null" + - 'string' + - 'null' description: The case category. closed_at: type: - - "string" - - "null" + - 'string' + - 'null' format: date-time closed_by: $ref: 'case_response_closed_by_properties.yaml' @@ -81,7 +81,6 @@ properties: customFields: type: array description: Custom field values for the case. - x-technical-preview: true items: type: object properties: @@ -92,8 +91,8 @@ properties: - A case description. duration: type: - - "integer" - - "null" + - 'integer' + - 'null' description: > The elapsed time from the creation of the case to its closure (in seconds). If the case has not been closed, the duration is set to null. If the case @@ -135,8 +134,8 @@ properties: - 0 updated_at: type: - - "string" - - "null" + - 'string' + - 'null' format: date-time updated_by: $ref: 'case_response_updated_by_properties.yaml' diff --git a/x-pack/plugins/cases/docs/openapi/components/schemas/create_case_request.yaml b/x-pack/plugins/cases/docs/openapi/components/schemas/create_case_request.yaml index d58dea6472c21..94e9ecae9254d 100644 --- a/x-pack/plugins/cases/docs/openapi/components/schemas/create_case_request.yaml +++ b/x-pack/plugins/cases/docs/openapi/components/schemas/create_case_request.yaml @@ -40,7 +40,6 @@ properties: description: > Custom field values for a case. Any optional custom fields that are not specified in the request are set to null. - x-technical-preview: true minItems: 0 maxItems: 10 items: diff --git a/x-pack/plugins/cases/docs/openapi/components/schemas/set_case_configuration_request.yaml b/x-pack/plugins/cases/docs/openapi/components/schemas/set_case_configuration_request.yaml index 6bcfad6a736c1..dd275406264b5 100644 --- a/x-pack/plugins/cases/docs/openapi/components/schemas/set_case_configuration_request.yaml +++ b/x-pack/plugins/cases/docs/openapi/components/schemas/set_case_configuration_request.yaml @@ -21,7 +21,6 @@ properties: customFields: type: array description: Custom fields case configuration. - x-technical-preview: true minItems: 0 maxItems: 10 items: diff --git a/x-pack/plugins/cases/docs/openapi/components/schemas/update_case_configuration_request.yaml b/x-pack/plugins/cases/docs/openapi/components/schemas/update_case_configuration_request.yaml index 56db4597f8b95..e359eea8e1030 100644 --- a/x-pack/plugins/cases/docs/openapi/components/schemas/update_case_configuration_request.yaml +++ b/x-pack/plugins/cases/docs/openapi/components/schemas/update_case_configuration_request.yaml @@ -2,7 +2,7 @@ title: Update case configuration request description: > You can update settings such as the closure type, custom fields, templates, and the default connector for cases. type: object -required: +required: - version properties: closure_type: @@ -20,7 +20,6 @@ properties: customFields: type: array description: Custom fields case configuration. - x-technical-preview: true items: type: object required: @@ -38,4 +37,4 @@ properties: To retrieve the version value, use the get configuration API. type: string examples: - - WzIwMiwxXQ== \ No newline at end of file + - WzIwMiwxXQ== diff --git a/x-pack/plugins/cases/docs/openapi/components/schemas/update_case_request.yaml b/x-pack/plugins/cases/docs/openapi/components/schemas/update_case_request.yaml index 3288f5a9476c0..8062128c03450 100644 --- a/x-pack/plugins/cases/docs/openapi/components/schemas/update_case_request.yaml +++ b/x-pack/plugins/cases/docs/openapi/components/schemas/update_case_request.yaml @@ -34,7 +34,6 @@ properties: description: > Custom field values for a case. Any optional custom fields that are not specified in the request are set to null. - x-technical-preview: true minItems: 0 maxItems: 10 items: