Skip to content

[SIEM] [CASES] bug/clean up phase I - #61354

Merged
XavierM merged 7 commits into
elastic:masterfrom
XavierM:cases-clean-up
Mar 27, 2020
Merged

XavierM merged 7 commits into
elastic:masterfrom
XavierM:cases-clean-up

Conversation

@XavierM

@XavierM XavierM commented Mar 25, 2020

Copy link
Copy Markdown
Contributor

Summary

  • refresh button on case view data
  • improve the post comment api to return all comments
  • three dots, connect ServiceNow actions from case view menu
  • remove comments which have already been pushed to ServiceNow
  • refresh comments when content refreshes

@XavierM XavierM added bug Fixes for quality problems that affect the customer experience release_note:enhancement Team:SIEM v8.0.0 v7.7.0 labels Mar 25, 2020
@XavierM
XavierM requested a review from stephmilovic March 25, 2020 20:52
@XavierM
XavierM requested a review from a team as a code owner March 25, 2020 20:52
@XavierM XavierM self-assigned this Mar 25, 2020
@elasticmachine

Copy link
Copy Markdown
Contributor

Pinging @elastic/siem (Team:SIEM)

@XavierM
XavierM requested a review from cnasikas March 25, 2020 21:44
@stephmilovic stephmilovic mentioned this pull request Mar 25, 2020
22 of 26 tasks
Comment thread x-pack/legacy/plugins/siem/public/containers/case/api.ts
Comment thread x-pack/plugins/case/server/routes/api/utils.ts
interface PatchComment {
commentId: string;
updatedAttributes: Partial<CommentAttributes & PushedArgs>;
updatedAttributes: Partial<CommentAttributes>;

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pick instead?

Copy link
Copy Markdown
Contributor Author

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?

Comment thread x-pack/plugins/case/server/routes/api/cases/helpers.ts
Comment thread x-pack/legacy/plugins/siem/public/pages/case/components/add_comment/index.tsx Outdated
Comment thread x-pack/legacy/plugins/siem/public/pages/case/components/add_comment/index.tsx Outdated
[hasDataToPush, isLoading, theCase.externalService]
);
const handleRenderDataToPush = useCallback(() => {
const lastCaseUpdate = theCase.updatedAt != null ? new Date(theCase.updatedAt) : null;

Copy link
Copy Markdown
Contributor

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?

@XavierM XavierM Mar 26, 2020 •

Copy link
Copy Markdown
Contributor Author

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

@stephmilovic

This comment has been minimized.

Comment thread x-pack/plugins/case/server/routes/api/utils.ts Outdated
Comment thread x-pack/plugins/case/server/routes/api/cases/post_case.ts Outdated
@kibanamachine

Copy link
Copy Markdown
Contributor

💚 Build Succeeded

History

To update your PR or re-run it, just comment with:
@elasticmachine merge upstream

});

it(`Error if you passing status for a new case`, async () => {
const request = httpServerMock.createKibanaRequest({

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@stephmilovic stephmilovic left a comment

Copy link
Copy Markdown
Contributor

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 🚀 🎸

@XavierM
XavierM merged commit 327f5a0 into elastic:master Mar 27, 2020
XavierM added a commit to XavierM/kibana that referenced this pull request Mar 27, 2020
* 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
XavierM added a commit to XavierM/kibana that referenced this pull request Mar 27, 2020
* 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
XavierM added a commit that referenced this pull request Mar 27, 2020
* 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
XavierM added a commit that referenced this pull request Mar 27, 2020
* 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
@XavierM
XavierM deleted the cases-clean-up branch June 4, 2020 16:05
@MindyRS MindyRS added the Team: SecuritySolution Security Solutions Team working on SIEM, Endpoint, Timeline, Resolver, etc. label Sep 23, 2021
@elasticmachine

Copy link
Copy Markdown
Contributor

Pinging @elastic/security-solution (Team: SecuritySolution)

patrykkopycinski pushed a commit to patrykkopycinski/kibana that referenced this pull request May 6, 2026
* 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Fixes for quality problems that affect the customer experience release_note:enhancement Team: SecuritySolution Security Solutions Team working on SIEM, Endpoint, Timeline, Resolver, etc. Team:SIEM v7.7.0 v8.0.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants