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

[Security Solution][Case] Case connector alert UI #82405

Merged
merged 26 commits into from
Dec 1, 2020

Conversation

cnasikas
Copy link
Member

@cnasikas cnasikas commented Nov 3, 2020

Summary

The PR creates the alert UI of the case connector. The feature is still WIP and is not finalized. It is the first step towards it. For this reason, it is disabled and will be enabled in the future. Also in this PR:

  • Creation of an alert UI for the case connector.
  • Disables case connector for detection engine and creates a flag to enable it if need it.
  • Move useInsertTimeline to cases and improve it.
  • Move connectors configuration to cases.
  • Break case creation page into smaller components.
  • Create case creation form component.
  • Create case creation modal. Create useCreateCaseModal hook.

alerts_demo

Depends on #80870, #82715

Checklist

Delete any items that are not applicable to this PR.

For maintainers

@cnasikas cnasikas added v8.0.0 release_note:skip Skip the PR/issue when compiling release notes v7.11.0 Team:Threat Hunting Security Solution Threat Hunting Team Team: SecuritySolution Security Solutions Team working on SIEM, Endpoint, Timeline, Resolver, etc. labels Nov 3, 2020
@cnasikas cnasikas self-assigned this Nov 3, 2020
@cnasikas cnasikas changed the title [Security Solutino][Case] Case connector alert UI [Security Solutino][Case][skip-ci] Case connector alert UI Nov 3, 2020
@cnasikas cnasikas force-pushed the case_connector_alert branch 2 times, most recently from 59f2c72 to 42c8d31 Compare November 3, 2020 17:42
@cnasikas cnasikas force-pushed the case_connector_alert branch 2 times, most recently from e6cf55a to ce13d5c Compare November 5, 2020 14:32
@cnasikas cnasikas force-pushed the case_connector_alert branch 3 times, most recently from fd2a7b5 to 8d7de4e Compare November 13, 2020 18:05
@cnasikas cnasikas force-pushed the case_connector_alert branch from 8d7de4e to 1dfcd44 Compare November 20, 2020 14:37
@cnasikas cnasikas changed the title [Security Solutino][Case][skip-ci] Case connector alert UI [Security Solutino][Case] Case connector alert UI Nov 20, 2020
@cnasikas cnasikas marked this pull request as ready for review November 20, 2020 15:52
@cnasikas cnasikas requested review from a team as code owners November 20, 2020 15:52
@cnasikas cnasikas force-pushed the case_connector_alert branch 7 times, most recently from dc8e5dc to 337295e Compare November 23, 2020 10:15
@cnasikas cnasikas force-pushed the case_connector_alert branch from 8e867e2 to 0b35fd2 Compare November 30, 2020 14:00
@cnasikas cnasikas force-pushed the case_connector_alert branch from 0b35fd2 to 1d3198f Compare November 30, 2020 16:10
Copy link
Contributor

@XavierM XavierM left a comment

Choose a reason for hiding this comment

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

x-pack/plugins/security_solution/public/cases/components/create/index.tsx Line 27 and x-pack/plugins/security_solution/public/cases/components/use_create_case_modal/create_case_modal.tsx Line 36

The component Submit button is identical, can we create a common one?

Copy link
Contributor

@XavierM XavierM left a comment

Choose a reason for hiding this comment

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

I trust you that you will fix my nit before merging 😍.

I reviewed the code and I do appreciate that you clean up the code nicely around the creation of the case. I also like the cleanup around the tags and adopting the improvement around the kbn-form.

Thanks a lot, Future Engineer will appreciate you on this one!!!!

image

@cnasikas cnasikas force-pushed the case_connector_alert branch 3 times, most recently from 57ddfd3 to 0a9b9e0 Compare December 1, 2020 09:15
@cnasikas cnasikas force-pushed the case_connector_alert branch from 0a9b9e0 to 8208ae8 Compare December 1, 2020 17:44
@cnasikas
Copy link
Member Author

cnasikas commented Dec 1, 2020

@elasticmachine merge upstream

@cnasikas cnasikas merged commit b9a64ba into elastic:master Dec 1, 2020
@cnasikas cnasikas deleted the case_connector_alert branch December 1, 2020 21:39
cnasikas added a commit to cnasikas/kibana that referenced this pull request Dec 1, 2020
Co-authored-by: Patryk Kopycinski <contact@patrykkopycinski.com>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
# Conflicts:
#	x-pack/plugins/security_solution/public/cases/components/create/index.test.tsx
@cnasikas cnasikas changed the title [Security Solutino][Case] Case connector alert UI [Security Solution][Case] Case connector alert UI Dec 1, 2020
@kibanamachine
Copy link
Contributor

