* removed unnecessary filter
* update condition
* added a unit test for mix state
* fix types
* fix type
* updated test
* update
* updates test
* updates test
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
* Default uptime alert type and disable changing type.
* Update functional test to handle new UI flow.
* Fix type error.
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
* match_all query disappears when typed into Lucene query bar
Closes: #52115
* add migrations for searh savedobject type
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
* update cache-control header
* update tests
* update test run config
* remove custom cache-control header for authentication resources
* address test flakiness
* address PR feedback
* revert changes to endpoint test
* revert changes for real this time
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
Fixes two regressions:
- The migration to NP and its related http service changed the format of error messages, because of this, the output in toast error messages ended up less informational. This PR fixes it by reusing the ML plugin's updated getErrorMessage() function.
- The migration to NP and move to NP's useKibanaContext() introduced a regression where the modal overlays of error toast with long error message would no longer work anymore. This PR fixes it by passing on overlays as a component prop instead of using the context hook within the component.
* Remove absoluteToParsedUrl reference in dashboard
* Remove KibanaParsedUrl from visualize
* Fix tests
* Add tests
* Fix saved dashboard
* Fix empty line after resolving conflicts
* Move dashboard to np
* Move migrations back to legacy
* Make it works
* Other fixes
* Move into application folder
* FIx translations
* Make share & home plugins otional
* FIx kbn url tracking, jest tests
* Import from dashboard_constants in FT
* Fix translations order
* Use getStartServices for start plugin deps
* Path fixes
* i18n fix
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
* Handle the case where saving to history may throw an error
We should still show the request result even if localStorage is
full (or any other save error occurs)
* Update src/plugins/console/public/application/hooks/use_send_current_request_to_es/use_send_current_request_to_es.ts
Co-Authored-By: Alison Goryachev <alisonmllr20@gmail.com>
Co-authored-by: Alison Goryachev <alisonmllr20@gmail.com>
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
* [jenkins] refer to sizes in most pipeline code
* switch back to `linux && immutable` for small instances
Co-authored-by: spalger <spalger@users.noreply.github.com>
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
* Unskip
* Set only suite
* Add field search
* Use alternative flaky fix
* Remove extra actions
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
* config shim
* simplify route register calls
* switch to in-sync worker functions
* fix tests
* comment
* fix set up config with defaults
* reduce loc change
* remove test for removed file
* reportingconfigtype
* revert changing executeJobFactory to synchronous
* imports cleanup
* Clean up some awaits
* undo comment
* clean up async
* clean up imports
* add warning logs for config defaults
* Move around some config shim code
* Register routes params take ReportingCore
* usageCollection is an optional dependency
Alerting no longer requires the manage_api_keys privilege, so we are removing it from the detection engine code. Fixes#62387
* removes hasManageApiKeys since alerting is using the internal user api calls, manage_api_keys privilege is no longer necessary
* linting error
* fixes types and removes a test for manage api keys
* removes manage api key reducer and updates leftover tests
* moves userHasNoPermissions repeated code into a function in helpers, adds a few test cases, updated references to new function
* fix test title
* remove userHasNoPermissions function and remove tests, replace with just not canUserCRUD
* Revert "remove userHasNoPermissions function and remove tests, replace with just not canUserCRUD"
This reverts commit 93912e7e22.
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
* Moves enableDataFeed outside of MLPopover
If we accept our dispatch functions, enableDatafeed can be abstracted as
a pure function. The version bound to popover's dispatch functions is
now named 'handleJobStateChange', as that is the callback it's used for.
* Remove unused component state
We no longer deal with jobs in our local state; that's the
responsibility of the useSiemJobs hook
* Prevent user from initiating multiple job installations
When attempting to run a job from the ML Popover, if the job needs to
first be installed, we set the rest of the jobs to be "loading" while
installation is performed.
Without this change, if users are fast enough they can potentially
trigger multiple rule installations, which is undefined behavior and
leads to failures and bad state in our component.
* Remove unused import
* remove all unknowns from all rules table props
* update sorting property type remove optional, also remove unnecessary properties we are not using in sorting, rename paginationMemo prop to pagination, remove null from rulesStatuses type as we are defaulting to empty array now
* fixes type mismatch for sorting and rulesStatuses
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
* [kbn/ui-shared-deps] expand and split
* add two import styles for eui/react-dom that are new
Co-authored-by: spalger <spalger@users.noreply.github.com>
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
* ensure destinationIndex name is defined
* set array for destIndex as invalid
* update type
* reset destIndex already exists error when updating advanced editor