* Removing empty collections when not filtering on status
* Fixing add comment response
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
* First pass at bringing in more logging
* Adding more logging to routes
* Adding more logging fixing tests
* Removing duplicate case string in logs
* Removing unneeded export
* Fixing type error
* Adding line breaks to make the messages more readable
* Fixing type errors
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
* Adding type field to client
* Removing context and adding association type
* Handle alerts from multiple indices
* Adding flow for adding a sub case
* Making progress on creating alerts from rules
* Refactored add comment to handle case and sub case
* Starting sub case API and refactoring of case client
* Fleshing out find cases
* Finished the find cases api
* Filtering comments by association type
* Fixing tests and types
* Updating snapshots
* Cleaning up comment references
* Working unit tests
* Fixing integration tests and got ES to work
* Unit tests and api integration test working
* Refactoring find and get_status
* Starting patch, and update
* script for sub cases
* Removing converted_by and fixing type errors
* Adding docs for script
* Removing converted_by and fixing integration test
* init expanded rows
* Adding sub case id to comment routes
* Removing stringify comparison
* styling
* clean up
* add status column
* styling
* hide actions if it has sub-cases
* Adding delete api and tests
* generated alert
* Updating license
* missed license files
* Integration tests passing
* Adding more tests for sub cases
* wip
* Find int tests, scoped client, patch sub user actions
* fixing types and call cluster
* fixing get sub case param issue
* Adding user actions for sub cases
* Preventing alerts on collections and refactoring user
* Allowing type to be updated for ind cases
* subcases attached to api
* combine enum on UI for simplification
* Refactoring and writing tests
* Fixing sub case status filtering
* add alerts count
* Adding more tests not allowing gen alerts patch
* Working unit tests
* Push to connector gets all sub case comments
* Writing more tests and cleaning up
* Updating push functionality for generated alerts and sub cases
* Adding comment about updating collection sync
* use CaseType to check if it is a sub-case
* fix types and disable selection if it has subcases
* isEmpty
* Detection rule correctly adding alerts to sub case
* update api and functionality to accept sub case
* integration part I
* fix integration with case connector
* Fix manual attach
* Fix types
* Fix bug when updating
* Fix bug with user actions
* Fix react key error
* Fix bug when pushing a lot of alerts
* fix lint error
* Fix limit
* fix title on sub case
* fix unit tests
* rm bazel
* fix unit tests and cypress test
* enable delete case icon
* revert change
* review
* Fix the scripts alerts generation code
* temp work
* Fix rule types and add migration
* fix types
* fix types error
* Remove query alerts
* Fix rules
* fix types
* fix lint error
* fix types
* delete a sub case
* rm unused i18n
* fix delete cases
* fix unit tests
* fix unit test
* update Case type
* fix types
* fix unit test
* final integration between rule and case
* fix integration test
* fix unit test + bring back connector in action of rule
Co-authored-by: Jonathan Buttner <jonathan.buttner@elastic.co>
Co-authored-by: Xavier Mouligneau <189600+XavierM@users.noreply.github.com>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Christos Nasikas <christos.nasikas@elastic.co>
* Adding type field to client
* Removing context and adding association type
* Handle alerts from multiple indices
* Adding flow for adding a sub case
* Making progress on creating alerts from rules
* Refactored add comment to handle case and sub case
* Starting sub case API and refactoring of case client
* Fleshing out find cases
* Finished the find cases api
* Filtering comments by association type
* Fixing tests and types
* Updating snapshots
* Cleaning up comment references
* Working unit tests
* Fixing integration tests and got ES to work
* Unit tests and api integration test working
* Refactoring find and get_status
* Starting patch, and update
* script for sub cases
* Removing converted_by and fixing type errors
* Adding docs for script
* Removing converted_by and fixing integration test
* Adding sub case id to comment routes
* Removing stringify comparison
* Adding delete api and tests
* Updating license
* missed license files
* Integration tests passing
* Adding more tests for sub cases
* Find int tests, scoped client, patch sub user actions
* fixing types and call cluster
* fixing get sub case param issue
* Adding user actions for sub cases
* Preventing alerts on collections and refactoring user
* Allowing type to be updated for ind cases
* Refactoring and writing tests
* Fixing sub case status filtering
* Adding more tests not allowing gen alerts patch
* Working unit tests
* Push to connector gets all sub case comments
* Writing more tests and cleaning up
* Updating push functionality for generated alerts and sub cases
* Adding comment about updating collection sync
* Refactoring update alert status for sub cases and removing request and cleaning up
* Addressing alert service feedback
* Fixing sub case sync bug and cleaning up comment types
* Addressing more feedback
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
* first pass
* migrate more plugins
* migrate yet more plugins
* more oss plugins
* fix test file
* change Plugin signature on the client-side too
* fix test types
* migrate OSS client-side plugins
* migrate OSS client-side test plugins
* migrate xpack client-side plugins
* revert fix attempt on fleet plugin
* fix presentation start signature
* fix yet another signature
* add warnings for server-side async plugins in dev mode
* remove unused import
* fix isPromise
* Add client-side deprecations
* update migration examples
* update generated doc
* fix xpack unit tests
* nit
* (will be reverted) explicitly await for license to be ready in the auth hook
* Revert "(will be reverted) explicitly await for license to be ready in the auth hook"
This reverts commit fdf73feb
* restore await on on promise contracts
* Revert "(will be reverted) explicitly await for license to be ready in the auth hook"
This reverts commit fdf73feb
* Revert "restore await on on promise contracts"
This reverts commit c5f2fe51
* add delay before starting tests in FTR
* update deprecation ts doc
* add explicit contract for monitoring setup
* migrate monitoring plugin to sync
* change plugin timeout to 10sec
* use delay instead of silence
* Init connector
* Add test
* Improve comment type
* Add integration tests
* Fix i18n
* Improve tests
* Show unknown when username is null
* Improve comment type
* Pass connector to case client
* Improve type after PR #82125
* Add comment migration test
* Fix integration tests
* Fix reporter on table
* Create case connector ui
* Add connector to README
* Improve casting on executor
* Translate name
* Improve test
* Create comment type enum
* Fix type
* Fix i18n
* Move README to cases
* Filter out case connector from alerting
Co-authored-by: Mike Côté <mikecote@users.noreply.github.com>
Co-authored-by: Mike Côté <mikecote@users.noreply.github.com>
* Draft ServiceNow generic implementation
* simple working servicenow incident per alert
* fixed running times
* rely on externalId for update incident on the next execution
* Added consumer to the action type to be able to split ServiceNow for Cases and Alerts
* Added subActions support for ServiceNow action form
* Basic version for Alerts part for ServiceNow
* Keep Case ServiceNow functionality working
* Revert changes on app_router
* Fixed type checks
* Fixed language check issues
* Fixed actions unit tests
* Fixed functional tests
* Fixed jest tests
* fixed tests
* Copied case mappings to alerting plugin
* made consumer optional
* Cleanup tests
* more cleanup
* Fixed jest tests and type checks
* fixed tests
* fixed servicenow validation tests
* Added ServiceNow unit tests
* Removed consumer for actions
* fixed client side isCaseOwned support
* fixed failing tests
* fixed jest tests
* Fixed URL validation
* fixed due to comments
* fixed tests
* fixed jest tests
* Fixed due to comments. Moved ServiceNow filtering in case plugin to server side
* fixed mock for ServiceNow
* fixed consumer config
* fixed test
* fixed type check
* Fixed jest test
* fixed type check
* add babel support for export type
* bump ts version to 3.9.3
* rebuild kbn-pm
* bump typescript-eslint
* fix error in security plugin UI
* check export as works
* fix app migration type
* use correct test subj attribute
* fix errors from the old PR
* embeddable is already passed in props
* explicitly define type of fetch
* add some types for viz
* fix fetch type p.2
* add null to allow spreading without type errors due to override
* add type guard to fix type error
* cast to any, since cannot assign unknown
* add timestamp to known types
* fix type error in fetch
* fix type error. id is always defined in attibutes
* declare a type
* move ts-ignore to the lines with errors
* declare tuple type explicitly
* mute type error. cannot assign unknown
* fix errors. id is always defined
* fix error type
* fix override errors. id is always defined
* fix error. extends any doesn't work anymore
* fix type error. type is always defined
* env doesn't always contain values
* fix type error
* cast to string
* add: logs is already declared in getNodeLogsUrl
* state is already passed in props
* fix some errors in timelion
* number of fragments is always defined
* 'absolute' is not just string, but value
* TEMP: option is always defined
* always true if cast to promise manually
* both props are always defined
* explicitly define returned SO type
* workaround type
* bump tslib to be compatible with ts v3.9
* test private property
* rebuild kbn-pm
* Fix ts errors for beats management
* Fix type inference broken by the TS 3.9 upgrade
* Fix ingest manager saved object attributes typings
* Fix TS errors in cross_cluster_replication and index_management.
* Fix TS error in Watcher.
* roll back colorRange wrong type
* fix security plugin types
* TypeScript 3.9 fixes for APM
* Fix ColorRange types.
* fix actions & alerts errors. ByGidi
* fix lists error
* More APM fixes
* Remove paramaterization from `removeEmpty in agent config SettingsPage component (it's only used there and doesn't need to be parameterized.)
* Add option chain for case in registerTransactionDurationAlertType
* Cast `overallValue` in transform_metrics_chart
* Use more specific type for custom link filters
* Add more option chaining for local UI filters buckets response
* Remove unused parameters from routes
* Fix getProjection type parameter
* Use destructuring in serviceNodesLocalFiltersRoute to hide `never` error
* Revert `UnionToIntersection` change in `AggregationResponseMap`
Fixes#67804.
* fix platform type error
* Fix visualizations types.
* Fix data plugin types.
* bump TS version to 3.9.5
* Fix telemetry TS errors
* Fix dashboard code
* Adding Canvas Fixes for TS 3.9
* Fix case and security_solution types
* roll back to the old export syntax. new one might cause problems in api-extractor
* update docs
* Fix timelion code
* Fix meta
* Fix types
* fix type errors om ingest_manager
* bump babel deps
* enable private props & methods syntax
* update kbn-pm dist
* whitelist 0BSD license
* use @babel/plugin-proposal-private-methods in default set as well
* disable new babel plugins
* Revert "disable new babel plugins"
This reverts commit 04d959431d.
* cleanup security_solution types
* Fixes type error for newer TypeScript
* update docs
Co-authored-by: Nicolas Chaulet <nicolas.chaulet@elastic.co>
Co-authored-by: Felix Stürmer <stuermer@weltenwort.de>
Co-authored-by: CJ Cenizal <cj@cenizal.com>
Co-authored-by: Larry Gregory <larry.gregory@elastic.co>
Co-authored-by: Nathan L Smith <smith@nlsmith.com>
Co-authored-by: Walter Rafelsberger <walter@elastic.co>
Co-authored-by: Luke Elmers <luke.elmers@elastic.co>
Co-authored-by: Alejandro Fernández Haro <alejandro.haro@elastic.co>
Co-authored-by: Tim Roes <tim.roes@elastic.co>
Co-authored-by: Clint Andrew Hall <clint.hall@elastic.co>
Co-authored-by: Patryk Kopycinski <contact@patrykkopycinski.com>
Co-authored-by: FrankHassanabad <frank.hassanabad@elastic.co>
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>