* [Integration] Fix landing page for Add APM Integration link in Observability (#116847) (#116851)
* Fix error count alert e2e test
Ensure the form has completely loaded before clicking the save button.
Fixes#116946.
Co-authored-by: Nathan L Smith <smith@nlsmith.com>
Co-authored-by: Oliver Gupte <ogupte@users.noreply.github.com>
Co-authored-by: Oliver Gupte <olivergupte@gmail.com>
Co-authored-by: Nathan L Smith <smith@nlsmith.com>
* [Lens] Fix editor blowing up when working on non-exisiting data view (#114816)
* correct styles for config panel (if data view is unavailable, the margins are still ok)
* temp
* fix data views bugs
* add test
* integrate feedback
* Update datapanel.tsx
* Update x-pack/plugins/lens/public/indexpattern_datasource/loader.ts
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
* Update errors2.json
* Update errors.json
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
* WIP: Adding basic structure/logic for rule preview deprecation
* Alert users that they need a new privilege for rule preview in 8.0
* If we find existing roles that have read access to the signals index,
list their names for the user.
* Refactor and unit test rule preview privilege deprecation
* Wire up our deprecation handler
* Fix deprecation translation
Use i18n interpolation instead of a template literal.
* Update signals preview with alerts-as-data index
* Copy: rename
"signals" -> "detection alerts"
* Update tests in response to copy changes
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
* Fix translations and allow negative operators
* UI fixes
* Remove useCallbacks and update test
Co-authored-by: David Sánchez <davidsansol92@gmail.com>
## Summary
e2e tests are still seeing flake with conflicts and it looks like it _might_ be with querying and not with inserting data. Hard to tell. This PR:
* Adds more console logging when the response is not a 200
* Removes the 200 expect statement and hopes for the best but should blow up if it's not 200 in a different way and we will get the console logging statements.
* Fixes one other flake with the matrix histogram having different counts. We have encountered this before and are applying the same fix which is to just have it check > 0.
* This does fix the timeouts seen where 1 in every 1k rule runs, a rule will not fire until _after_ the 5 minute mark. The timeouts were seen when running the flake runner.
Flake failures around `conflict`:
https://github.com/elastic/kibana/issues/116926https://github.com/elastic/kibana/issues/116904https://github.com/elastic/kibana/issues/116231
Not saying this is going to fix those yet, but it's the last 200 ok's we did an expect on, so it might if we are ignoring the conflict. If it fails again I am hopeful beyond hope that we get the body message and line number within the utilities to determine where/why we are getting these from time to time. It does look to fix the timeouts when a rule misfires and slows down the rate at which we continuously query for rule results.
Failure around matrix histogram (The error messages are slightly different on CI each time):
https://github.com/elastic/kibana/issues/97365
Ran this with the flake runner across groups 11 and 12 100 times each and did not see the conflict crop up:
https://buildkite.com/elastic/kibana-flaky-test-suite-runner/builds/128https://buildkite.com/elastic/kibana-flaky-test-suite-runner/builds/129
The 1 failure in each of those runs were due to something on startup that prevented it from running.
### Checklist
Delete any items that are not applicable to this PR.
- [x] [Unit or functional tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html) were updated or added to match the most common scenarios
# Conflicts:
# x-pack/test/detection_engine_api_integration/utils.ts
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
* [Lens] Fix filters not being cleaned when navigating to another visualisation (#114137)
* [Lens] fix filters not being cleaned
* Update lens_slice.ts
* types
* do not reset persistedDoc on load
* [Lens] functional test for query, filters and time range
* snapshot update
* fix flakiness
* fix getting filters from refs
* simplify tests
* confirm modal
* Update persistent_context.ts
* load the file above
* Update persistent_context.ts
* shorten c4
* flaky test
* fix geo_field changing index pattern, remove non used data view
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
# Conflicts:
# x-pack/test/functional/apps/lens/index.ts
* Update index.ts
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
* Fix typos
* Fix typo also in server tests
* Make sure log collection remains enabled throughout the test
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
A change in the ES range agg no longer accepts numbers with decimals if the underlying field is typed as long. This PR fixes the issue by rounding the percentiles values we pass on to the range agg.
Co-authored-by: Walter Rafelsberger <walter@elastic.co>