Commit graph

35688 commits

Author SHA1 Message Date
Thomas Watson ce6011e4d5
Bump angular dependency from 1.7.9 to 1.8.0 (#74482) 2020-08-11 10:05:44 +02:00
James Gowdy 8d9bafeb57
[ML] Fixing schema for custom rule conditions (#74676)
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-08-11 09:01:19 +01:00
James Gowdy 01d8f00b50
[ML] Refactor in preparation for new es client (#74552)
* [ML] Refactor in preparation for new es client

* removing commented out code

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-08-11 08:53:16 +01:00
James Gowdy 6bea373e8f
[ML] Adding initial file analysis overrides (#74376)
* [ML] Adding initial file analysis overrides

* using common default sample lines

* correcting bottom padding

* adding missed padding

* code clean up

* fixing translations

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-08-11 08:47:26 +01:00
Joel Griffith ae529879f2
Allow any hostname for chromium proxy bypass (#74693)
* Allow any hostname for chromium proxy bypass

* Adds a test for the proxy bypass config

* Add wildcard to test
2020-08-10 16:07:12 -07:00
Melissa Alvarez 4ee483be23
[ML] ML on Kibana Management: Add ability to pass a group ID filter to job management page (#74533)
* handle group id in url for anomaly detection

* filter analytics list by group id.

* handle list of groupIds

* ensure analytics can handle jobid in url. rename util function

* add tests for getSelectedIdFromUrl and getGroupQueryText

* keep groupIds as array of strings and jobId as single string

* fix tests and update types
2020-08-10 17:18:36 -04:00
Zacqary Adam Xeper 8f15621cbd
[Metrics UI] Fix No Data preview pluralization (#74399)
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-08-10 14:35:44 -05:00
Michael Olorunnisola 6eb0d116b0
[Bug][Security_Solution][Telemetry] Capitalize S in macOS (#74688) 2020-08-10 15:30:22 -04:00
Thomas Neirynck 680516154c
Remove karma tests from legacy maps (#74668) 2020-08-10 15:10:03 -04:00
Sandra Gonzales 543109b601
[Ingest Manager] stop creating events-* index pattern and placeholder index (#74683)
* stop creating events-* index pattern and indices

* add integration test to check for placeholder indices
2020-08-10 13:52:30 -05:00
Constance 697cd6412e
[Enterprise Search] Update the browser/document title on plugin navigation (#74392)
* Rename kibana_breadcrumbs to kibana_chrome

- in anticipation of upcoming refactor where SetPageChrome now handles document title as well as Kibana breadcrumbs
+ cleanup exports

* Add generate_title helpers

- will be used by new set_chrome helper

* Add setDocTitle context + behavior to set_chrome

+ refactor set_chrome.test.tsx:
  - add title tests
  - add SetWorkplaceSearchChrome test to increase coverage
  - clean up inner/outer call in favor of simpler mocks/imports
  - simplify isRoot tests

* Update plugins to set product titles
- on mount but before render

* Copy feedback - change pipe separator to hyphen

- to match ' - Elastic'

* Add functional tests confirming that document titles updated
2020-08-10 10:37:12 -07:00
Fabien Baligand 7e55da56de
[visualizations] Add i18n translation for 'No results found' (#74619) 2020-08-10 11:24:28 -06:00
Nathan Reese ed34d6fe30
[maps] convert vector style properties to TS (#74553)
* [maps] convert vector style properties to TS

* more conversionts

* tslint cleanup

* final tslint fixes

* update snapshots for bug fix

* review feedback

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-08-10 10:46:11 -06:00
Dmitry Lemeshko 8819644f13
bump geckodriver binary to 0.27 (#74638) 2020-08-10 18:15:28 +02:00
Vignesh Shanmugam 415a32c86f
fix: update apm agents to catch abort requests (#74658) 2020-08-10 18:06:20 +02:00
Jonathan Buttner 7fd2c2bed2
[Security Solution] Resolver children pagination (#74603)
* Handle info and change events for children

* Adding sequence

* Fixing children pagination

* Fixing tests

* Adding docs
2020-08-10 11:54:22 -04:00
Melissa Alvarez a6615c6141
add memoryStatus to df analytics page and analytics table in management (#74570) 2020-08-10 11:50:18 -04:00
Jonathan Buttner b4b6428c1c
[Ingest Manager] Allow prerelease in package version (#74452)
* Allow prerelease in version

* Adding integration test for prerelease version of a package

* Tests for invalid package key

* Removing inter-test dependency
2020-08-10 11:18:30 -04:00
Luke Elmers 708ba4ce4c
[App Arch]: remove legacy karma tests (#74599) 2020-08-10 08:17:04 -06:00
Ahmad Bamieh 23adb256bb
[i18n] revert reverted changes (#74633)
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-08-10 16:29:29 +03:00
Joe Reuter c1b55d5739
[Lens] Clear out all attribute properties before updating (#74483) 2020-08-10 15:06:58 +02:00
Shahzad 244ed04b24
[Uptime] Fix full reloads while navigating to alert/ml (#73796)
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-08-10 15:02:35 +02:00
Matthew Kime cccf15a3f4
Index pattern field class refactor (#73180)
- Better distinction and relationship between IndexPatternField and its spec
- IndexPatternField class is no longer defined via object mutation
- Reduction of dependencies
- UI code moved into Index Pattern class (will be removed in next ticket)
- IndexPattern field list was previously composed of IndexPatternFields or specs, now only IndexPatternFields
- IndexPattern field list was previously redefined when loading fields, now only its contents are replaced.
2020-08-10 07:35:12 -05:00
Robert Oskamp f7f2988aa2
[ML] Functional tests - stabilize DFA job type check (#74631)
This PR stabilizes the data frame analytics job type assertion by adding a retry.
2020-08-10 13:04:57 +02:00
spalger ad8502c8d9 update code-exploration docs 2020-08-10 01:25:29 -07:00
Dmitry Lemeshko ce025732a1
add retry for checking Add button (#74551)
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-08-10 10:09:30 +02:00
Jean-Louis Leysens 0a65e172a1
[ES UI Shared] Added README (#72034)
* Added readme to es-ui-shared

* implement PR feedback; clarify terms and tighten grammar

* added note about intended users of es ui shared modules
2020-08-10 09:30:51 +02:00
Aleh Zasypkin 37ce10158a
RFC: encryption key rotation support for the encryptedSavedObjects plugin (#72828) 2020-08-10 09:08:36 +02:00
Clint Andrew Hall c6c300e8f8
[Canvas][tech-debt] Add Typescript to apps directory (#73766)
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-08-07 11:21:44 -04:00
Robert Austin 7dc33f9ba8
[Resolver] UI tests for the panel and bug fix (#74421)
* Change the way the resolver simulator works
* refactor resolver tree and data access layer mocks
* Fix bug where timestamp and pid sometimes don't show in the node detail view
* add a few tests for the panel (not done, but worth committing.)
2020-08-07 09:15:35 -04:00
Sandra Gonzales 5d9f329a36
[Ingest Manager] Integration tests for updating a package (#74593)
* add integration tests for updating a package's assets

* update to update tests and change to dataset to data_stream

* add datastream test
2020-08-07 08:03:13 -05:00
Xavier Mouligneau fbd79ea726
skip query of detections page when we do not have .siem-signals index (#74580)
* skip query of detections page when we do not have .siem-signals index

* review I
2020-08-06 19:41:18 -04:00
Yara Tercero 979bdaa56f
[Security Solution][Tech Debt] - Cleans up error formatter to not return duplicate error messages (#74600)
## Summary

Using the `formatErrors` util would result in duplicate error messages sometimes. Was noticing this in particular when using union types, where the type validation would check every item in a union and report an error for each one. This resulted in large, repeating errors. 

Used `uniq` to filter out duplicates. Updated unit tests.
2020-08-06 19:37:38 -04:00
Shahzad ccf8e2b045
[uptime] Ping Redirects (#65292) 2020-08-06 22:45:55 +02:00
Kevin Qualters 810ff87afb
[Security Solution][Resolver] standardize resolver panel component naming (#74537) 2020-08-06 16:29:09 -04:00
Mikhail Shustov 47fdd59e1c
bump babel deps to support TS v4 (#74495) 2020-08-06 22:00:40 +02:00
Chris Roberson e807ddd1c1
[Monitoring] Handle getClient call throwing an exception (#74550)
* This call can throw an exception in dist builds with ssl disabled

* Fix typo
2020-08-06 15:33:24 -04:00
Sonja Krause-Harder ebe46c0580
Make test less brittle when registry is changed. (#74554) 2020-08-06 21:30:24 +02:00
Nathan Reese b71b9c249a
[maps] fix swap hidden/show icons in layer action panel (#74549) 2020-08-06 12:08:57 -06:00
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