Commit graph

31260 commits

Author SHA1 Message Date
Walter Rafelsberger
bb55e8a21c
[ML] Transforms: Migrate server plugin to NP. (#58714)
Migrate transform legacy server to NP.
- Create server plugin/index for transform in x-pack/plugins.
- Move all legacy/server files to plugins/transform
2020-03-03 09:01:45 +01:00
Walter Rafelsberger
ecbcceb74d
[ML] Transform: Fix advanced editor initialization. (#59006)
Fixes regression introduced by #58015 to correctly initialize the transform wizard advanced editor with the current configuration.
2020-03-03 08:59:00 +01:00
Daniil Suleiman
421d9d502b
[Vis Editor] Fix field combo box search value (#58601)
* Fix field combo box search value

* Fix inconsistent behavior

* Apply validation for agg_select
2020-03-03 10:31:02 +03:00
Daniil Suleiman
41deda3584
Fix monaco editor styling (#58888)
* Fix monaco editor styling

* Change line highlight border
2020-03-03 10:28:40 +03:00
Davis Plumlee
ffab68d01b
[Endpoint] Alert Details Overview (#58412) 2020-03-02 19:32:04 -05:00
Nathan L Smith
2378d8a0fd
Service map language icons (#58633)
Add icons as described in #56235.

Also:

* Add double-border and ghost "shadow" on nodes
* Add framework name capability to popover metrics
2020-03-02 17:36:43 -06:00
Steph Milovic
90b3678dff
[SIEM] [Case] Comments to case view (#58315) 2020-03-02 16:04:29 -07:00
Josh Dover
48a33abdee
Remove appBasePath from docs + add mock for AppMountParameters (#58775) 2020-03-02 15:51:33 -07:00
Spencer
bb6fd0bf4f
[kbn/optimizer] fix ui/* url rewrites in dist (#58627)
* [kbn/optimizer] fix ui/* url rewrites in dist

* add tests to verify styles are built correctly and ui-rewrites are happening

* clarify change to dirs creation

* create tested & shared parsePath helper

* update renovate config

* split implementation of parsePath for dir and file paths

* switch to valid css property

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-03-02 15:15:44 -07:00
Maja Grubic
b7c8e3a252
Dashboard a11y tests (#58122)
* adding comprehensive dashboard tests

* fixing delete and adding dima changes

* Fixing some of the a11y test failures

* Fixing i18n issue

* Extracting exit fullscreen logic in a separate function

* Fixing typo

* Upgrading axe

* Fixing failing jest tests

* Removing main tag as it was causing a test to fail

* Adding focusable=false to a range control as well

* Update test/accessibility/apps/dashboard.ts

Co-Authored-By: Michail Yasonik <michail.yasonik@elastic.co>

* Fixing linting error

* Update src/legacy/core_plugins/input_control_vis/public/components/vis/list_control.tsx

Co-Authored-By: Michail Yasonik <michail.yasonik@elastic.co>

* Add comments

Co-authored-by: Bhavya RM <bhavya@elastic.co>
Co-authored-by: Michail Yasonik <michail@yasonik.com>
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-03-02 20:56:07 +00:00
Josh Dover
be0a4c4e22
Downgrade "setting up plugin" log to debug (#58776) 2020-03-02 13:20:18 -07:00
Brian Seeders
c90cfe208d
[CI] Pipeline refactoring (#56447) 2020-03-02 15:04:27 -05:00
Caroline Horn
2cf863c27b
[Advanced Settings] Fix a11y of unsaved indicator (#58511)
* [Advanced Settings] Fix a11y of unsaved indicator

- Reduced size of the indicator bar on the left
- Added icons with tooltips to indicated unsaved and invalid states

* Snaps

* Fix mobile view of bottom bar
2020-03-02 14:38:43 -05:00
Joe Reuter
a6b166b69c
put params into short url instead of behind it (#58846) 2020-03-02 20:14:51 +01:00
Joe Reuter
cbbc963001
show timepicker in timelion and tsvb (#58857) 2020-03-02 20:14:37 +01:00
Joe Reuter
17b3d80369
improve graph missing workspace error message (#58876) 2020-03-02 20:14:24 +01:00
Nathan Reese
2998ec06fe
[Maps] direct Discover "visualize" to open Maps application (#58549)
* [Maps] direct Discover visualize to Maps application

* pass initial layers to maps app

* add functional test

* fix parentheses messed up by lint fix

* fix i18n expression

* move logic into lib

* fix typescript errors

* use constant for geo_point and geo_shape, more TS noise

* use encode_array in an attempt to make TS happy

* another round of TS changes

* one more thing

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-03-02 11:47:35 -07:00
Devon Thomson
4696736528
Disallow duplicate percentiles (#57444) (#58299)
Added an optional validation step to the number_list component to disallow duplicates, Reworked and consolidated number_list component validations into one method and enabled this option in the percentiles editor. Added unit / integration tests
2020-03-02 13:26:12 -05:00
Peter Pisljar
c81e0da584
removing references to visTypes uiExports (#58337) 2020-03-02 12:01:00 -05:00
Andrew Goldstein
e9abe735f2
[SIEM] Default the Timeline events filter to show All events (#58953)
## [SIEM] Default the Timeline events filter to show All events

The Timeline events filter introduced in `7.6` to support the [detection engine](https://www.elastic.co/guide/en/siem/guide/current/detection-engine-overview.html) defaulted to filtering by `Raw events`, and thus required manually selecting `All events` or `Signal events` from the dropdown to view signals.

The new default is `All events`, per the screenshots below:

### Before
![event-filter-before](https://user-images.githubusercontent.com/4459398/75593223-ecc61500-5a41-11ea-8d7d-8db5eccb1eb4.png)

### After
![event-filter-after](https://user-images.githubusercontent.com/4459398/75593238-f5b6e680-5a41-11ea-9e12-2fc1232f58d1.png)
2020-03-02 09:36:14 -07:00
Alison Goryachev
323bb21df3
[Remote clusters] Add indexManagement as required plugin (#58915) 2020-03-02 11:27:15 -05:00
Kaarina Tungseth
1eca341260
[DOCS] Rework of main get started page (#58260)
* [DOCS] Rework of main gett started page

* Redirect for add-sample-data

* Link fix

* Review comments

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-03-02 09:59:29 -06:00
Charlie Pichette
74d0e9297f
[Endpoint] [Tests] fixes #57946 flaky endpoint policy list test (#58348)
* endpoint-161-refactor-management-list-test

* fix location of es archive file

* issue 57946 fix flaky endpoint policy list test

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-03-02 10:46:20 -05:00
kqualters-elastic
a3be4e2222
[Endpoint] add resolver middleware (#58288)
* Add resolver middleware

* Update types to match events, use sample events in useCamera tests

* add predicate to convert alertdata to legacy endpoint event

* Use mock event generator in tests

* Guard against events not having agent or endpoint fields

Co-authored-by: Robert Austin <robert.austin@elastic.co>
2020-03-02 09:20:21 -05:00
Uladzislau Lasitsa
b5dd99c466
Converted terms_other_bucket_helper to TS. Migrated tests to jest. (#58143)
* Converted terms_other_bucket_helper to TS. Migrated tests to jest.

* Fixed some remarks

* fix PR comments

* Fixed tests

* Fixed types

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
Co-authored-by: Alexey Antonov <alexwizp@gmail.com>
2020-03-02 16:50:44 +03:00
Liza Katz
c9ebeb7cff
explicit ui exports from data plugin (#57764)
* explicit ui exports

* Fix imports in data plugin

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-03-02 13:07:02 +00:00
Mikhail Shustov
810a6b4748
merge only plain objects (#59011) 2020-03-02 13:37:20 +01:00
Rudolf Meijering
d7601cc743
Retry migration operations which fail due to snapshot in progress (#58884)
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-03-02 13:15:29 +01:00
Jean-Louis Leysens
ac5e7aa81e
[Upgrade Assistant] Remove "boom" from reindex service (#58715)
* Removed Boom from reindex-service

The reindex service had logic inside it for mapping errors
to HTTP. This has been moved to the route handlers and also
removed Boom.

There is one more instance of Boom use inside of reindex-actions
but that comes from Saved Objects which should probably be removed
at a later stage.

* Fix import path

Specify the full relative import path to the kibana's core
server folder

* Remove unnecessary if statement

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-03-02 11:08:19 +01:00
DziyanaDzeraviankina
37d18a7d58
[data] Clean up QueryStringInput unit tests (#58704)
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-03-02 12:22:39 +03:00
Nic
45f804c43c
[SIEM] Detection Fix typo in Adobe Hijack Persistence rule (#58804)
Fixes https://github.com/elastic/kibana/issues/58803
2020-03-01 15:30:44 -07:00
Christos Nasikas
5b532ff50f
Restores [SIEM][CASE] Init Configure Case Page (#58121) (#58924)
* [SIEM][CASE] Init configure cases

* [SIEM][CASE] Translate header title

* [SIEM][CASE] Add back link

* [SIEM][CASE] Add default options to header page

* [SIEM][CASE] Create configure cases page redirections and links

* [SIEM][CASE] Add configure cases button

* [SIEM][CASE] Change translation variable

* [SIEM][CASE] Create wrappers

* [SIEM][CASE] Create section wrapper

* [SIEM][CASE] Switch to new wrapper

* [SIEM][CASE] Add translations

* [SIEM][CASE] Add connectors dropdown component

* [SIEM][CASE] Add connectors component

* [SIEM][CASE] Show connectors

* [SIEM][CASE] Create add new connector button

* [SIEM][CASE] Change values

* [SIEM][CASE] Use state for connectors dropdown

* [SIEM][CASE] Remove unnecessary attribute

* [SIEM][CASE] Remove timeline in configuration page

* [SIEM][CASE] Remove text from gear button

* [SIEM][CASE] make show timeline more generic so we can re-use if need it

Co-authored-by: Xavier Mouligneau <189600+XavierM@users.noreply.github.com>
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-03-01 13:29:18 +02:00
Tyler Smalley
420ded8eb2 Skips additional failing Ingest Manager integration tests
https://github.com/elastic/kibana/issues/58969
https://github.com/elastic/kibana/issues/58968
https://github.com/elastic/kibana/issues/58967
https://github.com/elastic/kibana/issues/58966

Signed-off-by: Tyler Smalley <tyler.smalley@elastic.co>
2020-02-29 16:39:47 -08:00
Tyler Smalley
61c9dc4022 Skips failing Ingest Manager integration tests
https://github.com/elastic/kibana/issues/58969
https://github.com/elastic/kibana/issues/58968
https://github.com/elastic/kibana/issues/58967
https://github.com/elastic/kibana/issues/58966
https://github.com/elastic/kibana/issues/58961
https://github.com/elastic/kibana/issues/58960
https://github.com/elastic/kibana/issues/58959
https://github.com/elastic/kibana/issues/58958
https://github.com/elastic/kibana/issues/58958
https://github.com/elastic/kibana/issues/58957
https://github.com/elastic/kibana/issues/58956
https://github.com/elastic/kibana/issues/58955
https://github.com/elastic/kibana/issues/58954

Signed-off-by: Tyler Smalley <tyler.smalley@elastic.co>
2020-02-29 16:34:54 -08:00
Maryia Lapata
3f1930ae63
Move dev tools styles to NP (#58855) 2020-02-29 12:53:06 +03:00
Patrick Mueller
100c570219
change to have kibana --ssl cli option use more recent certs (#57933)
* change to have --ssl cli option use more recent certs
* also configure 'server.ssl.certificateAuthorities' per PR review
* delete theoretically now-unused ssl creds
2020-02-28 17:23:56 -05:00
spalger
d55ddd23a1 disable failing suite (#58942) 2020-02-28 14:58:32 -07:00
Rudolf Meijering
56ba753db0
Don't start pollEsNodesVersion unless someone subscribes (#56923)
* Don't start pollEsNodesVersion unless someone subscribes

By not polling until subscribed to, we prevent verbose error logs when
the optimizer is run (which automatically skips migrations).

* Test pollEsNodeVersions behaviour

* Cleanup unused code

* PR Feedback

* Make test more stable

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-02-28 22:32:58 +01:00
Josh Dover
9bdd23a460
Do not write UUID file during optimize process (#58899) 2020-02-28 13:31:59 -07:00
Kevin Logan
b46a335f2b
[Endpoint] Task/add nav bar (#58604)
* Add tabs to the Endpoint app.  Uses EuiTabs and browser history for integration with react-router

Co-authored-by: Paul Tavares <56442535+paul-tavares@users.noreply.github.com>
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-02-28 11:25:36 -08:00
Zacqary Adam Xeper
06ebbb3fe0
[Metric Alerts] Add backend support for multiple expressions per alert (#58672)
* Add support for multiple alert expressions

* Rename expressions to criteria

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-02-28 13:11:50 -06:00
Zacqary Adam Xeper
b658baf012
[Metrics Alerts] Fix alerting on a rate aggregation (#58789)
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-02-28 13:11:34 -06:00
spalger
0f329f564b disable flaky suite (#55953) 2020-02-28 11:45:25 -07:00
Spencer
a3e68a1830
Revert "[SIEM] apollo@3 (#51926)" and "[SIEM][CASE] Init Confi… (#58806)
* Revert "[SIEM] apollo@3 (#51926)"

This reverts commit 320e292ea8.

* Revert "[SIEM][CASE] Init Configure Case Page (#58121)"

This reverts commit 967bef7b38.

* update a snapshot...
2020-02-28 11:42:34 -07:00
Luke Elmers
621fb6606c
[resubmit] Prep agg types for new platform (#58893) 2020-02-28 11:15:43 -07:00
Wylie Conlon
6c6bc1f48a
[Lens] Allow number formatting within Lens (#56253)
* [Lens] Allow custom number formats on dimensions

* Fix merge issues

* Text and decimal changes from review

* Persist number format across operations

* Respond to review comments

* Change label

* Add persistence

* Fix import

* 2 decimals

* Persist number formatting on drop too

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-02-28 13:08:37 -05:00
Lukas Olson
8620f437d0
[Autocomplete] Use settings from config rather than UI settings (#58784)
* Update autocomplete to use settings from config rather than advanced settings

* Update terrible snapshot

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-02-28 10:15:09 -07:00
Stacey Gammon
ad0aa12296
Improve action and trigger types (#58657)
* Improve types so emitting the wrong context shape complains, as does using a trigger id that has not been added to the trigger context mapping.

* remove unneccessary code
2020-02-28 12:12:03 -05:00
Brandon Kobel
c5d17acab6
Fix privileges flaky test because the order in arrays matters for equality (#58790)
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-02-28 08:58:24 -08:00
Alejandro Fernández Haro
fd25ae6505
[Telemetry] Application Usage implemented in @kbn/analytics (#58401)
* [Telemetry] Report the Application Usage (time of usage + number of clicks)

* Add Unit tests to the server side

* Do not use optional chaining in JS

* Add tests on the public end

* Fix jslint errors

* jest.useFakeTimers() + jest.clearAllTimers()

* Remove Jest timer handlers from my tests (only affecting to a minimum coverage bit)

* Catch ES actions in the setup/start steps because it broke core_services tests

* Fix boolean check

* Use core's ES.adminCLient over .createClient

* Fix tests after ES.adminClient

* [Telemetry] Application Usage implemented in kbn-analytics

* Use bulkCreate in store_report

* ApplicationUsagePluginStart does not exist anymore

* Fix usage_collection mock interface

* Check there is something to store before calling the bulkCreate method

* Add unit tests

* Fix types in tests

* Unit tests for rollTotals and actual fix for the bug found

* Fix usage_collection mock after #57693 got merged

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-02-28 16:52:35 +00:00