Commit graph

40254 commits

Author SHA1 Message Date
Cauê Marcondes
7a42a6f410
[APM] Enabling yesterday option when 24 hours is selected (#90017)
* enabling yesterday option when 24 hours is selected

* addressing PR comments

* addressing PR comments

* enabling select box
2021-02-04 17:20:50 +01:00
Bhavya RM
e676617f69
Test user for maps tests under import geoJSON tests (#86015)
test user assignment for test files under import geoJSON files

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-02-04 11:04:30 -05:00
Joe Reuter
1741cef4ae
[Lens] Hide column in table (#88680) 2021-02-04 16:22:09 +01:00
Marshall Main
e0133892f6
[Security Solution][Detections] Reduce detection engine reliance on _source (#89371)
* 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>
2021-02-04 10:20:16 -05:00
Maja Grubic
c37b0e1474
[Discover] Minor cleanup (#90260) 2021-02-04 15:00:22 +00:00
Liza Katz
b5ce8ba26f
[Search Session][Management] Rename "cancel" button and delete "Reload" button (#90015)
* 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
2021-02-04 16:57:26 +02:00
Shaunak Kashyap
f3a9c763df
Updating package registry snapshot distribution version (#89776) 2021-02-04 08:40:18 -05:00
Anton Dosov
e82bbcff89
[Search Session] Revamp search session indicator UI and tour (#89703) 2021-02-04 14:36:19 +01:00
Luke Elmers
72670ebc77
[core.logging] Add response logs to the KP logging system. (#87939) 2021-02-04 06:05:06 -07:00
Joe Reuter
1818dd7f4a
memoize editor frame (#89865) 2021-02-04 11:37:50 +01:00
Joe Reuter
caf9d833a7
add tsconfig for dashboard mode (#89855) 2021-02-04 11:36:01 +01:00
Alexey Antonov
b413d9d5bf
[TSVB] Disable runtime fields showing up in TSVB (#90163)
* [TSVB] Disable runtime fields showing up in TSVB

* add tests

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-02-04 12:16:16 +03:00
Spencer
df4eb0f726
[kbn/es] avoid splitting string esArgs into separate args (#90253)
Co-authored-by: spalger <spalger@users.noreply.github.com>
2021-02-03 21:58:28 -07:00
Tiago Costa
23d5ffb44f
chore(NA): support bazel and kbn packages in parallel on kbn pm and on distributable build scripts (#89961)
* chore(NA): bazel projects support initial flag on kbn pm

* chore(NA): every needed step to build production bazel packages except the final function

* chore(NA): include build bazel production projects on kibana distributable build

* chore(NA): support bazel packages when creating the package.json

* chore(NA): including last changes on kbn pm and build distributable to support both bazel and kbn packages

* chore(NA): missing annotation on build bazel packages

* chore(NA): changed values on bazelrc common

* chore(NA): fix bazel common rc

* chore(NA): auto discovery if a kbn package is a Bazel package

* chore(NA): last details to make bazel packages to built on distributable scripts

* chore(NA): removed wrongly added line to x-pack package.json

* chore(NA): apply correct formating

* chore(NA): move into bazel bin

* chore(NA): merge chnages on kbn pm

* chore(NA): correctly setup ignore files for new bazel aggregated folder

* chore(NA): merge with last master

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-02-04 04:39:35 +00:00
spalger
0938252f21 skip another suite failing es promotion (#90229) 2021-02-03 20:20:02 -07:00
Brandon Kobel
4584a8b570
Elastic License 2.0 (#90099)
* Updating everything except the license headers themselves

* Applying ESLint rules

* Manually replacing the stragglers
2021-02-03 18:12:39 -08:00
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