💚 Build Succeeded

Metrics [docs]

Module Count

Fewer modules leads to a faster build time

id before after diff
securitySolution 2080 2094 +14

Async chunks

Total size of all lazy-loaded chunks that will be downloaded as the user navigates the app

id before after diff
securitySolution 8.0MB 8.0MB +6.9KB

Distributable file count

id before after diff
default 43183 43195 +12

Page load bundle

Size of the bundles that are downloaded on every page load. Target size is below 100kb

id before after diff
securitySolution 173.1KB 207.1KB +34.0KB
Unknown metric groups

async chunk count

id before after diff
securitySolution 11 15 +4

History

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

cnasikas added a commit that referenced this pull request Dec 2, 2020
)

Co-authored-by: Patryk Kopycinski <contact@patrykkopycinski.com>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
# Conflicts:
#	x-pack/plugins/security_solution/public/cases/components/create/index.test.tsx
gmmorris added a commit to gmmorris/kibana that referenced this pull request Dec 2, 2020
* master:
  [Lens] Show color in flyout instead of auto (elastic#84532)
  [Lens] Use index pattern through service instead of reading saved object (elastic#84432)
  Make it possible to use Kibana anonymous authentication provider with ES anonymous access. (elastic#84074)
  TelemetryCollectionManager: Use X-Pack strategy as an OSS overwrite (elastic#84477)
  migrate away from rest_total_hits_as_int (elastic#84508)
  [Input Control] Custom renderer (elastic#84423)
  Attempt to more granularly separate App Search vs Workplace Search vs shared GitHub notifications (elastic#84713)
  [Security Solutino][Case] Case connector alert UI (elastic#82405)
  [Maps] Support runtime fields in tooltips (elastic#84377)
  [CCR] Fix row actions in follower index and auto-follow pattern tables (elastic#84433)
  [Enterprise Search] Migrate shared Indexing Status component (elastic#84571)
  [maps] remove fields from index-pattern test artifacts (elastic#84379)
  Add routes for use in Sources Schema (elastic#84579)
  Changes UI links for drilldowns (elastic#83971)
  endpoint telemetry cloned endpoint tests (elastic#81498)
  [Fleet] Handler api key creation errors when Fleet Admin is invalid (elastic#84576)
gmmorris added a commit to gmmorris/kibana that referenced this pull request Dec 2, 2020
* master: (72 commits)
  Make alert status fetching more resilient (elastic#84676)
  [APM] Refactor hooks and context (elastic#84615)
  Added word break styles to the texts in the item details card. (elastic#84654)
  [Search] Disable "send to background" when auto-refresh is enabled (elastic#84106)
  Add readme for new palette service (elastic#84512)
  Make all providers to preserve original URL when session expires. (elastic#84229)
  [Lens] Show color in flyout instead of auto (elastic#84532)
  [Lens] Use index pattern through service instead of reading saved object (elastic#84432)
  Make it possible to use Kibana anonymous authentication provider with ES anonymous access. (elastic#84074)
  TelemetryCollectionManager: Use X-Pack strategy as an OSS overwrite (elastic#84477)
  migrate away from rest_total_hits_as_int (elastic#84508)
  [Input Control] Custom renderer (elastic#84423)
  Attempt to more granularly separate App Search vs Workplace Search vs shared GitHub notifications (elastic#84713)
  [Security Solutino][Case] Case connector alert UI (elastic#82405)
  [Maps] Support runtime fields in tooltips (elastic#84377)
  [CCR] Fix row actions in follower index and auto-follow pattern tables (elastic#84433)
  [Enterprise Search] Migrate shared Indexing Status component (elastic#84571)
  [maps] remove fields from index-pattern test artifacts (elastic#84379)
  Add routes for use in Sources Schema (elastic#84579)
  Changes UI links for drilldowns (elastic#83971)
  ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature:Cases Cases feature release_note:skip Skip the PR/issue when compiling release notes Team: SecuritySolution Security Solutions Team working on SIEM, Endpoint, Timeline, Resolver, etc. Team:Threat Hunting Security Solution Threat Hunting Team v7.11.0 v8.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants