Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ResponseOps][Cases] Make custom fields and the cases webhook GA #187880

Merged
merged 3 commits into from
Jul 9, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 0 additions & 12 deletions x-pack/plugins/cases/docs/openapi/bundled.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,6 @@ paths:
- elastic
customFields:
type: array
x-technical-preview: true
description: Custom fields configuration details.
items:
type: object
Expand Down Expand Up @@ -478,7 +477,6 @@ paths:
- elastic
customFields:
type: array
x-technical-preview: true
description: Custom fields configuration details.
items:
type: object
Expand Down Expand Up @@ -677,7 +675,6 @@ paths:
- elastic
customFields:
type: array
x-technical-preview: true
description: Custom fields configuration details.
items:
type: object
Expand Down Expand Up @@ -1548,7 +1545,6 @@ paths:
- elastic
customFields:
type: array
x-technical-preview: true
description: Custom fields configuration details.
items:
type: object
Expand Down Expand Up @@ -1746,7 +1742,6 @@ paths:
- elastic
customFields:
type: array
x-technical-preview: true
description: Custom fields configuration details.
items:
type: object
Expand Down Expand Up @@ -1946,7 +1941,6 @@ paths:
- elastic
customFields:
type: array
x-technical-preview: true
description: Custom fields configuration details.
items:
type: object
Expand Down Expand Up @@ -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:
Expand Down Expand Up @@ -3804,7 +3797,6 @@ components:
customFields:
type: array
description: Custom field values for the case.
x-technical-preview: true
items:
type: object
properties:
Expand Down Expand Up @@ -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:
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -4135,7 +4125,6 @@ components:
customFields:
type: array
description: Custom fields case configuration.
x-technical-preview: true
minItems: 0
maxItems: 10
items:
Expand Down Expand Up @@ -4216,7 +4205,6 @@ components:
customFields:
type: array
description: Custom fields case configuration.
x-technical-preview: true
items:
type: object
required:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
closure_type:
$ref: 'closure_types.yaml'
connector:
connector:
type: object
properties:
$ref: 'case_configure_connector_properties.yaml'
Expand All @@ -12,23 +12,22 @@ 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
properties:
$ref: 'case_configure_customfields.yaml'
error:
type:
- "string"
- "null"
- 'string'
- 'null'
examples:
- null
id:
Expand Down Expand Up @@ -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=
- WzIwNzMsMV0=
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down Expand Up @@ -81,7 +81,6 @@ properties:
customFields:
type: array
description: Custom field values for the case.
x-technical-preview: true
items:
type: object
properties:
Expand All @@ -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
Expand Down Expand Up @@ -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'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ properties:
customFields:
type: array
description: Custom fields case configuration.
x-technical-preview: true
minItems: 0
maxItems: 10
items:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -20,7 +20,6 @@ properties:
customFields:
type: array
description: Custom fields case configuration.
x-technical-preview: true
items:
type: object
required:
Expand All @@ -38,4 +37,4 @@ properties:
To retrieve the version value, use the get configuration API.
type: string
examples:
- WzIwMiwxXQ==
- WzIwMiwxXQ==
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
10 changes: 1 addition & 9 deletions x-pack/plugins/cases/public/components/custom_fields/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -68,14 +67,7 @@ const CustomFieldsComponent: React.FC<Props> = ({
return canAddCustomFields ? (
<EuiDescribedFormGroup
fullWidth
title={
<EuiFlexGroup alignItems="center" gutterSize="none">
<EuiFlexItem grow={false}>{i18n.TITLE}</EuiFlexItem>
<EuiFlexItem grow={false}>
<ExperimentalBadge />
</EuiFlexItem>
</EuiFlexGroup>
}
title={<h3>{i18n.TITLE}</h3>}
description={<p>{i18n.DESCRIPTION}</p>}
data-test-subj="custom-fields-form-group"
>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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',
{
Expand Down