Commit graph

35449 commits

Author SHA1 Message Date
Spencer 79713b9b71
[browserslist] remove user-agent sniffing for IE support hint (#74464)
Co-authored-by: spalger <spalger@users.noreply.github.com>
2020-08-06 10:57:29 -07:00
Devon Thomson dad5c72a0c
[Fix] Lose OriginatingApp Connection on Save After Create new (#74420)
Fixed typo created in #72725 which caused the originatingApp connection not to be lost properly after Create new
2020-08-06 13:24:54 -04:00
Marta Bondyra fa2251dd31
[Lens] Add functional tests on chart transitions and pie chart (#74083) 2020-08-06 18:52:21 +02:00
Jen Huang 042254f026
[Ingest Manager] Update dataset.* to data_stream.* in package config SO attributes (#74414)
* Update `dataset.*` to `data_stream.*` in full agent config yaml

* Replace `dataset.*` with `data_stream.*` in package config saved object attributes
2020-08-06 09:17:20 -07:00
Yulia Čech d7644991d9
[ILM] Convert node allocation component to TS and use hooks (#72888)
* [ILM] Convert node allocation component to TS and use hooks

* [ILM] Fix jest tests

* [ILM] Fix i18n check

* [ILM] Implement code review suggestions

* [ILM] Fix type check, docs link and button maxWidth in NodeAllocation component

* Fix internaliation error

* [ILM] Change error message when unable to load node attributes

* [ILM] Delete a period in error callout

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-08-06 18:06:13 +02:00
Lisa Cawley 0600f000be
[DOCS] Add Kibana privileges to glossary (#74410) 2020-08-06 08:58:06 -07:00
Xavier Mouligneau d00035422a
[SECURITY] Fix imports (#74528)
* simple solution to avoid duplicate request

* fix import of deepEqual
2020-08-06 11:44:14 -04:00
Joe Reuter b3202a0e4c
fix tsvb validation (#74344) 2020-08-06 17:02:27 +02:00
Walter Rafelsberger 11c74bc03f
[ML] Fix analytics list on management page. (#74254)
The analytics job page in the Kibana management section didn't have the context provided by React Router and Kibana's own history object so the page crashed on load. The context is necessary to construct the correct URLs to navigate to the ML plugin itself.
This PR fixes it by wrapping the management page in <Router history={history} />. Also adds functional tests to cover navigating to the jobs list pages in stack management.
2020-08-06 15:35:53 +02:00
Anton Dosov 3064c6eceb
Improve state sync error handling (#74264)
Fixes #71461 regression since 7.7

New state syncing utils didn't properly handle errors,
Errors happening during URL parsing or writing wasn't handled, so state syncing could stop or in worth case blow out. (see #71461)

There are not much scenarios where missing proper error handling could really impact users, except the one described in #71461:

Kibana users state:storeInSessionStorage
Users often intuitively share hashed dashboard urls directly
When someone opens those urls - there is a blank screen with warning
In 7.6 - dashboard would still load with default state.
Since 7.7 these still could be achieved by removing query params for URL, but it is not obvious for regular users.

This PR makes sure that behaviour is similar to one we had before 7.7.


Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-08-06 15:34:32 +02:00
Robert Austin d43d45d77a
[Resolver] Safer types (#74366)
All mappings in Elasticsearch support arrays. They can also return null values or be missing. For example, a `keyword` mapping could return `null` or `[null]` or `[]` or `'hi'`, or `['hi', 'there']`. We need to handle these cases in order to avoid throwing an error. 

Specific and nuanced handling of these cases isn't the goal of this PR. This PR just introduces some helper types that can be used to assist you in writing defensive code. 

When dealing with an value that comes from ES, wrap the underlying type in `ECSField`. For example, if you have a `keyword` or `text` value coming from ES, cast it to `ECSField<string>`.

### Added New Resolver specific types
`ResolverEvent` has a new safe equivalent `SafeResolverEvent`. The constituent parts of `ResolverEvent` also have safe equivalents: `SafeEndpointEvent` and `SafeLegacyEndpointEvent`. Use these in your code for added type safety.

### New safe event methods
The event methods accept the unsafe `ResolverEvent`. Create new methods that accept the safe `SafeResolverEvent`. By keeping copies of both methods around we can gradually transition to the safe versions:

* `isLegacyEvent` has `isLegacyEventSafeVersion`
* `eventTimestamp` has `timestampSafeVersion`
* `eventName` has `processNameSafeVersion`
* `eventId` has `eventIDSafeVersion`
* `entityId` has `entityIDSafeVersion`
* `parentEntityId` has `parentEntityIDSafeVersion`
2020-08-06 09:26:00 -04:00
Xavier Mouligneau 8f98b72df8
[SECURITY] Bug investigate timeline (#74429)
* simple solution to avoid duplicate request

* fix investigate template timeline from template timeline
2020-08-06 09:19:59 -04:00
Felix Stürmer 152f41c3b0
[Logs UI] Replace deprecated getInjectedVar with NP spaces API (#74280)
* Replace getInjectedVar() with NP spaces API

* Fix typo in comment

* Fix typo in comment

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-08-06 15:18:49 +02:00
Vadim Dalecky bbfc4922d2
Disable in-chart "Explore underlying data" by default (#74332)
* fix: 🐛 disable in-chart "Explore underlying data" by default

* test: 💍 disable in-chart action functional test suite

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-08-06 15:07:14 +02:00
Joe Reuter 9186171ad1
[Lens] Document UI terminology (#72423) 2020-08-06 14:02:37 +02:00
Oliver Gupte 13fd9e39ea
Observability Overview fix extra basepath prepend for alerting fetch (#74465) 2020-08-06 10:12:48 +02:00
Marta Bondyra 626fbc2948
[Lens] Clean and inline disabling of react-hooks/exhaustive-deps eslint rule (#70010) 2020-08-06 10:10:09 +02:00
Matthias Wilhelm aa75f80afd
Skip "space with index pattern management disabled" functional test for cloud env (#74073)
* Skipped due to occasional flakiness in cloud env, cause by ingest management tests
2020-08-06 08:07:19 +02:00
Ryland Herrick f5c9aa8860
Filter out non-security jobs when collecting Detections telemetry (#74456)
Our jobs summary call returns all installed jobs regardless of group;
passing groups as jobIds does not perform group filtering.

This adds a helper predicate function on which to filter these results,
and updates tests accordingly.
2020-08-05 18:55:23 -05:00
Brent Kimmel dfad75ff1a
[Security Solution][Test] Enzyme test for related events button (#74411)
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-08-05 18:46:56 -04:00
Kevin Logan 4ae6746c0b
[SECURITY_SOLUTION] add z-index to get over nav bar (#74427) 2020-08-05 18:32:22 -04:00
Jen Huang 9ef04e7fb2
Rename package configs SO to package policies (#74422) 2020-08-05 15:28:03 -07:00
Lisa Cawley 4b3326d6fb
[DOCS] Add Kibana alerts to Stack Monitoring (#73762)
Co-authored-by: gchaps <33642766+gchaps@users.noreply.github.com>
2020-08-05 15:08:38 -07:00
spalger b001301f5a skip flaky suite (#71390)
(cherry picked from commit d0afbd887d)
2020-08-05 15:02:24 -07:00
Melissa Alvarez af358c94a3
[ML] DF Analytics: adds functional tests for edit form (#73885)
* add edit analytics functional test

* adds edit test service

* update edit test wording for clarity

* check flyout closes after edit

* rename testSubj for consitency
2020-08-05 17:58:40 -04:00
Jen Huang c655f50950
Rename agent configs SO to agent policies (#74397) 2020-08-05 12:51:58 -07:00
Spencer 057cab725c
[Jenkins] run CI when plugin readmes change (#74388)
Co-authored-by: spalger <spalger@users.noreply.github.com>
2020-08-05 12:05:17 -07:00
Zacqary Adam Xeper 0737241dec
[Metrics UI] Fix validating Metrics Explorer URL (#74311) 2020-08-05 13:13:22 -05:00
Eric Davis 1c428ffed7
fixing encoding issue with \ for enroll command (#74379) 2020-08-05 14:11:27 -04:00
Nicolas Ruflin c0bb5375e0
[Ingest Manager] Update package registry for testing to f6b01d (#74341)
Many changes went into the registry and the packages recently. This is updating to the most recent version of the registry distribution currently in production.


Co-authored-by: Sonja Krause-Harder <sonja.krause-harder@elastic.co>
2020-08-05 20:01:52 +02:00
Tim Roes c8597ec84b
Change experimental message for visualizations (#74354) 2020-08-05 19:52:00 +02:00
Gidi Meir Morris 41e3128ecd
[Alerting] Reload the Alerts List when alerts are deleted (#73715)
Reloads the entire Alerts list when alerts are deleted through the UI.
2020-08-05 18:48:09 +01:00
Constance 47b9aba3bf
[Enterprise Search] Fix/DRY out plugin i18n strings (#74323)
* i18n refactor

- DRY out plugin details to constants and correctly i18n-ize front-end-facing strings

* DRY out new i18n constants

- refactor instances of i18n.translate to use new constants

* Fix non-i18n'd breadcrumb strings

* PR feedback: swap out more plugin ID strings for constants
2020-08-05 10:12:25 -07:00
Melissa Alvarez 4150a234c8
update empty prompt in analytics list (#74174) 2020-08-05 12:43:58 -04:00
Gidi Meir Morris 5c770e5930
[Task Manager] Correctly handle running tasks when calling RunNow and reduce flakiness in related tests (#73244)
This PR addresses two issues which caused several tests to be flaky in TM.

When `runNow` was introduced to TM we added a pinned query which returned specific tasks by ID.
This query does not have the filter applied to it which causes task to return when they're already marked as `running` but we didn't address these correctly which caused flakyness in the tests.
This didn't cause a broken beahviour, but it did cause beahviour that was hard to reason about - we now address them correctly.

It seems that sometimes, especially if the ES queue is overworked, it can take some time for the update to the underlying task to be visible (we don't user `refresh:true` on purpose), so adding a wait for the index to refresh to make sure the task is updated in time for the next stage of the test.
2020-08-05 17:35:38 +01:00
Marta Bondyra cf6413ab2f
[Lens] fix chart switching when on VisualizationDimensionEditor (#70689) 2020-08-05 18:25:16 +02:00
Yara Tercero e23c5eafa1
[Security Solution][Exceptions] - Fixes builder overflow and updates ux for nested entries (#74262)
## Summary

- updates the builder nested entries so that the children do not display the parent path - so instead of `parent.child` it just shows `child`
- updates the builder to fix overflow issue
2020-08-05 12:10:28 -04:00
MadameSheema 549c256390
[SIEM] Adds rule override Cypress tests (#74367)
* implements rule override test

* refactors the code
2020-08-05 17:45:30 +02:00
Mikhail Shustov 88c0631344
Update @typescript-eslint to ensure compatibility with TypeScript v3.9 (#74091)
* bump @typescript-eslint deps

* update rules

* fix errors in pacakges

* fix src/

* fix x-pack

* fix test

* fix typings

* fix examples

* allow _ as prefix and suffix

* roll back prefix and suffix changes

* add eslint-plugin-eslint-comments

* report unused rules

* remove unused eslint comments from tests

* remove unused eslint comments 2nd pass

* remove unused eslint comments from src/

* remove unused comments in x-pack

* use no-script-url and no-unsanitized/property for ts files

* remove unused eslint comments

* eui/href-or-on-click removed when not complained

* no import/* rules for ts files

* cleanup

* remove the unused eslint-disable

* rollback unnecessary changes

* allow underscore prefix & sufix in type name

* update docs

* fix type error in enterprise search plugin mocks

* rename platform hack __coreProvider --> _coreProvider

* rollback space removal in src/core/public/legacy/legacy_service.test.ts

* fix naming convention in APM
2020-08-05 17:32:19 +02:00
Melissa Alvarez 3fb77fb546
[ML] DF Analytics creation wizard: show link to results (#74025)
* show view results card once job complete

* update types

* update types and move css to own file
2020-08-05 10:31:47 -04:00
Mikhail Shustov 8759646576
update docs (#74364) 2020-08-05 15:28:03 +02:00
Alison Goryachev bf22fe54e1
[Ingest Node Pipelines] Refactor pipeline simulator code (#72328) 2020-08-05 09:21:57 -04:00
Tim Roes f9fc83fb1d
Add README files for Kibana app plugins (#74277)
* Add README files for Kibana app plugins

* Update src/plugins/timelion/README.md

Co-authored-by: Matthias Wilhelm <ankertal@gmail.com>

* Update src/plugins/vis_type_vislib/README.md

Co-authored-by: Matthias Wilhelm <ankertal@gmail.com>

Co-authored-by: Matthias Wilhelm <ankertal@gmail.com>
2020-08-05 14:28:56 +02:00
Cauê Marcondes 7a1b09dcf1
[APM] Average for transaction error rate includes null values (#74345) 2020-08-05 14:28:13 +02:00
Sonja Krause-Harder b26bd6175d
[Ingest Manager] Adjust dataset aggs to use datastream fields instead (#74342)
* [Ingest Manager] Adjust dataset aggs to use datastream fields instead

Elastic Agent and Elasticsearch are switching over from using dataset.* to datastream.*. This adjust the aggregation on the dataset page to get the datastreams.

For this to work properly, the most recent version of Elasticsearch 7.9 must be used and is pending updates on all the packages to ship also the datastream fields, see https://github.com/elastic/integrations/pull/213

* Update datastream to data_stream

* Update data stream name generation

* Fix typo

* Temporarily use datastream instead of data_stream

* updating to use `data_stream` instead of `datastream`

Co-authored-by: ruflin <spam@ruflin.com>
Co-authored-by: Jen Huang <its.jenetic@gmail.com>
2020-08-05 13:48:11 +02:00
Dima Arnautov 8231b0ccfc
[ML] Fix initial plugin's bundle size (#74047)
* [ML] use dynamic imports

* [ML] fix react-use imports

* [ML] change embeddables imports

* [ML] embeddable exports

* [ML] move SCSS import

* [ML] management page styles

* [ML] refactor with types and constants files

* [ML] move declarations
2020-08-05 13:18:29 +02:00
John Schulz beb7b8245d
[Ingest Manager] prevent crash on unhandled rejection from setupIngestManager (#74300)
* Add test to ensure setup rejects if errors thrown.

* Return the promise from setup so test passes
2020-08-05 07:08:04 -04:00
Alejandro Fernández 22d6f09d31
[Logs UI] Correct trial period duration in anomaly splash screen (#74249) 2020-08-05 11:19:41 +02:00
Matthias Wilhelm c24b17f334
[Discover] Inline noWhiteSpace function (#74331)
* Inline noWhiteSpace function

* Fix TypeScript

* Remove unused function file
2020-08-05 10:49:36 +02:00
EamonnTP f97641c84a
[DOCS] Add Observability topic (#73041)
* Add observability content

* Remove xpack from file name

* Updates following review

* Review edits

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-08-05 09:28:20 +01:00