* [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>
Co-authored-by: spalger <spalger@users.noreply.github.com>
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
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>
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
* ensure destinationIndex name is defined
* set array for destIndex as invalid
* update type
* reset destIndex already exists error when updating advanced editor
* Instrument Kibana with APM RUM agent (#44281)
* Instrument Kibana with APM RUM agent
* make route-change transaction work with properl url
* extract page-load transaction url from app link
* check if app is hidden and set active:false
* make distributed tracing work and merge config
* remove config/apm.js and address review
* address review comments
* add apm.js to build tassks
* move apm from dev to src
* add @types/hoist-non-react-statics which is required by react rum
* apply changes correctly from master
* Remove unneded changes
* fix apminit
Co-authored-by: Vignesh Shanmugam <vignesh.shanmugam22@gmail.com>
* First iteration of supporting unknown types e2e
* Add missing files
* Fix types issues
* When creating a new field, we check if we actually know the type
If we do know the type, convert the new field to it and throw away
the customTypeJson.
* Fix i18n
* Updated naming to be more consistent
customType -> otherType
* Clean up of custom type in comments and validation feedback
* Codre review suggestions
* Add missing serializer
* Add Array validator to json
* Fix types issues
Do not use otherTypeName in call to getConfig rather wrap it
in it's own component also add some comments.
* Remove otherTypeJson from parameters
* Move fieldConfig to variable outside of the UseField
* Copy update
Change the instruction from "Manually specify" to something more
declarative. Also, manually may sound misleading (suggests there
is an automatic alternative).
Also change the JSON parameter label to something more accurate.
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
Co-authored-by: Sébastien Loix <sabee77@gmail.com>
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
Co-authored-by: Sébastien Loix <sabee77@gmail.com>
Because these messages are used for logging, we should ensure they do
not span multiple lines and confuse log parsers. Since the frontend does
not currently display these newlines, anyway, there is no impact to the
UI.
1. Change logic around deciding wether to use time from url or from saved object. Previously code looked only into if _g is present in the url at all. And didn't consider edge case if time or refreshInterval is missing in _g
2. Fix initial syncing of time from savedobject causing redundant history record. _This changed caused order of _a and g params in url change. One test was affected by it because it relied on the order. I don't think it should be considered breaking as order app puts it's query params shouldn't matter.
3. Fix another race condition between state syncing with url and angular controller $destroy. Similar fix was done before in #57795, but this on covers case when we stay within dashboard app, but change dashboard
4. Fix initial panel state migration causing redundant browser history records
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
* Use docLinks API for APM doc links
Remove `packageInfo` (from ui/metadata package from the legacy platform) and replace with `core.dockLinks` in the `ElasticDocsLink` component.
Fixes#56453Fixes#60945
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
Fixes#62255 . There were some remaining usages of a static defined
index name.
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
* Rename some alert types
* Use sentence case for remaining changes + fix jest test
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
* fix persistence between filter
* Fix API filtering bug
* Show username if full name is empty
* fix user in avatar
* do not allow push to service now when connector is none
* fix types
* Show errors from actions
* update connector name in configure
Co-authored-by: Christos Nasikas <christos.nasikas@elastic.co>
Co-authored-by: Christos Nasikas <christos.nasikas@elastic.co>
* fixes sorting to what it was in 7.6.1
* removes sortable=true from non-sortable columns, fixes naming of sortable column field from activate to enabled to match the field eui expects to sort on, fixes react render warning due to resetting tableRef's current field during a render
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
Clears the Kibana index pattern cache ...
- when reopening the "Create Analytics job" flyout
- after creating a transform or analyticsjob (this fixes moving from transforms to discover after creating a transform)
* Use new grantAPIKeyAsInternalUser and invalidateAPIKeyAsInternalUser APIs from the security plugin
* Update x-pack/plugins/alerting/server/alerts_client_factory.ts
Co-Authored-By: Patrick Mueller <pmuellr@gmail.com>
* ESLint fixes
* Temp test using unverified snapshot
* Revert "Temp test using unverified snapshot"
This reverts commit a39499bed3.
Co-authored-by: Patrick Mueller <pmuellr@gmail.com>
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
Co-authored-by: Patrick Mueller <pmuellr@gmail.com>
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
This PR re-activates the model memory estimation endpoint test and disabled the response value check.
Co-authored-by: Robert Oskamp <robert.oskamp@elastic.co>