-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
[SIEM] [CASES] bug/clean up phase I #61354
Conversation
…ed/updated + return all comments
…with pushed data + fix three dot on detail page
Pinging @elastic/siem (Team:SIEM) |
version?: string; | ||
} | ||
|
||
interface PatchComment { | ||
commentId: string; | ||
updatedAttributes: Partial<CommentAttributes & PushedArgs>; | ||
updatedAttributes: Partial<CommentAttributes>; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pick
instead?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we can update any CommentAttributes or do i miss something?
x-pack/legacy/plugins/siem/public/pages/case/components/add_comment/index.tsx
Outdated
Show resolved
Hide resolved
x-pack/legacy/plugins/siem/public/pages/case/components/add_comment/index.tsx
Outdated
Show resolved
Hide resolved
[hasDataToPush, isLoading, theCase.externalService] | ||
); | ||
const handleRenderDataToPush = useCallback(() => { | ||
const lastCaseUpdate = theCase.updatedAt != null ? new Date(theCase.updatedAt) : null; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is the same logic as in use_post_push_to_service.tsx
. can we lift it into a util file?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it is not because one is using CaseUserActions and the other one is using the data in case from the attributes external service
This comment has been minimized.
This comment has been minimized.
💚 Build SucceededHistory
To update your PR or re-run it, just comment with: |
@@ -43,14 +42,35 @@ describe('POST cases', () => { | |||
expect(response.payload.id).toEqual('mock-it'); | |||
expect(response.payload.created_by.username).toEqual('awesome'); | |||
}); | |||
|
|||
it(`Error if you passing status for a new case`, async () => { | |||
const request = httpServerMock.createKibanaRequest({ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
code review ✅
endpoint testing ✅
manual testing ✅
unit testing ✅
LGTM, thanks @XavierM 🚀 🎸
* clean up comments + add update_by/update_at case when comment are added/updated + return all comments * add refresh button + get a better interaction between user + fix bug with pushed data + fix three dot on detail page * fix i18m * review I * review II
* clean up comments + add update_by/update_at case when comment are added/updated + return all comments * add refresh button + get a better interaction between user + fix bug with pushed data + fix three dot on detail page * fix i18m * review I * review II
* clean up comments + add update_by/update_at case when comment are added/updated + return all comments * add refresh button + get a better interaction between user + fix bug with pushed data + fix three dot on detail page * fix i18m * review I * review II
* clean up comments + add update_by/update_at case when comment are added/updated + return all comments * add refresh button + get a better interaction between user + fix bug with pushed data + fix three dot on detail page * fix i18m * review I * review II
Pinging @elastic/security-solution (Team: SecuritySolution) |
Summary