mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 17:59:23 -04:00
[Cases] Version cases
and comment
domain and apis (#161954)
## Summary This PR versions the `cases` and `comment` domain objects and their corresponding APIs. It was not possible to do them separately as I got errors due to circular dependencies. ## Notable Changes - The `Comment` type was renamed to `Attachment` - The `Comments` type was renamed to `Attachments` - The `*CommentRequestRt` type was renamed to `*AttachmentPayload` - The `CommentType` type was renamed to `AttachmentType` - The `AttributesType*` type was renamed to `*AttachmentAttributes` - The `*ResponseTypeUserRt` type was renamed to `*AttachmentRt` - The word `comment` got replaced with the word `attachment` in all types - The `RelatedCaseInfo` type was renamed to `RelatedCase` - The `CasesByAlertId` type was renamed to `GetRelatedCasesByAlertResponse` Depends on: https://github.com/elastic/kibana/pull/161783, https://github.com/elastic/kibana/pull/162059 ### Checklist Delete any items that do not apply to this PR. - [x] [Unit or functional tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html) were updated or added to match the most common scenarios ### For maintainers - [x] This was checked for breaking API changes and was [labeled appropriately](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process) --------- Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
This commit is contained in:
parent
da5554f77b
commit
2221ff8b55
388 changed files with 4913 additions and 4494 deletions
|
@ -8,7 +8,7 @@
|
|||
import { useCallback, useState } from 'react';
|
||||
import { i18n } from '@kbn/i18n';
|
||||
import { HttpSetup, MountPoint } from '@kbn/core/public';
|
||||
import { CaseUI, CommentType } from '@kbn/cases-plugin/common';
|
||||
import { CaseUI, AttachmentType } from '@kbn/cases-plugin/common';
|
||||
import { TypedLensByValueInput } from '@kbn/lens-plugin/public';
|
||||
import { CasesDeepLinkId, DRAFT_COMMENT_STORAGE_ID } from '@kbn/cases-plugin/public';
|
||||
import { observabilityFeatureId } from '@kbn/observability-shared-plugin/public';
|
||||
|
@ -29,7 +29,7 @@ async function addToCase(
|
|||
const payload = {
|
||||
persistableStateAttachmentState: { attributes, timeRange },
|
||||
persistableStateAttachmentTypeId: LENS_ATTACHMENT_TYPE,
|
||||
type: CommentType.persistableState,
|
||||
type: AttachmentType.persistableState,
|
||||
owner: owner ?? observabilityFeatureId,
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue