Commit graph

13038 commits

Author SHA1 Message Date
Lisa Cawley f8a354f8eb
Use doc link service in more Stack Monitoring pages (#89050) (#90324)
Co-authored-by: igoristic <igor.zaytsev.dev@gmail.com>
2021-02-05 08:41:31 -08:00
CJ Cenizal bbbcedbba1
Change Remote Clusters Cloud message to clarify that it's Elastic Cloud. (#90314) (#90391) 2021-02-05 06:23:45 -08:00
Uladzislau Lasitsa 353db3b795
Removes editorConfig.collections (#89854) (#90402)
* Removed editorConfig.collections

* Fix CI

* Update snapshots

* Fix comments

* Fix eslint

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-02-05 17:03:06 +03:00
István Zoltán Szabó 244e3b935b
Adjusts button labels to match titles in Data Visualizer. (#90289) (#90404)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-02-05 11:46:26 +01:00
Pete Hampton f4a5372ea4
[7.12][Security] - Collect Security ML job / datafeed statistics (#89705) (#90405)
* inital setup and experiments.

* Cast into ML job metric.

* Update mappings file.

* small refactor. add basic test to build on.

* mock out anomoly detector for testing from the usage collector.

* [PH JD] collect first set of ml job stats.

* Update telemetry schema.

* Include create and finished time.

* Cache datafeed calls and find / filter by naming convention.

* Fix jest test temp.

* [PH JD] Add datafeed to the usage collector payload.

* Get e2e test working.

* Update time complexity detail / df stats lookup. O(n) -> O(1)

* Update var names.

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-02-05 10:41:20 +00:00
Liza Katz a5b4688490
[Search Session][Management] Rename "cancel" button and delete "Reload" button (#90015) (#90284)
* Rename management button to "delete"

* fix jest

* Delete reload action from management

* Added both cancel and delete session

* Improve texts

* fix test

* ts

* doc

* fix jest

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-02-05 11:16:47 +02:00
Mikhail Shustov 07982e16c2
remove unused angular import from security solution (#90263) (#90399)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-02-05 09:21:51 +01:00
Cauê Marcondes e5a25f92d9
[APM] Enabling yesterday option when 24 hours is selected (#90017) (#90295)
* enabling yesterday option when 24 hours is selected

* addressing PR comments

* addressing PR comments

* enabling select box
2021-02-05 09:16:34 +01:00
Joe Reuter 760e1dedd3
[Lens] Hide column in table (#88680) (#90286) 2021-02-05 09:12:21 +01:00
Mikhail Shustov 166ffe8214
prevent jest leaking into the prod build (#90318) (#90397) 2021-02-05 09:01:44 +01:00
John Dorlus a22d189765
[7.x] [Upgrade Assistant] Fixes to Upgrade Assistant Tests and Page Objects To Stop CI Failures (#89942) (#90387)
* [Upgrade Assistant] Fixes to Upgrade Assistant Tests and Page Objects To Stop CI Failures (#89942)

* Updated test to use no hard coded waits which could be contributing to CI failures. Expect functions should be in the test file itself so I changed the page objects for page actions and extracted out the expect calls to the test files.

* Added retry within the test file to retry the assertion if it doesn't pass on the first attempt. Simplified the toggle function to just click the toggle.

* Fixed type check issue.

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
# Conflicts:
#	x-pack/test/functional/apps/upgrade_assistant/upgrade_assistant.ts

* Removed an unused reference to security.
2021-02-05 00:23:05 -05:00
Frank Hassanabad 43591caa0e
Adds tests for issue with immutable (#90372) (#90389)
## Summary

Adds e2e tests for https://github.com/elastic/kibana/pull/90326

* Adds e2 tests and backfills for updating actions and expected behaviors
* Adds two tests that would fail without the fix and if a regression happens this will trigger on the regression
* Adds two tests to the PATCH for exception lists even though there is no regression there. Reason is to prevent an accidental issue there.
* Adds tests to ensure the version number does not accidentally get bumped if PATCH or UPDATE is called on actions or exceptions for immutable rules.
* Adds utilities for cutting down noise.

### Checklist

- [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
2021-02-04 20:55:31 -07:00
Larry Gregory dab726120a
Optimize performance of ES privilege response validation (#90074) (#90373) 2021-02-04 21:21:00 -05:00
Frank Hassanabad eb6605a729
Fixes regression where tags are turning immutable to mutable within rules (#90326) (#90369)
## Summary

Fixes regression: https://github.com/elastic/kibana/issues/90319 that has not been released where in some cases such as adding actions to a rule through an update we can and will update an immutable rule and do not expect the immutable to turn into a mutable through the tags.

Simple one-liner fix, I will update in a follow on PR with a regression test for this particular use case of actions but not with this one since we optimizing for speed of pull request to back-port.

Criticality is high and impact is high as this is data bug which can cause a lot of headaches and migrations if this goes out.

### Checklist

No unit test for this one, but a functional test will be added in a follow up
- [ ] [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
2021-02-04 18:58:46 -07:00
Aaron Caldwell 48a28796ce
[7.x] Add readme to geo containment alert covering test alert setup (#89625) (#90300)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-02-04 15:30:41 -07:00
Constance da7c3b430b
[Enterprise Search] Refactor MockRouter test helper to not store payload (#90206) (#90322)
* Update MockRouter to not pass/set a this.payload

- but instead intelligently validate payloads based on the request keys

* Fix relevance tuning API routes to not need a separate mock router for validating query & body

* Update all remaining tests to no longer pass a payload param to MockRouter
2021-02-04 13:50:52 -08:00
Nathan L Smith 4e94a5832f
Remove UI filters from UI (#89793) (#90321) 2021-02-04 15:48:14 -06:00
Bhavya RM 21c7eca6ca
Test user for maps tests under import geoJSON tests (#86015) (#90310) 2021-02-04 16:11:12 -05:00
Devon Thomson c78a5a2645
[7.x] [Time to Visualize] Remove Panels from URL (#86939) (#90247)
Removed panels from dashboard URLs

Co-authored-by: Ryan Keairns <contactryank@gmail.com>
2021-02-04 13:32:02 -05:00
Marshall Main 7478b45ee6
[Security Solution][Detections] Reduce detection engine reliance on _source (#89371) (#90287)
* First pass at switching rules to depend on fields instead of _source

* Fix tests

* Change operator: excluded logic so missing fields are allowlisted

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-02-04 12:45:29 -05:00
Anton Dosov 012d453624
[Search Session] Revamp search session indicator UI and tour (#89703) (#90277) 2021-02-04 17:00:58 +01:00
Nicolas Chaulet 378764bccd
Updating package registry snapshot distribution version (#89776) (#90278) 2021-02-04 10:39:39 -05:00
Joe Reuter a7eaa71c4b
memoize editor frame (#89865) (#90270) 2021-02-04 16:21:10 +01:00
Joe Reuter 37ee59ce1b
add tsconfig for dashboard mode (#89855) (#90269) 2021-02-04 16:20:35 +01:00
Dan Panzarella a940624515
[7.x] [Security Solution] Change Endpoint queries to be independent of HostDetails key in schema (#88012) (#90237) 2021-02-04 10:11:44 -05:00
Liza Katz c72ec12795
[Search Sessions] Save all sessions, with persisted flag (#89570) (#90236)
* [data.search] Add search session methods to search service contract

* Fix types

* Fix tests and switch to cancel

* Update docs

* Fix types/tests

* Fix tests

* Update status of SO before cancelling search requests

* Add API integration test

* Fix types

* Update expiration route to use config defaultExpiration

* Fix test

* Update docs

* New logic for extend

* Remove declare module

* Search Sessions: Unskip Flaky Functional Test

* Review feedback

* fix ts

* Save all search sessions and then manage them based on their persisted state

* Get default search session expiration from config

* randomize sleep time

* fix test

* Remove test that is no longer valid

* fix test

* Make sure we poll, and dont persist, searches not in the context of a session

* Added keepalive unit tests

* fix ts

* code review @lukasolson

* ts

* More tests, rename onScreenTimeout to completedTimeout

* lint

* lint

* Delete async seaches

* Support saved object pagination
Fix get search status tests

* better PersistedSearchSessionSavedObjectAttributes ts

* test titles

* Fix undefined bug

* Remove runAt from monitoring task
Increase testing trackingInterval (caused bug)

* support workload histograms that take into account overdue tasks

* Update touched when changing session status to complete \ error

* removed test

* Updated management test data

* Rename configs

* delete tap first
add comments

* Use DataRequestHandlerContext in maps

* ts

* Fixed ts

Co-authored-by: Lukas Olson <olson.lukas@gmail.com>
Co-authored-by: Timothy Sullivan <tsullivan@elastic.co>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Anton Dosov <anton.dosov@elastic.co>
Co-authored-by: Gidi Meir Morris <github@gidi.io>

Co-authored-by: Lukas Olson <olson.lukas@gmail.com>
Co-authored-by: Timothy Sullivan <tsullivan@elastic.co>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Anton Dosov <anton.dosov@elastic.co>
Co-authored-by: Gidi Meir Morris <github@gidi.io>
2021-02-04 16:57:19 +02:00
spalger 3c95438674 skip another suite failing es promotion (#90229)
(cherry picked from commit 0938252f21)
2021-02-03 20:21:47 -07:00
Brandon Kobel 57af8462e4
[7.x] Elastic License 2.0 (#90192)
* Updating everything except the license headers themselves

* Applying ESLint rules

* Manually replacing the stragglers
2021-02-03 18:39:13 -08:00
spalger 346da76d4f skip flaky suite, and dependent suite (#90229)
(cherry picked from commit 27a53cf4d7)
2021-02-03 16:21:36 -07:00
Scotty Bollinger 128d84f33b
[Workplace Search] Refactor oauth redirect to persist state params from plugin (#90067) (#90228)
* Add routes

Also adds validation for the Kibana way of handling query params

* Add route for oauth params

* Add logic to save oauth redirect query params

* Refactor source added template to keep all logic in logic file

* Add tests for component and logic

* Add optional param to interface

Atlassian flows may also send back an oauth_verifier param that we’ll need. This was added to the server validation, but I forgot to add it to the interface

* Remove failing test

This was not needed for coverage and it appears that the helper doesn’t validate query params so removing it

* Remove index_permissions from account params

* Rename variable

* Update param syntax

* Update account route test

* Refactor params
2021-02-03 16:29:27 -06:00
spalger 8360eab23a Revert "skip suite blocking ES promotion (#90229)"
This reverts commit 4f925eef20.
2021-02-03 15:13:56 -07:00
igoristic 1bc6c1c0f3
[Monitoring][Alerting] Large shard alert (#89410) (#90197)
* Shards alert draft

* Added index pattern validation

* Fixed ui/ux

* Optimizing the response

* CR feedback

* import fix

* Increased size limit
# Conflicts:
#	packages/kbn-optimizer/limits.yml
#	x-pack/plugins/monitoring/public/components/elasticsearch/index/advanced.js
2021-02-03 16:59:37 -05:00
Zacqary Adam Xeper 25428f367f
[7.x] [Metrics UI] Fix drawer width while preserving hardware-accelerated transition (#90103) (#90205) 2021-02-03 15:29:54 -06:00
Devon Thomson ddbdc58624
Clear editor state when maps listing page loads. (#90071) (#90198)
* Clear editor state when maps listing page loads.
2021-02-03 16:29:10 -05:00
spalger 4f925eef20 skip suite blocking ES promotion (#90229) 2021-02-03 13:45:50 -07:00
Christiane (Tina) Heiligers e9d9d2c419
[7.x] Ts project refs: Migrates Upgrade Assistant to a TS project (#89949) (#90203)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-02-03 13:09:07 -07:00
James Gowdy d5b1adcea2
[ML] Fixing cloud behaviour when ML nodes are lazily assigned (#90051) (#90207)
* [ML] Fixing cloud behaviour when ML nodes are lazily assigned

* fixing duplicate id

* updating snapshot

* removing comments

* fixing tests

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-02-03 20:04:28 +00:00
Pete Harverson 7da4e435c3
[ML] Transforms: Migrates transform plugin to TS project ref (#90190) (#90209) 2021-02-03 20:03:49 +00:00
Lukas Olson 25415a3940
[data.search] Add search session methods to search service contract (#87966) (#90187)
* [data.search] Add search session methods to search service contract

* Fix types

* Fix tests and switch to cancel

* Update docs

* Fix types/tests

* Fix tests

* Update status of SO before cancelling search requests

* Add API integration test

* Fix types

* Update expiration route to use config defaultExpiration

* Fix test

* Update docs

* New logic for extend

* Remove declare module

* Review feedback

* fix ts

* Remove test that is no longer valid

* Fix undefined bug

* Use DataRequestHandlerContext in maps

* ts

Co-authored-by: Liza K <liza.katz@elastic.co>

Co-authored-by: Liza K <liza.katz@elastic.co>
2021-02-03 12:53:55 -07:00
Jason Stoltzfus 7f849bdb60
[App Search] Relevance Tuning stub page and server routes (#89308) (#90154) 2021-02-03 14:45:10 -05:00
Tim Roes e392d859b9
[Graph] Disable runtime fields showing up in Graph (#90010) (#90182)
* [Graph] Disable runtime fields

* Fix jest test

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-02-03 17:57:19 +01:00
Justin Ibarra eb69829a47
Update security solution generic timeline templates (#89239) (#89376)
* Update security solution generic timeline templates
2021-02-03 07:27:28 -09:00
Ester Martí Vilaseca 36b46a4eca
[Metric UI] Add helper text to of expressions when creating Threshold Alerts (#89750) (#90169)
* add helptext to of expressions

* Make helptext optional as a prop for of expressions

* Add help text to metric threshold alert form

* Add test for helptext in of expression

* Accept JSX elements as helptext in of expressions

* Remove usage of useEuiI18n and use FormattedMessage component for translations

* Follow writing guidelines and fix typo

* Update translation keys

* Update documentation link

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-02-03 17:22:48 +01:00
Christiane (Tina) Heiligers 0cfd95583a
[7.x] Migrates index_management & runtime_fields to TS project refs (#89809) (#90172) 2021-02-03 09:11:18 -07:00
Christos Nasikas 733ee6e202
[7.x] [Security Solution][Case] Show error banner after loading connectors (#90134) (#90160) 2021-02-03 18:00:53 +02:00
Georgii Gorbachev 12820e1c08
[Security Solution][Detections] Fix UUID generation for signals generated by Threshold rules (#89994) (#90151)
* Fix the bug

* Refactor
2021-02-03 16:22:13 +01:00
Pete Harverson 69f07c3b30
[ML] Migrates ML plugin to TS project ref (#90021) (#90162)
* [ML] Migrate ML plugin to TS project ref

* [ML] Adding mocks folder to list of includes

* [ML] Remove duplicates from x-pack tsconfig.refs.json

* [ML] Add file_upload plugin to project references

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-02-03 14:59:45 +00:00
Larry Gregory d13b77609b
[7.x] Reenable skipped CCR & Remote Cluster tests (#89723) (#90159)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-02-03 09:45:14 -05:00
Joe Reuter 2cab61f1e1
[Lens] Export nested types (#89868) (#90141) 2021-02-03 14:25:22 +01:00
Sandra Gonzales 83fe6feb1c
make history drawer positioned absolute (#89630) (#90097)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-02-03 08:25:00 -05:00