Commit graph

31673 commits

Author SHA1 Message Date
Pedro Jaramillo
cf5c801c7e
[Endpoint] ERT-82 Alerts search bar (#59702)
* Add SearchBar UI. Query, filter, and dateRange work

* Sync url with search bar, fix excluded filters on BE

* fix welcome title

* Use KibanaReactContext, fix indexPattern fetch

* Mock data plugin, api and ui tests pass

* Add view and functional tests

* use observables to handle filter updates

* address comments
2020-03-12 16:45:44 -04:00
Shaunak Kashyap
d46f84814c
Aggregate queue types being used by Beats (#59850)
* Aggregate queue types being used by Beats

* Making tests pass again

* Updating fixture + tests for queue type

* Adding queue field to BeatsBaseStats type

* Add undefined guard

* Adding queue field to source fields list

* Fixing type error
2020-03-12 13:35:40 -07:00
spalger
410019ab5a skip flaky suite (#59541) 2020-03-12 13:17:23 -07:00
Nathan L Smith
99c35f65a9
Convert Timeline to TypeScript (#59966)
Will need to be touching some of these soon as part of elastic/observability-dev#532 so I'm converting to TypeScript.

Get rid of default exports on all of them as well.
2020-03-12 15:02:56 -05:00
Rudolf Meijering
80e6ff729a
Make context.core required argument to context providers (#59996)
* Make context.core required argument to context providers

* Refactor plugins: context.core isn't optional anymore

* Update docs
2020-03-12 20:39:29 +01:00
Robert Austin
9cd6e32de0
Endpoint: Change the input type for @kbn/config-schema to work with more schemas (#60007) 2020-03-12 15:13:53 -04:00
Brandon Kobel
728d073c12
Using re2 for Timelion regular expressions (#55208)
* Using re2 for Timelion's regexs

* Patching native modules

* Restructuring to be more generic

* Fixing download_node_builds_task tests

* Updating linux sha after properly gzipping the archive

* Using a Centos7 machine with devtoolset-6. That's what node does

* Using new archives which Travis built for us

* Not using a standard import to prevent Kibana from not starting up

If the "portable" version of RE2 for some reason isn't truly portable
and can't load, we don't want to prevent the rest of Kibana from working
properly. This will only prevent Timelion from working, which isn't
great, but is less worse

* Isolating the require even further

* Detecting the package version mismatches, thanks Larry!

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-03-12 11:38:53 -07:00
Chris Roberson
73d1013140
[Monitoring] Re-enable logstash tests (#59815)
* Revert "Skip all logstash pipeline tests"

This reverts commit d8aa1fb2da.

* Reenable tests and fix them based on recent changes

* Fix more tests

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-03-12 14:18:15 -04:00
Jonathan Budzenski
2d0bf9d247
fix karma debug typo (#60029) 2020-03-12 13:13:58 -05:00
Yuliia Naumenko
d3f53f6f6b
Adds telemetry support to alerting and actions plugins (#58081)
* Added base telemetry functionality

* Fixed actions collector due to NP plugin changes

* Fixed type checks

* Fixed alerting plugin usage collector

* Added actions and alerting telemetry tasks

* Fixed failing tests and resolved comments

* Extended telemetry for alerts by adding aggregations for throttle, schedule and connectors count

* Fixed tests

* Refactored using callCluster aggregations

* Fixed compare

* Fixed time convertion
2020-03-12 10:46:24 -07:00
spalger
25c33fcb15 skip flaky suite (#59717) 2020-03-12 09:50:20 -07:00
Alejandro Fernández Haro
3be457382f
UI Metrics use findAll to retrieve all Saved Objects (#59891)
* UI Metrics use findAll to retrieve all Saved Objects

* Rename test description

Co-Authored-By: Christiane (Tina) Heiligers <christiane.heiligers@elastic.co>

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
Co-authored-by: Christiane (Tina) Heiligers <christiane.heiligers@elastic.co>
2020-03-12 16:42:33 +00:00
Matthias Wilhelm
5605dfa54d
[Discover] Migrate Context mocha tests to use Jest (#59658) 2020-03-12 17:29:17 +01:00
Aaron Caldwell
5cab334248
[Maps] Move redux reducers and store logic to NP (#58294)
* Plugin file and services in place. Some redux logic ported

* Port and update index pattern util

* Move reducers over to NP. Update refs in legacy

* Port inspector to NP

* Move some kibana services init to NP. Some cleaning

* Clean up work not related to reducers/store

* Ignore temp imports from NP. Clean up of changes unrelated to this PR

* More cleanup. Check injected vars avab. before calling to handle dashboard case

* Bind embeddables services the same way Maps app services bound. Create function for eventual init in NP

* Call binding from constructor. Fix npStart plugins arg

* Adapt changes from master

* Register inspector views for embeddable. Add NP folder to i18n

* Clean up. Add comments. Move inspector map view registration to NP

* Remove unused inspector files in legacy

* Move full screen action to legacy

* Add in missing tooltip updates

* Review feedback. Update constants and i18n_getters to latest in NP

* Review feedback. Add redundancy comments to common files redundant in legacy and NP

* Remove unneeded copy of parse xml string test in legacy

* Review feedback. Remove redundant portions. Export from NP where possible. General clean up

* Remove remaining refernce and case for 'TOUCH_LAYER'. It's never used
2020-03-12 10:27:27 -06:00
Lee Drengenberg
69fd44e369
rebalance x-pack groups (#58930)
* rebalance x-pack groups

* fix typo in ciGroup10

* move from group 9 to group 5

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
Co-authored-by: spalger <spalger@users.noreply.github.com>
2020-03-12 10:27:05 -05:00
Matthias Wilhelm
5eb8bb164d
[Discover] Reimplement $route.reload when index pattern changes (#59877) 2020-03-12 16:24:33 +01:00
Jean-Louis Leysens
4641a35b9d
[Upgrade Assistant Meta] Breaking changes issue template (#59745)
* First draft of issue template

* [skip ci] Slight update to issue template

* Add label
2020-03-12 16:16:37 +01:00
Brian Seeders
8d19fb05a1
Skip CI based on changes in PR (#59939) 2020-03-12 11:06:53 -04:00
Walter Rafelsberger
1ede10ccbc
[ML] Transforms: Replace KqlFilterBar with QueryStringInput. (#59723)
- Replaces the custom KqlFilterBar with Kibana's QueryStringInput. This means the wizard now supports both lucene and kuery input.
- Using this component we no longer need to do cross-imports from the ML plugin. The use of setDependencyCache is no longer necessary.
- Replaces the custom AppDependencies provider code with Kibana's KibanaContextProvider.
2020-03-12 15:55:41 +01:00
Robert Oskamp
ca67b80460
[ML] Functional tests - stabilize date_nanos test (#59986)
This PR stabilizes the date_nanos test by adding a retry to the dedicated index switch click.
2020-03-12 14:45:20 +01:00
James Gowdy
bacc74669b
[ML] Typescripting client side endpoint functions (#59928)
* [ML] Typescripting client side endpoint functions

* type clean up

* cleaning up http requests

* remove http generics

* better use of generics and type clean up

* removes some generics

* update comment

* updating data frame analytics types

* fixing type errors
2020-03-12 13:31:22 +00:00
Bhavya RM
078ff55865
a11y tests on adding columns to discover table (#59375)
* a11y tests on adding columns
2020-03-12 08:31:59 -04:00
Joe Reuter
b3ab4004ec
fix graph plugin config path (#59540)
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-03-12 12:04:14 +01:00
Joe Reuter
0ecf8d1a0f
fix vega config issues (#59737) 2020-03-12 12:04:02 +01:00
Jean-Louis Leysens
abc14f5d34
[Upgrade Assistant] Open And Close Slight Refactor (#59890)
* Refactor: Move checking of closed index to single point

We should rather only check if an index is currently closed the
moment before starting to reindex. We still store a flag to
indicate that we opened an index that was closed, but this
should not be set from the reindex handlers because the reindex
task may only start some time later in which case the closed
index could have been opened and our reindex job will open it
and close it again.

* Added debug log

* Added comment

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-03-12 11:39:33 +01:00
James Gowdy
d5c092811b
[ML] Adding shared services to ml setup contract (#59730)
* [ML] Adding shared services to ml setup contract

* adding data recognizer

* typescripting js client

* adding results service

* code clean up

* adding generic ml index search

* making cloud optional
2020-03-12 10:04:40 +00:00
Daniil Suleiman
ed68ede2b6
[Visualize] Fix linked search behavior (#59690)
* Fix linked search behavior

* Revert relying on savedSearchId in url

* Fix comments

* Return back savedSearchId into vis object

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-03-12 12:08:48 +03:00
Walter Rafelsberger
29ed1b7d7d
[ML] Register NP ML plugin for Kibana management section. (#59762)
Migrates registering the ML management section using React only, deprecates the angularJS approach.
2020-03-12 09:36:16 +01:00
Marta Bondyra
1434953370
[Lens] Adds using queries/filters for field existence endpoint (#59033) 2020-03-12 09:03:40 +01:00
Liza Katz
c40e5ad478
Delete FilterStateManager and QueryFilter :-D (#59872)
* delete filter state manager and query filter :-D

* snapshot

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-03-12 09:58:49 +02:00
Thomas Watson
ec78348db7
Ensure process exits if a process warning is emitted (#59651)
Crash Kibana in dev/CI if a process warning is detected. This does not
influence how Kibana behaves in production when run via `./bin/kibana`
as there the `--no-warnings` flag is used. We will detect this flag and
as a result, disable this behavior.

Previously we used the flags `--trace-warnings --throw-deprecation` when
you started Kibana via `yarn start` and we used `--throw-deprecation` in
CI. This meant that we would only crash on deprecation warnings and log
a stack trace for all other types of warnings.

There were a couple of drawbacks to this approach:

1. If the deprecated API was called in a place enclosed in a try-catch
   (or inside of a Promise or an async/await context), the throw would
   be caught and the program would not crash.

2. If you ran `./scripts/kibana` directly instead of running `yarn
   start`, you would not get these flags automatically.

3. If you ran any of our tests locally you would not get the standard CI
   flags. This meant something that might seem to pass locally would not
   pass in CI.

This commit changes this behavior by ensuring:

- That we always crash - no matter if the offending code is surrounded
  by a try-catch (etc).

- That you always get the same behavior whether you run `yarn start` or
  `./scripts/kibana`.

- That you always get the same behavior in CI or if you run individual
  tests locally.

Furthermore, we now crash for all types of warnings - not only
deprecation warnings (except `MaxListenersExceededWarning`).

Closes #59646
2020-03-12 07:21:42 +01:00
John Dorlus
6febf77469
Fixed error.status to look for error.statusCode as per new platform. (#59719)
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-03-12 01:08:46 -04:00
John Dorlus
f0c9ad5af3
Added app load test for API Keys app (#49584)
* Added app load test for API Keys app

* Fixed linting issues.

* Fixed typecheck issue, edited config to enable API Keys app, and fixed typo in method name.

* Config fix.

* Fixed assertion for API Keys header.

* Added changes per nits on PR.

* Removed API Keys server config from the siem_cypress config since it's defined at the top level. Left a comment saying so.

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-03-12 01:08:26 -04:00
Nathan Reese
021d9042bc
[Maps] Fix custom color ramp on save (#59953)
* [Maps] Fix custom color ramp on save

* clean up

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-03-11 18:34:05 -06:00
Steph Milovic
cb4f7d6020
[SIEM] [Cases] Delete, comment, and reducer updates (#59616) 2020-03-11 16:56:06 -06:00
Christiane (Tina) Heiligers
ccc569b0e0
Adds 7 day clicks and minutes_on_screen fields to Application Usage telemetry (#59846)
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-03-11 14:49:55 -07:00
Justin Kambic
141acf9276
[Uptime] Fix functional tests to unblock promotion of latest ES (#59793)
* Fix filters against latest ES.

* Add temporary parameter to Jenkinsfile for CI testing.

* Delete temporary Jenkins parameter.

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-03-11 17:21:09 -04:00
Nick Partridge
153e545d57
[Docs] Update threshold watch note (#59797) 2020-03-11 16:30:43 -04:00
spalger
db228dd1ba skip flaky suite (#59419) 2020-03-11 13:04:53 -07:00
Larry Gregory
fbbf580156
Revert less update (#59852)
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-03-11 15:27:30 -04:00
Yara Tercero
f9273cc866
[SIEM][Detections Engine] Add note markdown field to backend (#59796)
* add new note markdown field to DE backend

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-03-11 15:15:38 -04:00
spalger
4223658d27 skip flaky suite (#59030) 2020-03-11 12:10:37 -07:00
Felix Stürmer
07a7caaf2f
[Logs UI] Add expandable rows with category examples (#54586)
Make the category rows expandable to show actual log messages samples from the categories during the selected time frame.
2020-03-11 20:07:55 +01:00
Luke Elmers
3c64031c07
Temporarily remove visualization development docs. (#58141) 2020-03-11 13:04:59 -06:00
spalger
50471f18ee remove index_management/client integration tests that are being really flaky
refs:
https://github.com/elastic/kibana/issues/59855
https://github.com/elastic/kibana/issues/59934
https://github.com/elastic/kibana/issues/59861
https://github.com/elastic/kibana/issues/59849
https://github.com/elastic/kibana/issues/59859
https://github.com/elastic/kibana/issues/59858
https://github.com/elastic/kibana/issues/59869
https://github.com/elastic/kibana/issues/59863
https://github.com/elastic/kibana/issues/54890
2020-03-11 11:30:09 -07:00
Nathan Reese
e4c4b7f1ae
[Maps] Add UI to disable style meta and get top categories from current features (#59707)
* rough start

* remove unused files

* get everything working

* add style options types

* convert DynmaicStyleProperty to TS

* limit scope of PR

* CategoricalFieldMetaPopover

* update label and move functions to IStyleProperty interface

* fix ts lint errors

* replace unknown with IJoin now that its available

* remove duplicate import

* review feedback
2020-03-11 11:47:30 -06:00
Pete Harverson
4e8306271f
[ML] Fixes handling of index pattern with special characters (#59884)
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-03-11 16:24:03 +00:00
Liza Katz
66455316bb
Clear out old rollup strategy (#59423)
* Old search strategy cleanup

* restore rollup strategy

* Remove hasSearchStategyForIndexPattern

* ts

* fix jest tests

* cleanup exports

* pass index pattern type to server for rollups

* merge fix

* Fix types

* ts fixes

* oss strategy error handling

* update translations

* jest test fix

* Use indexType instead of index

* code review 1

* updated docs

* jest test

* jest snapshot

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-03-11 18:03:27 +02:00
Lisa Cawley
2779d102a4
[DOCS] Edits job creation UI text (#59830) 2020-03-11 08:55:34 -07:00
Kaarina Tungseth
40901496ca
[DOCS] Removed Coordinate and Region Maps (#59828)
* [DOCS] Removed Coordinate and Region Maps

* Review comment

* Added redirect for visualize-maps
2020-03-11 09:25:20 -05:00