Commit graph

40138 commits

Author SHA1 Message Date
spalger 27a53cf4d7 skip flaky suite, and dependent suite (#90229) 2021-02-03 16:21:19 -07:00
Devon Thomson 9232a5a26a
[Time to Visualize] Remove Panels from URL (#86939)
Removed panels from dashboard URLs

Co-authored-by: Ryan Keairns <contactryank@gmail.com>
2021-02-03 17:23:01 -05:00
spalger 9996923309 Revert "skip suite blocking ES promotion (#90229)"
Turns out there are interdependencies in these test files that we need to resolve.

This reverts commit cf3c60fa43.
2021-02-03 15:13:09 -07:00
Tiago Costa a0d5d5614d
chore(NA): introduce new yarn kbn reset command to support bazel workflow (#89597)
* chore(NA): introduce new yarn kbn destroy command to support bazel workflow

* chore(NA): update wording for new kbn pm changes

* chore(NA): update .bazelrc.common

Co-authored-by: Tyler Smalley <tylersmalley@me.com>

* chore(NA): update .bazelrc

Co-authored-by: Tyler Smalley <tylersmalley@me.com>

* chore(NA): update packages/kbn-pm/src/commands/clean.ts

Co-authored-by: Tyler Smalley <tylersmalley@me.com>

* chore(NA): update packages/kbn-pm/src/commands/destroy.ts

Co-authored-by: Tyler Smalley <tylersmalley@me.com>

* chore(NA): update packages/kbn-pm/src/commands/clean.ts

Co-authored-by: Tyler Smalley <tylersmalley@me.com>

* chore(NA): update packages/kbn-pm/src/commands/destroy.ts

Co-authored-by: Tyler Smalley <tylersmalley@me.com>

* chore(NA): rename destroy command into reset

* chore(NA): update packages/kbn-pm/src/commands/clean.ts

Co-authored-by: Tyler Smalley <tylersmalley@me.com>

* chore(NA): restore old behaviour on kbn clean

* chore(NA): update reset command to delete bazel caches on disk

* chore(NA): update packages/kbn-pm/src/commands/clean.ts

Co-authored-by: Tyler Smalley <tylersmalley@me.com>

* chore(NA): update prefix to match bazel defined one for cache settings

* chore(NA): update kbn pm dist file

* chore(NA): update kbn pm dist

* chore(NA): update gitignore

* chore(NA): add new ignore files after changed bazel aggregated folder

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Tyler Smalley <tylersmalley@me.com>
2021-02-03 22:02:34 +00:00
Dan Panzarella b7b9ca75d7
[Security Solution] Change Endpoint queries to be independent of HostDetails key in schema (#88012) 2021-02-03 16:22:08 -05:00
Liza Katz 7fbcf68d73
[Search Sessions] Save all sessions, with persisted flag (#89570)
* [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>
2021-02-03 23:15:41 +02:00
Spencer 1b1e831ab4
remove accidental license header from vendored code (#90219)
Co-authored-by: spalger <spalger@users.noreply.github.com>
2021-02-03 13:59:48 -07:00
spalger cf3c60fa43 skip suite blocking ES promotion (#90229) 2021-02-03 13:42:40 -07:00
Scotty Bollinger 72fb9ce22b
[Workplace Search] Refactor oauth redirect to persist state params from plugin (#90067)
* 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 14:40:12 -06:00
Spencer 1228c53ac6
[npm] upgrade mocha (#90188)
Co-authored-by: spalger <spalger@users.noreply.github.com>
2021-02-03 13:08:21 -07:00
Anton Dosov c1ec73bea9
[Search Sessions] Fix search session indicator in Amsterdam theme (#90153) 2021-02-03 20:32:41 +01:00
Pete Harverson 87e83860ce
[ML] Transforms: Migrates transform plugin to TS project ref (#90190) 2021-02-03 17:14:03 +00:00
James Gowdy 501f763713
[ML] Fixing cloud behaviour when ML nodes are lazily assigned (#90051)
* [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>
2021-02-03 17:01:05 +00:00
Zacqary Adam Xeper d00266b3ff
[Metrics UI] Fix drawer width while preserving hardware-accelerated transition (#90103) 2021-02-03 10:49:30 -06:00
Anton Dosov 84a67a44d1
fix adding Visualize visualization to dashboard from modal directs user to dashboard listing page (#90090) 2021-02-03 17:48:07 +01:00
Christiane (Tina) Heiligers c67e291189
Ts project refs: Migrates Upgrade Assistant to a TS project (#89949) 2021-02-03 09:33:28 -07:00
Spencer d07ae11da6
[es] disable wildcards in destructive actions (#88986)
Co-authored-by: spalger <spalger@users.noreply.github.com>
2021-02-03 09:29:37 -07:00
Tiago Costa f3468b95c8
chore(NA): remove yarn extra options from kbn bootstrap (#90098)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-02-03 16:25:51 +00:00
Devon Thomson bb802c01e4
Clear editor state when maps listing page loads. (#90071)
* Clear editor state when maps listing page loads.
2021-02-03 11:00:55 -05:00
Alexey Antonov 71dec81946
[Timelion] Disable runtime fields showing up in Timelion (#90150) 2021-02-03 18:43:54 +03:00
Lukas Olson a9273ca001
[data.search] Add search session methods to search service contract (#87966)
* [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>
2021-02-03 08:08:54 -07:00
Peter Pisljar 2145768c0d
Examples/expressions2 (#90140) 2021-02-03 16:06:26 +01:00
Maja Grubic c6be748a97
[Discover] Add support for unmapped fields using the fields API (#89074)
* Add search source to example plugin.

* Add uiSetting for fields API.

* Update SearchSource to support fields API.

* [PoC] reading from the fields API in Discover

* Add N fields as a default column

* Make fields column non-removeable

* Do not add 'fields' to state

* Remove fields from app state and read from source when needed

* Remove fields column if a new column is added

* Add search source to example plugin.

* Add uiSetting for fields API.

* Update SearchSource to support fields API.

* Improve error handling in search examples plugin.

* Add unit tests for legacy behavior.

* Remove uiSettings feature flag; add fieldsFromSource config.

* Rewrite flatten() based on final API design.

* Update example app based on final API design.

* Update maps app to use legacy fieldsFromSource.

* Update Discover to use legacy fieldsFromSource.

* Rename source filters to field filters.

* Address feedback.

* Update generated docs.

* Update maps functional test.

* Formatting fields column similar to _source

* Moving logic for using search API to updating search source

* Fix small merge error

* Move useSource switch to Discover section of advanced settings

* Do not use fields and source at the same time

* Remove unmapped fields switch

* Add basic support for grouping multifields

* Remove output.txt

* Fix some merge leftovers

* Fix some merge leftovers

* Fix merge errors

* Fix typescript errors and update nested fields logic

* Add a unit test

* Fixing field formats

* Fix multifield selection logic

* Request all fields from source

* Fix eslint

* Fix default columns when switching between _source and fields

* More unit tests

* Update API changes

* Add unit test for discover field details footer

* Remove unused file

* Remove fields formatting from index pattern

* Remove unnecessary check

* Addressing design comments

* Fixing fields column display and renaming it to Document

* Adding more unit tests

* Adding a missing check for useNewFieldsAPI; minor fixes

* Fixing typescript error

* Remove unnecessary console statement

* Add missing prop

* Fixing import order

* Adding functional test to test fields API

* [Functional test] Clean up in after

* Fixing context app

* Addressing PR comments

* Add support for unmapped fields

* Add data migration

* Add toggle unmapped fields logic

* Adding more unit tests

* Some cleanup

* More unit tests

* Fixing failing snapshot

* Add tooltip next to unmapped switch

* Add functional test for the feature

* Fixing a typo in a functional test

* Refetch data when unmapped fields value changes

* Updating mapping

* Support for fields API in search embeddable

* Addressing PR comments

* Fix failing unit test

* Updating the text

Co-authored-by: Luke Elmers <luke.elmers@elastic.co>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-02-03 15:04:55 +00:00
Tim Roes 72cb883d80
[Graph] Disable runtime fields showing up in Graph (#90010)
* [Graph] Disable runtime fields

* Fix jest test

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-02-03 16:02:36 +01:00
Christiane (Tina) Heiligers 9bee677f68
Migrates index_management & runtime_fields to TS project refs (#89809) 2021-02-03 07:21:38 -07:00
igoristic 0d54f07227
[Monitoring][Alerting] Large shard alert (#89410)
* Shards alert draft

* Added index pattern validation

* Fixed ui/ux

* Optimizing the response

* CR feedback

* import fix

* Increased size limit
2021-02-03 09:19:40 -05:00
Ester Martí Vilaseca 912a67f06f
[Metric UI] Add helper text to of expressions when creating Threshold Alerts (#89750)
* 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>
2021-02-03 15:06:18 +01:00
Pete Harverson e108e5bb2f
[ML] Migrates ML plugin to TS project ref (#90021)
* [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>
2021-02-03 13:09:50 +00:00
Christos Nasikas 24bf256bb0
[Security Solution][Case] Show error banner after loading connectors (#90134) 2021-02-03 15:01:26 +02:00
Larry Gregory 7a3279768d
Reenable skipped CCR & Remote Cluster tests (#89723)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-02-03 07:59:47 -05:00
Jason Stoltzfus a839889187
[App Search] Relevance Tuning stub page and server routes (#89308) 2021-02-03 07:21:45 -05:00
Georgii Gorbachev d59750fc77
[Security Solution][Detections] Fix UUID generation for signals generated by Threshold rules (#89994)
* Fix the bug

* Refactor
2021-02-03 13:06:55 +01:00
Dario Gieselaar f9de593a6d
decorate_snapshot_ui: make sure snapshots are saved (#89694) 2021-02-03 12:19:07 +01:00
Jean-Louis Leysens 6dd6c99818
[ILM] Surfacing policy error state (#89701)
* added policy top-level callout for error state

* added form errors context. errors are sorted by their field path into phases

* added data test subject attributes and prevent setErrors from getting called if component is not mounted

* update copy

* refactored errors context and optimised setting of context value. Also added test for various form error notifications across the collapsed phases

* add test for non-phase specific policy validation error

* Remove unused import

* refactor how errors are listened to, use the new "onError" callback

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-02-03 12:14:00 +01:00
Joe Reuter f4ebdf3a79
[Lens] Export nested types (#89868) 2021-02-03 12:03:55 +01:00
Peter Pisljar 8f70c52180
cleaning up tabify to return Datatable (#89857) 2021-02-03 11:47:24 +01:00
Angela Chuang 22a903a9e3
[Security Solution] Saving is not working if hitting "favorites button" beforehand (#88642)
* fix favorites for templates

* fix integration test

* fix integration test

* fix event details request

* handle data when searchstrategy is still running

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-02-03 08:47:11 +00:00
Stratoula Kalafateli d8f7997c83
Remove navigation from Discover to Visualize (#89132)
* Remove navigation from Discover to Visualize

* Remove unused translation

* Remove oss check from functional test

* Fix functional test

* Skip test for OSS

* Fix

* Should not remove the uiSettings getter and setter

* Move the isOss flag inside the test

* Cleanup

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-02-03 10:15:53 +02:00
István Zoltán Szabó d560b1ccc8
[DOCS] Uses doc link service in discover (#88835)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: lcawl <lcawley@elastic.co>
2021-02-03 08:53:57 +01:00
Matthias Wilhelm ebf93e2027
[Discover] Unskip brushing histogram functional test (#89400) 2021-02-03 08:42:41 +01:00
Alexey Antonov af454d61bf
Timelion reads raw field list from saved object, should grab from index pattern api (#89988)
* Timelion reads raw field list from saved object, should grab from index pattern api

Closes: #84387

* fix PR comment
2021-02-03 10:29:50 +03:00
John Dorlus 14cf1875b5
[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>
2021-02-03 02:26:30 -05:00
Matthias Wilhelm 06bc99d825
[Discover] Fix 'auto' collapsing of documents (#89712) 2021-02-03 06:56:09 +01:00
Nicolas Chaulet 20654388a4
[Fleet] Fix performance issue in agent status endpoint (#90066)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-02-02 20:23:56 -05:00
Tyler Smalley 75d9e0a071 skip flaky suite (#89073) 2021-02-02 15:57:56 -08:00
Chris Cowan cf846bdddf
[Metrics UI][Logs UI] Completely remove GraphQL and Apollo (#89036) 2021-02-02 16:56:40 -07:00
Spencer 9246f398ea
[esArchiver] upgrade to new ES client (#89874)
Co-authored-by: spalger <spalger@users.noreply.github.com>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-02-02 16:55:41 -07:00
Kevin Qualters 3da4c6bb2c
[Secutiy Solution] Timeline kpis (#89210)
* Stub kpi component

* search strategy scheleton timeline KPI

* search strategy scheleton timeline KPI

* Add timeline kpis component and search strategy container

* Use getEmptyValue in timeline kpis

* Prevent request from being made for blank timeline properly

* Add kpi search strategy api integration test

* Add jest tests for timeline kpis

* Clear mocks in afterAll

* Decouple some tests from EUI structure

* Combine some selector calls, change types to be more appropriate

* Simplify hook logic

* Set loading and response on blank timeline

* Only render kpi component when query is active tab

* Use TimelineTabs enum for query tab string

Co-authored-by: Xavier Mouligneau <189600+XavierM@users.noreply.github.com>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-02-02 18:30:45 -05:00
Nathan Reese 980112de1e
[Maps] migrate mvt routes to use data.search service instead of directly calling elasticsearch (#89904)
* [Maps] migrate mvt routes to use data.search service instead of directly calling elasticsearch

* pass search session id to mvt requests

* move grid tile tests to integration tests

* replace getTile unit test with integration test

* add comment about request param

* revert total meta change

* tslint fixes

* update jest tests
2021-02-02 15:51:00 -07:00
Spencer 531194baba
[ci/docsLink] hide link when 200 says "There aren't any differences!" (#90079)
Co-authored-by: spalger <spalger@users.noreply.github.com>
2021-02-02 15:21:19 -07:00