-
Notifications
You must be signed in to change notification settings - Fork 8.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Cases] Renaming comment type (#156086)
This PR: - Renames `CommentResponseRt` to `CommentRt` - Create `CommentUI` for the UI based on the snake to camel case version of `Comment` - Introduces a `AttachmentTransformedAttributes` type that should be used when returning `CommentAttributes` from the service layer
- Loading branch information
1 parent
a3fad62
commit b80b4c2
Showing
27 changed files
with
147 additions
and
138 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,7 +6,7 @@ | |
*/ | ||
import type { FileJSON } from '@kbn/shared-ux-file-types'; | ||
|
||
import type { ActionLicense, CasesUI, CaseUI, CasesStatus, UserActionUI, Comment } from './types'; | ||
import type { ActionLicense, CasesUI, CaseUI, CasesStatus, UserActionUI, CommentUI } from './types'; | ||
|
||
import type { | ||
ResolvedCase, | ||
|
@@ -28,7 +28,7 @@ import type { | |
CasesStatusResponse, | ||
UserAction, | ||
UserActions, | ||
CommentResponse, | ||
Comment, | ||
ActionCategory, | ||
UserActionTypes, | ||
UserActionWithResponse, | ||
|
@@ -73,7 +73,7 @@ export const elasticUser = { | |
|
||
export const tags: string[] = ['coke', 'pepsi']; | ||
|
||
export const basicComment: Comment = { | ||
export const basicComment: CommentUI = { | ||
comment: 'Solve this fast!', | ||
type: CommentType.user, | ||
id: basicCommentId, | ||
|
@@ -125,7 +125,7 @@ export const alertCommentWithIndices: AlertComment = { | |
version: 'WzQ3LDFc', | ||
}; | ||
|
||
export const hostIsolationComment = (overrides?: Record<string, unknown>): Comment => { | ||
export const hostIsolationComment = (overrides?: Record<string, unknown>): CommentUI => { | ||
return { | ||
type: CommentType.actions, | ||
comment: 'I just isolated the host!', | ||
|
@@ -151,7 +151,7 @@ export const hostIsolationComment = (overrides?: Record<string, unknown>): Comme | |
}; | ||
}; | ||
|
||
export const hostReleaseComment: () => Comment = () => { | ||
export const hostReleaseComment: () => CommentUI = () => { | ||
return { | ||
type: CommentType.actions, | ||
comment: 'I just released the host!', | ||
|
@@ -363,7 +363,7 @@ export const basicCasePost: CaseUI = { | |
updatedBy: null, | ||
}; | ||
|
||
export const basicCommentPatch: Comment = { | ||
export const basicCommentPatch: CommentUI = { | ||
...basicComment, | ||
updatedAt: basicUpdatedAt, | ||
updatedBy: { | ||
|
@@ -469,7 +469,7 @@ export const elasticUserSnake = { | |
email: '[email protected]', | ||
}; | ||
|
||
export const basicCommentSnake: CommentResponse = { | ||
export const basicCommentSnake: Comment = { | ||
comment: 'Solve this fast!', | ||
type: CommentType.user, | ||
id: basicCommentId, | ||
|
@@ -483,7 +483,7 @@ export const basicCommentSnake: CommentResponse = { | |
version: 'WzQ3LDFc', | ||
}; | ||
|
||
export const externalReferenceAttachmentSnake: CommentResponse = { | ||
export const externalReferenceAttachmentSnake: Comment = { | ||
type: CommentType.externalReference, | ||
id: 'external-reference-comment-id', | ||
externalReferenceId: 'my-id', | ||
|
@@ -500,7 +500,7 @@ export const externalReferenceAttachmentSnake: CommentResponse = { | |
version: 'WzQ3LDFc', | ||
}; | ||
|
||
export const persistableStateAttachmentSnake: CommentResponse = { | ||
export const persistableStateAttachmentSnake: Comment = { | ||
type: CommentType.persistableState, | ||
id: 'persistable-state-comment-id', | ||
persistableStateAttachmentState: { test_foo: 'foo' }, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.