Commit graph

29065 commits

Author SHA1 Message Date
Spencer
03dad2827e
run mocha tests from x-pack with root mocha script (#51352)
* run mocha tests from x-pack with root mocha script

* Only run Karma tests in xpack intake job

* disable failing suites

* fix typo

* skip correct suite (there are multiple root suites)

* support disabling junit reporting with $DISABLE_JUNIT_REPORTER

* don't generate junit in ispec_plugin tests
2019-11-25 11:39:20 -07:00
Jean-Louis Leysens
793f1f1191
[Console] Refactoring more legacy code and implementing minor fixes (#51312)
* First part of context refactor

* Finised "hook"ing in to new context for old editor output. Also fixed passing through of content type

* Remove comment

* - update console history behaviour - don't scroll into view on click. Doesn't really make sense.
- make triple quote setting update in place
2019-11-25 18:28:49 +01:00
Aaron Caldwell
b136bfdb82
[File upload][Maps] NP migration for server & client (#51045)
* Use np savedObjectsClient in indexing service

* Export File Upload UI via start since it requires initialization

* Pass services through top level react component props

* Handle basePath ref and 'kbn-version' for requests

* Bulk of logic for removing hapi server dependencies for server app

* Use request obj subset of original request

* Move startup logic over to server plugin file and call from index.js

* Update server tests

* Clean up

* Remove old makeUsageCollector export statement

* initServicesAndConstants in the start method instead of in the react component

* Review feedback
2019-11-25 10:19:24 -07:00
Alejandro Fernández
2acc287fc2
[Logs UI] log rate setup index validation (#50008)
* Scaffold API endpoint

* Implement the API endpoint

* Implement API client

* Set error messages in `useAnalysisSetupState`

* Show validation errors next to the submit button

* Check for setup errors regarding the selected indexes

* Call validation only once

Enrich the `availableIndices` array with validation information to show
it later in the form.

* Ensure validation runs before showing the indices

* Adjust naming conventions

- Replace `index_pattern` with `indices`, since it means something
  different in kibana.
- Group validation actions under the `validation` namespace.

* Move index error messages to the `InitialConfigurationStep`

* Move error messages to the UI layer

* Move validation call to `useAnalysisSetupState`

* Pass timestamp as a parameter of `useAnalysisSetupState`

* Fix regression with the index names in the API response

* Use `_field_caps` api

* s/timestamp/timestampField/g

* Tweak error messages

* Move `ValidationIndicesUIError` to `log_analysis_setup_state`

* Track validation status

It's safer to rely on the state of the promise instead of treating an
empty array as "loading"

* Handle network errors

* Use individual `<EuiCheckbox />` elements for the indices

This allows to disable individual checkboxes

* Pass the whole `validatedIndices` array to the inner objects

This will make easier to determine which indeces have errors in the
checkbox list itself and simplify the state we keep track of.

* Disable indices with errors

Show a tooltip above the disabled index to explain why it cannot be
selected.

* Pass indices to the API as an array

* Show overlay while the validation loads

* Wrap tooltips on a `block` element

Prevents the checkboxes from collapsing on the same line

* Use the right dependencies for `useEffect => validateIndices()`

* Restore formatter function name

* Simplify mapping of selected indices to errors

* s/checked/isSelected/g

* Make errors field-generic

* Allow multiple errors per index

* Simplify code a bit
2019-11-25 17:05:51 +01:00
Gidi Meir Morris
c7f8086e11
Removes redundant code for awaiting migrations in Task Manager
Thanks to #43433 being merged we no longer need to wait for the migrations to run as they are guaranteed to have run by the time plugin init has completed.

This is just a cleanup making it easier to move towards the migration to the Kibana Platform.
2019-11-25 16:02:53 +00:00
Liza Katz
0607032ba5
Move FilterBar component ⇒ NP (#51178)
* Moved filter bar

* Fixed import

* Fixed search bar test

* change css import path

* fix imports from data/public
2019-11-25 17:56:49 +02:00
Jonathan Budzenski
1ce02049aa
Swap renovate codeowners with assignee configuration (#48987)
* Swap renovate codeowners with assignee configuration

* remove :
2019-11-25 09:38:49 -06:00
Mike Côté
132f6b1e09
Rename alertTypeParams to params (#51255) 2019-11-25 10:24:09 -05:00
Greg Thompson
6f01aa962e
EUI i18n token updates (#51307)
* updated i18n tokens for eui

* i18n snapshot

* translation file removals

* fix typo
2019-11-25 08:49:36 -06:00
Jean-Louis Leysens
ce2dd0dc66
Add cumulative cardinality per https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-pipeline-cumulative-cardinality-aggregation.html (#51591) 2019-11-25 15:18:34 +01:00
Jean-Louis Leysens
a1b01f4a75
- Update _template completion to work even when the index does not exist (#51592)
- Update _template body completions
2019-11-25 15:14:55 +01:00
Larry Gregory
aef6dd4707
Upgrade handlebars to 4.5.3 (#51486)
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2019-11-25 09:11:08 -05:00
patrykkopycinski
8282450f8f
[SIEM] Fix typo in Palo Alto Networks (#51570) 2019-11-25 13:29:49 +01:00
Dima Arnautov
a1a256ddcb
[ML] Reactive time-range selection in SMV (#51008)
* [ML] http service to TS, add httpCall using fromFetch

* [ML] types, add esSearchRx

* [ML] timeresiesexplorer_contans to ts

* [ML] timeseries_search_service to TS, add getMetricDataRx

* [ML] result service with observables

* [ML] update resolvers, forecast data support

* [ML] wip timeseriesexplorer

* [ML] fix state update for zoom

* [ML] skip loading update

* [ML] cleanup contextChartSelected

* [ML] add to subscriptions

* [ML] update imports

* [ML] timeseriesexplorer_utils

* [ML] refactor result service

* [ML] getAnnotations

* [ML] rename subject

* [ML] fix explorer and unit tests

* [ML] fix forecast

* [ML] replace skipWhilte with filter

* [ML] rename http$

* [ML] rename esSearch$

* [ML] remove filter operator, check for contextChartData before calculating the default range

* [ML] remove casting for FocusData

* [ML] replace with an arrow function

* [ML] fix Job import path

* [ML] fix annotations
2019-11-25 12:20:48 +01:00
MadameSheema
59affbaaf9
[SIEM] Returns failure if some tests fails (#51439)
* returns failure if some tests fails

* Update x-pack/legacy/plugins/siem/package.json

Co-Authored-By: Spencer <email@spalger.com>
2019-11-25 11:27:54 +01:00
patrykkopycinski
f32c1e439e
[SIEM] Add hosts and network anomalies histogram (#50295) 2019-11-25 10:07:00 +01:00
Walter Rafelsberger
b5133b5a57
[ML] Transform: Fix use of saved search in pivot wizard. (#51079)
Fixes applying saved searches in the transform wizard. Previously, upon initializing the transform wizard's state, we would miss passing on the initialized data from kibanaContext. The resulting bug was that saved search were not applied in the generated transform config and source preview table.
2019-11-24 08:36:11 +01:00
James Gowdy
9191d334c0 updating paths 2019-11-23 20:11:12 +01:00
James Gowdy
bce53ab2b3 [ML] Restructuring ml plugin in preparation for new platform 2019-11-23 20:11:12 +01:00
Frank Hassanabad
a2e4422095
[SIEM][Detection Engine] Adds variable for testing rules with Kibana Spaces (#51509)
* Added space env that for spaces testing with rules

* updated docs

* Update x-pack/legacy/plugins/siem/server/lib/detection_engine/README.md

Co-Authored-By: Garrett Spong <spong@users.noreply.github.com>
2019-11-22 17:30:20 -07:00
Matthew Kime
762c6760f2
fix management side nav accessibility (#51507) 2019-11-22 17:17:48 -06:00
Catherine Liu
bcd0c09899
[Canvas][Docs] Updates function reference (#50393)
* Updates Canvas function reference doc

* Added context examples

* Addressed feedback

* escapes curly braces

* Updated location help text

* Fixes doc build error
2019-11-22 16:05:09 -07:00
Xavier Mouligneau
b220404974
[SIEM] [DETECTION ENGINE] Add creation rule (#51376)
* Add creation rule on Detection Engine

* review + bug fixes

* review II + clean up

* fix persistence saved query

* fix eui prop + add type security to add rule

* fix more bug from review III

* review IV
2019-11-22 17:16:41 -05:00
Nathan Reese
fab4a5064a
[Maps] focus inputs when editor opens popovers (#51487) 2019-11-22 15:14:36 -07:00
spalger
9747a0f929 skip flaky suite (#51479) 2019-11-22 11:33:09 -07:00
Joe Reuter
8af09faa72 Move local application service into Kibana platform (#50661)
* move local application service registry to new platform

* move dev tools app itself

* fix i18n

* make sure legacy dev tools are imported

* rename dev tools plugin
2019-11-22 19:04:48 +01:00
Shahzad
bb222952eb
[Uptime] added test for chart wrapper (#50399)
* added test for chart wrapper

* update unit test

* updated test selector
2019-11-22 18:04:27 +01:00
Angela Chuang
d5b0fc82f2
[SIEM] Add DNS histogram (#50409)
* add histogram

* fix types error

* rename matrix histogram component

* clean up

* add dns histogram container

* wrap passed in function with useCallback

* isolate utils functions

* extract types

* disable chart legend for dns histogram

* add dns bytes in
2019-11-22 16:55:43 +00:00
Spencer
b2e200437e
[master] Update where log files are written using systemd (#47… (#51463)
At least for kibana-oss 7.4, this is how I can access Kibana logs. 
The file `/var/log/kibana` is not created and if I set it as a log file, kibana does not have permission to write there. 
See also:
https://github.com/elastic/kibana/issues/6579
2019-11-22 09:53:25 -07:00
Spencer
8b2835a986
disable babel/register cache in CI (#51300)
* disable babel/register cache in CI

* log stdio when logs don't match expectation

* upgrade babel/register so that cache files are not touched
2019-11-22 09:28:42 -07:00
Casper Hübertz
e09cde9842
[APM] Add missing semi-colon to styled component (#51436) 2019-11-22 15:26:43 +01:00
Melissa Alvarez
af19e9dd80
[ML] DF Analytics Outlier detection results - add search bar (#51235)
* add search bar to outlierDetection results table

* show empty results error message in table so user can retry query

* remove unused translation

* type updates after branch update
2019-11-22 09:12:21 -05:00
Chris Davies
8acd526bb7
[Lens] Allow numeric terms aggs (#50177) 2019-11-22 09:11:23 -05:00
kaiyan-sheng
b6d4e3a590
Add AWS logs filebeat module to Kibana home (#51236)
* Add AWS logs filebeat module to Kibana home

* Fix merge conflict

* Fix Cloudwatch Logs to AWS Cloudwatch logs
2019-11-22 07:00:36 -07:00
Robert Oskamp
ed8b822c8f
[ML] Add ownership of transform functional test files to ml-ui (#51418) 2019-11-22 14:46:57 +01:00
Thomas Watson
bbe287f05f
docs: improve CONTRIBUTING docs for how to run Kibana tests (#51285) 2019-11-22 14:05:00 +01:00
Court Ewing
c9c4f7930d
Remove all code associated with node-ctags (#51405)
This was only used by the code plugin, which was removed in 7.5.0.
2019-11-22 07:39:03 -05:00
Alexey Antonov
b5b81791a1
Use NP registry instead of ui/registry/field_formats - cleanup (#51419)
Cleanup  after merging #48108
2019-11-22 14:02:03 +03:00
MadameSheema
67a3489a4b
fixes toggle columns cypress tests (#51279) 2019-11-22 11:15:47 +01:00
Rudolf Meijering
0ce30b5ce1
Retry authentication and other connection failures in Saved Object migrations (#51324)
* Retry authentication and other connection failures in migrations

* Log migration ES connection errors once, retry every 2.5s

* Test migrations es connection error logging

* retry on AuthorizationExceptions during migration

* Set delay to 1 for tests
2019-11-22 10:48:54 +01:00
Nathan L Smith
5d29ede6ce
[APM] Fix typo in serviceMapEnabled config value (#51382) 2019-11-21 21:11:57 -06:00
Tim Sullivan
1034bb4819
[Reporting/np-k8] Remove several oncePerServer usages (#50997)
* [Reporting/np-k8] Remove several oncePerServer usages

* ts fixes 1

* ts fixes 2

* more ts fixes

* more ts fixes

* more ts fixes

* ts simplification

* improve ts

* remove any type for jobParams and define JobParamsSavedObject and JobParamsUrl

* ts simplification

* Fix ts

* ts simplification

* fix ts

* bug fix

* align with joels pr
2019-11-21 20:06:08 -07:00
Frank Hassanabad
fd4df6bcf8
Allows empty string for query when filters are set or ommiting them all together (#51398)
Fixes a bug to allow an empty query string when filters are set or to omit the query on the post call if you have a set of filters defined. 

### Checklist

Use ~~strikethroughs~~ to remove checklist items you don't feel are applicable to this PR.

~~- [ ] This was checked for cross-browser compatibility, [including a check against IE11](https://github.com/elastic/kibana/blob/master/CONTRIBUTING.md#cross-browser-compatibility)~~

~~- [ ] Any text added follows [EUI's writing guidelines](https://elastic.github.io/eui/#/guidelines/writing), uses sentence case text and includes [i18n support](https://github.com/elastic/kibana/blob/master/packages/kbn-i18n/README.md)~~

~~- [ ] [Documentation](https://github.com/elastic/kibana/blob/master/CONTRIBUTING.md#writing-documentation) was added for features that require explanation or tutorials~~

- [x] [Unit or functional tests](https://github.com/elastic/kibana/blob/master/CONTRIBUTING.md#cross-browser-compatibility) were updated or added to match the most common scenarios

~~- [ ] This was checked for [keyboard-only and screenreader accessibility](https://developer.mozilla.org/en-US/docs/Learn/Tools_and_testing/Cross_browser_testing/Accessibility#Accessibility_testing_checklist)~~

### For maintainers

~~- [ ] This was checked for breaking API changes and was [labeled appropriately](https://github.com/elastic/kibana/blob/master/CONTRIBUTING.md#release-notes-process)~~

- [x] This includes a feature addition or change that requires a release note and was [labeled appropriately](https://github.com/elastic/kibana/blob/master/CONTRIBUTING.md#release-notes-process)
2019-11-21 19:23:01 -07:00
Tim Vernum
2193970928
Update explanation of elasticsearch.ssl.key (#50748)
The docs for `elasticsearch.ssl.certificate` and `elasticsearch.ssl.key` were not entirely accurate and referenced an out of date ES setting.
2019-11-22 13:05:54 +11:00
spalger
90db0b8101 disable flaky suite (#40912) 2019-11-21 18:28:50 -07:00
Spencer
b934f8dd49
[master] Polish SHA comparison in reference doc (#46432) (#51407)
* Polish SHA comparison in reference doc

* Update targz.asciidoc
2019-11-21 17:29:56 -07:00
Jose Sanchez Robles
2b04ba199c Added Wazuh plugin to known plugins list (#50751) 2019-11-21 17:16:46 -07:00
Court Ewing
5974c4658f
Remove @elastic/lsp-extension (#51335)
This was only used by the code plugin, which was removed in 7.5.0.
2019-11-21 18:33:15 -05:00
Nathan Reese
a9258ffa5e
[Maps] avoid duplicated geometry in filter meta (#51133)
* [Maps] avoid duplicated geometry in filter meta

* clean up

* fix type error

* remove filterTypes from data shim and import directly from NP data plugin

* rename mapQueryDsl to mapSpatialFilter

* add unit test for mapSpatialFilter
2019-11-21 15:46:00 -07:00
Spencer
8acfd4673c
reset locked emotion/* and csstype versions (#51366) 2019-11-21 15:23:40 -07:00