Commit graph

28216 commits

Author SHA1 Message Date
Brandon Kobel
9235db5ff7
Reenabling the privileges test, and removing the includeActions test (#48027)
* Reenabling the privileges test, and skipping the one that includes
actions

* Making the security team the codeowner
2019-10-11 15:02:53 -07:00
Justin Kambic
f0e450649d
[Uptime] Add Donut chart (#47176)
* Add donut chart.

* Merge donut chart with snapshot histogram panel.

* Update broken test snapshot.

* Undo removal of gray color from histogram chart.

* Use proper color values for donut chart and legend.

* Move donut chart to charts directory.

* Add snapshot tests for new chart components.

* Merge donut chart with snapshot histogram panel.

* Revert d3 version.

* Revert yarn.lock.

* Revert code to be compatible with older d3 version.

* Delete duplicated files.

* Clean up code.

* Improve const names.

* Update outdated snapshots.

* Fix broken type.

* Simplify function, add comment.

* Remove unused translations.

* Fix broken chart component.

* Implement designer feedback.

* Fix regression.

* Implement additional designer feedback.

* Fix issue that caused residual paths to remain on subsequent paints of donut chart.

* Update obsolete test snapshots.

* Revert yarn.lock.

* Rename repurposed translation.

* Delete obsolete translations.

* Update busted test snapshot.
2019-10-11 17:14:02 -04:00
Matt Bargar
22e6d3dfdd
Fixes an issue in Discover where an unsubmitted change to the query (#47908)
I believe the cause of this issue is that we weren't saving the app state after updating it from the saved query. So the new query would be in memory but not in the URL. Something would cause the old app state to get read from the URL and override the changes. Simply adding a call to state.save after changing the query in app state seems to have solved it.

Visualize didn't have this issue, but I'm guessing there was nothing causing the old state to be read from the URL. So I applied this fix to Visualize as well to avoid any issues in the future.
2019-10-11 17:01:22 -04:00
Nik Everett
5ea66df44d
Docs: Fixup deprecation for asciidoctor (#48018)
Asciidoctor sees `,` as the edge of parameters and chokes on one of our
deprecation warnings, rendering funny looking garbage. This wraps the
whole parameter in `"` which makes it look good. It *does* add `"`s
around the result in AsciiDoc, but we plan to migrate from AsciiDoc
"real soon now".
2019-10-11 15:56:52 -04:00
Dima Arnautov
f500f4139a
[ML] Check unsaved changes for Job edit form (#47926)
* [ML] confirmation modal for closing a job flyout with unsaved changes

* [ML] fix onClose callback

* [ML] change modal behaviour

* [ML] check form changes before closing
2019-10-11 19:53:51 +02:00
Mengwei Ding
9957026e2a
[Code] Fix new platform configs (#47881)
* [Code] Fix new platform configs

* fix path
2019-10-11 10:38:16 -07:00
Chris Roberson
867acbbf15
[Monitoring] Fix time filter woes (#47486)
* Fix time filter woes and add tests

* Fix up tests and fix loading states for non ssp tables

* Only add onChange if searching is enabled

* Replace missing function
2019-10-11 13:21:25 -04:00
Clint Andrew Hall
27cbdf5f50
[feature][Canvas] Share Workpads in other Websites (#46278)
* [Canvas] Embedding Workpads in other Websites (#42545)

* Testing for Workpad Snapshots

* Rename Snapshots to Shareables; update documentation. (#46513)

* [canvas][shareables] Add Localization + Tweaks (#46632)

* Add localization + tweak naming

* Fix duplicate key

* Update storyshots

* [shareables] Unsupported Renderer Warning (#46862)

* [shareables] Unsupported Renderer Warning

* Update snapshots; add test

* Addressing Feedback

* [canvas][shareables] Simplify and complete testing (#47328)

* Simplify

* Updates

* Finishing up

* A few tweaks

* Fix eslint errors; how would those happen??

* Fix CI build of runtime; assorted visual tweaks

* Update x-pack/legacy/plugins/canvas/shareable_runtime/test/index.ts

Co-Authored-By: Spencer <email@spalger.com>

* Addressing feedback

* Remove null-loader from root package

* re-add null-loader until mitigation is found

* [perf] Fix unsupported renderers performance issue (#47769)

* [perf] Fix perf issue with unsupported renderers

* Fixing snapshots

* Addressing review feedback (#47775)

* Addressing feedback

* Addressing feedback (#47883)

* Branding Changes (#47913)

* Branding Changes

* Update snapshots
2019-10-11 12:15:41 -05:00
Spencer
0a85478d41
[failedTestsReporter] load github issues on demand (#47914) 2019-10-11 09:56:47 -07:00
spalger
a2c234d7f0 [renovate] auto open @elastic/charts prs 2019-10-11 09:54:56 -07:00
spalger
0002b84344 [renovate] eliminate separate PRs for minor/major versions 2019-10-11 09:54:43 -07:00
Varun Sharma
525f708f24 Update README.md with changes in I18n engine APIs (#47290) 2019-10-11 16:53:36 +01:00
Joe Reuter
4de9290b98
[Graph] Improve wording (#47324) 2019-10-11 17:42:52 +02:00
Ahmad Bamieh
0564396523
remove .required from shouldShowTelemetryOptIn prop (#47940) 2019-10-11 18:39:57 +03:00
Michail Yasonik
d0c9f84bd1
Read warning to screen readers for duplicate saved objects (#47568) 2019-10-11 21:03:25 +05:30
Rob Waight
e9e8b1ddc8
[DOCS] Include server.cors configuration settings (#47701)
* Include `server.cors` configuration settings

Include `server.cors` configuration settings

* [DOCS] Update `server.cors` formatting

Update formatting in the `server.cors` configuration settings
2019-10-11 10:29:34 -05:00
Jonathan Budzenski
37828dbabf
[deb/rpm] set default babel cache path (#47907)
* [deb/rpm] set default babel cache path

* \\n
2019-10-11 10:24:26 -05:00
Jonathan Budzenski
d41ea22f63
[build/deb] use older systemd StartLimitInterval (#47909)
* StartLimitIntervalSec -> StartLimitInterval

* [build/deb] use older systemd StartLimitInterval
2019-10-11 10:20:36 -05:00
James Gowdy
71b353f495
[ML] Adding advanced job wizard (#46781)
* [ML] Adding advanced job creator

* removing comment

* initial UI changes

* initial detector modal

* adding datafeed step

* adding json link to datafeed step

* linking json editor to jobCreator

* improvements to detector modal

* improving detector modal

* updating start datafeed behaviour

* fixing types

* i18n fixes

* updating descriptions based on old tooltips

* adding default frequency

* adding default query delay

* adding scroll size default

* possibly fixing translation issue

* fixing jest test

* fixing job cloning

* data test subject ids

* using default mml for population and advanced

* adding no detector warning

* removing index signature

* adding frequency custom hook

* adding mlcategory constant

* i18n changes

* removing children prop

* setIsValidQuery

* updating custom  hooks

* disabling future steps

* disabling future steps

* misc changes based on review

* removing early return from hook based components

* adding mlcategory to influencer list

* using job type constants

* fixing type failures

* disabling flaky mml functional test

* correcting disabled test

* fixing function test expect

* disabling all ml function tests
2019-10-11 15:37:22 +01:00
Dario Gieselaar
819f334c85
[APM] Replace ui/kfetch with core.http (#47635)
* [APM] Replace ui/kfetch with core.http

Closes #46548.

* Remove kfetch mocks in tests

* Expose HttpFetchError from src/core/public/index

* Make HttpFetchError public

* Simplify tests for ServiceOverview
2019-10-11 16:35:29 +02:00
Spencer
26fc5c5046
[kbn/es] use an ES_TMPDIR that is within the install path (#47901)
* [kbn/es] use an ES_TMPDIR that is within the install path

* support tests which don't pass installPath
2019-10-11 07:13:22 -07:00
Justin Kambic
40a6c526f8
Add test to ensure that URL params are dropped from URL search if the new value is empty. (#47905) 2019-10-11 10:04:43 -04:00
Sebastian Grodzicki
9f7bc6482f
[Infra UI] Update docs to reflect renaming to Metrics (#47927)
* Rename Infrastructure UI to Metrics UI

* Rename Infrastructure app to Metrics app

* Rename Infrastructure to Metrics
2019-10-11 15:49:38 +02:00
Vadim Dalecky
5e2deb49a6
fix: 🐛 handle correctly basic falsy types in getType() (#47930) 2019-10-11 15:24:16 +02:00
Chris Roberson
f8a5c66d7c
[Monitoring] New platform migration - Server shim (#46507)
* WIP

* More NP refactoring

* Hook up infra postInit logic

* Fix broken tests

* Cleanup
2019-10-11 09:20:44 -04:00
Chris Roberson
04f42c4600
[Timefilter] Convert to ISO string instead of JS string (#47722)
* Convert to ISO string instead of JS string

* Add test
2019-10-11 09:18:08 -04:00
Ben Skelker
f591b595a6
[SIEM] Add button with link to license management in ML popup (#47841)
* Add button with link to license management in ML popup

* Corrections to button styling

* Updated button icon

* Update snapshots

* Correcting json translation files

* Fix zh_CN json file

* And now fixing the translation file properly
2019-10-11 15:32:04 +03:00
Joe Reuter
b43bdf6f09
downgrade vega-tooltip to maek it IE compatible (#47928) 2019-10-11 14:06:59 +02:00
Pete Harverson
cd735fd46e
[ML] Adds new SIEM auditbeat, winlogbeat and packetbeat modules (#47848)
* [ML] Adds new SIEM auditbeat, winlogbeat and packetbeat modules

* [ML] Removed rare_country_for_user jobs

* [ML] Removed rare_country_for_user jobs from manifests
2019-10-11 12:51:13 +01:00
Dima Arnautov
860b074340
[ML] Enhance created_by check for custom rules (#47825)
* [ML] delete created_by only for wizards

* [ML] use CREATED_BY_LABEL enum

* [ML] move processCreatedBy
2019-10-11 13:26:34 +02:00
Carlos Pérez-Aradros Herce
dfceb68325
Add CouchDB Metricbeat module tutorial to Kibana home (#47811) 2019-10-11 13:00:54 +02:00
Joe Reuter
739807926e
fix usage of save modal callback (#47492) 2019-10-11 12:57:16 +02:00
Jean-Louis Leysens
cf4c571951
[Console] Mappings for 7.5 (#47735)
* First pass of spec update to OSS plugin

* Update existing doc links

* Move data_frame files to new depreceated namespace

* Removing this setting per https://github.com/elastic/elasticsearch/pull/47717

* Add new files

* Added transforms overrides

* Updated deprecated data transforms file names
Fixed broken __template's
Updated autocomplete for new transforms endpoints
2019-10-11 11:36:17 +02:00
Dario Gieselaar
18257fbab4
[APM] Make sure toasts work for failed useFetcher calls (#47802)
* [APM] Make sure toasts work for failed useFetcher calls

toasts.addWarning is a class method, and fails when called without bound context, which was what happened in useFetcher notifications.

* Remove unnecessary destructuring
2019-10-11 10:46:19 +02:00
Maja Grubic
d62879547a
Adding KibanaContextProvider to IndexPatternDimensionPanel component (#47773) 2019-10-11 09:42:59 +01:00
Alexey Antonov
8bf2a4f227
[Automation] TSVB doesn't allow to perform basic functions showing no fields available (#47860) 2019-10-11 11:33:03 +03:00
Matthias Wilhelm
c13faab6ba
Improve kbnTableHeader directive that causes warnings in console (#47829) 2019-10-11 09:38:01 +02:00
Liza Katz
0d7dfbadec
Reconstruct setup\start data shim APIs (due to savedObject N/A in setup) (#47851)
* No saved objects client in data.setup

* replace old loading of data/public/setup

* test fixes

* fix list_control_factory

* range_control_factory
2019-10-11 07:56:59 +03:00
Yulong
871601b20c
[Code] replace nodegit with native git (#45491)
* [Code]  use native git to iterate git files
* [Code] use native git to clone/update repository
* [Code] git history using native git
* [Code] use native git to read file tree and file content
* [Code] fix the 'bad file' warning from status api
* [Code] use native git to handle worktree
* [Code] use native git to resolve references
* [Code] use native git to handle blame / diff
* [Code] patch git binaries in kibana build script
* [Code] migrate unit tests to use native git
2019-10-11 11:32:03 +08:00
Davey Holler
1455932110
Adding an overflow popover for the breadcrumbs. (#47551) 2019-10-10 17:30:54 -07:00
Phillip Burch
875c725e61
[Infra UI] Save and Load Views for Metrics Explorer and Inventory Page (#46713)
* Added UI components and ability to interact with saveObjects api

* Remove unused files

* [Infra-ui] make saved views work

* Implement UI polish and feedback

- Added checkbox for including time
- Updated all copy to use `FormatedMessage`
- Add default view to flyout

* Cleaner implementation of default view.

* Make it easier to use saved views on more than just inventory

* Add percy test for saved views flow

* Fix order of operations for test

* Add ability to save metric explorer views

* Add delete confirmation for deleting view

* Add visual regression test for saved views on metric explorer page

* Add save icon to give a visual clue

* Add a toast to handle error cases for fetching and saving

* Fix type error

* Fix i18n id

* Small copy and ux tweaks

* Adding new saved view type and mappings for inventory-view

* Adding Metrics Explorer saved object mappings

* Changing how saved object mapping is included

* Implement design changes

* Fixing mappings

* Use the Metrics Explorer saved object type

* Remove hard coded view type

* Change structure to match how saved object attibutes are being saved

* Remove hard coded view type

* Fix alignment

* Fixing types

* Better caching

* Add another dep

* Fixing flyout width
2019-10-10 19:25:13 -05:00
Nathan Reese
4fc75515d8
[Maps] retrieve geo_point value from docvalue_fields instead of _source (#47389)
* [Maps] retrieve geo_point value from docvalue_fields instead of _source

* add functional test ensuring _search request only pulls what is needed

* clean up i18n translation fiels
2019-10-10 18:07:46 -06:00
Spencer
e4cee1fa1c
Update contributing.md to use autoFix: true for ts files 2019-10-10 17:01:07 -07:00
Nik Everett
fd94e17fb5
Docs: Fix for asciidoctor (#47876)
Asciidoctor is a bit more picky about somethings. This fixes them for
it.
2019-10-10 17:18:38 -04:00
Thomas Neirynck
578522186e
[SIEM][Maps] Use vector tiles for rendering EMS basemap (#47867) 2019-10-10 17:14:38 -04:00
Spencer
2bd9699a64
cleanup es even if test fails (#47868)
* cleanup es even if test fails

* use correct beforeAll/afterAll hooks for jest
2019-10-10 14:10:45 -07:00
Andrew Goldstein
1b53242035
[SIEM] Endgame events on the SIEM Overview page (#47774)
## Summary

* Adds Endgame events to the SIEM Overview page, per the following screenshot:

<img width="1680" alt="overview-chrome" src="https://user-images.githubusercontent.com/4459398/66524250-26a47800-eaaf-11e9-8ff9-311c031e5d00.png">

* Adds `endgame-*` to the default SIEM index pattern, per the following screenshot:

<img width="1665" alt="siem-advanced-settings" src="https://user-images.githubusercontent.com/4459398/66524300-45a30a00-eaaf-11e9-93c3-dce74917e73a.png">

RELEASE NOTE: To view Endgame events in existing SIEM deployments, you must manually add `endgame-*` to the SIEM index pattern in `Kibana Management > Advanced Settings > SIEM > Elasticsearch indices`. Also note that the `Reset to default` feature for this setting in the Advanced Settings page now includes `endgame-*`.

* Adds the GraphQL plumbing for rendering Endgame data in the Timeline via row renderers (in an upcoming PR), with the introduction of the following fields:

```
dns.question.name
dns.question.type
dns.resolved_ip
dns.response_code
endgame.exit_code
endgame.file_name
endgame.file_path
endgame.logon_type
endgame.parent_process_name
endgame.pid
endgame.process_name
endgame.subject_domain_name
endgame.subject_logon_id
endgame.subject_user_name
endgame.target_domain_name
endgame.target_logon_id
endgame.target_user_name
event.code
file.name
process.hash.md5
process.hash.sha1
process.hash.sha256
user.domain
winlog.event_id
```

## Testing

### Cypress
The `smoke_tests/overview/overview.spec.ts` Cypress test was updated to include the new counts on the Overview page, per the screenshot below:

![cypress-overview-spec](https://user-images.githubusercontent.com/4459398/66529142-8c98fb80-eabf-11e9-800e-a0d9e1e51d6d.png)

### API Integration test

The Overview page API integration test `xpack/test/api_integration/apis/siem/overview_host.ts` was updated to include counts of mock Endgame data added to `test/functional/es_archives/auditbeat/overview/data.json.gz`

### Unit tests

Overview page unit tests were updated to include the new Endgame event counts

### Desk testing

* Desk tested by hand-editing `components/page/overview/overview_host/index.tsx` and setting the `endDate` and `startDate` values below to a fixed datetime:

```
<OverviewHostQuery endDate={endDate} sourceId="default" startDate={startDate}>
```

The counts shown on the overview page where then compared to the counts shown in the timeline in the same date period, to verify the counts match 1:1.

* The additional fields mentioned above in this PR (e.g. `dns.question.name`,`endgame.target_domain_name`) that are now being requested via GraphQL can be seen via the Timeline Inspect (query) feature:

1) Enter `event.module: endgame` in the Timeline KQL bar. (Adjust the date range if necessary.)
2) After Endgame events are displayed in the timeline, click the Inspect button in the Timeline settings gear.

The additional fields (and values) will be included in the Inspect query Request / Response tabs.

### Cross-browser dark/light testing
#### Firefox

<img width="1680" alt="overview-firefox" src="https://user-images.githubusercontent.com/4459398/66524773-9c5d1380-eab0-11e9-9383-c155872881b0.png">

#### Safari

<img width="1680" alt="overview-safari" src="https://user-images.githubusercontent.com/4459398/66524790-a54de500-eab0-11e9-9786-aa7dbe18c1bf.png">

#### IE11

This PR was *not* tested in IE11 due to the current blocker with `react-reverse-portal`

https://github.com/elastic/siem-team/issues/465
https://github.com/elastic/ecs-dev/issues/178
2019-10-10 14:48:33 -06:00
Jonathan Budzenski
fdfcd03448 [dev/watch] ignore chromium and sass tmp directories (#47603) 2019-10-10 13:45:20 -07:00
Wylie Conlon
976cf475ae
[lens] Basic usage telemetry for total visualizations, and by type (#47597)
* [lens] Basic usage telemetry for total visualizations, and by type

* Implement overall, 30 day, 90 day tracking for saved visualizations

* Add forgotten file

* Implement collection using scripted metrics

* Add functional test to ensure painless script is working
2019-10-10 16:36:00 -04:00
Poff Poffenberger
185857cb44
[Canvas] Adding i18n for transitions (#47626)
* Adding i18n for transitions

* removing function

* Slide copy fix
2019-10-10 15:10:50 -05:00