* Writing failing test for duplicate ids
* Test is correctly failing prior to bug fix
* Working jest tests
* Adding more jest tests
* Fixing jest tests
* Adding await and gzip
* Fixing type errors
* Updating log message
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
* Removing empty collections when not filtering on status
* Fixing add comment response
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>
* chore(NA): rebalance cigroup1 into cigroup5
* chore(NA): get list api integration into cigropup1 again
* chore(NA): get apm integration basic into cigropup1 again
* chore(NA): move back apm_api_integration trial tests into ciGroup1
* chore(NA): move exception operators data types into ciGroup1 again
* chore(NA): move detection engine api security and spaces back into ciGroup1
* chore(NA): add a new xpack cigroup11
* chore(NA): correctly create 11 xpack ci groups
* chore(NA): try to balance ciGroup2 and 8
* chore(NA): reset number of xpack parallel worker builds to 10
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
* 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>
* Rename Whitelist to AllowList in Actions and Alerting
* revert not related change
* Fixed due to comments and tests failing
* Fixed failing tests
* Fixed due to comments
* Changed actions API endpoints urls to follow Kibana STYLEGUIDE
* Fixed tests
* fixed test
* fixed test
* resolved conflicts
* Fixed siem tests
* Fixed failing test
* fixed readme and test
* Changed actions api urls to follow the template 'api/{plugin}/{type}/{id}
* Fixed type checks
* Fixed tests and API
* fixed tests
* Fixed type checks
* fixed type check