Commit graph

28665 commits

Author SHA1 Message Date
James Gowdy
3b6c2b6d84
[ML] Fixing time range selection when cloning a job (#48935) 2019-10-23 10:44:56 +01:00
James Gowdy
f7796c31ac
[ML] Fixing detector custom rules in advanced wizard (#48926)
* [ML] Fixing detector custom rules in advanced wizard

* small refactor of loop
2019-10-23 10:44:21 +01:00
Søren Louv-Jansen
885ae7f579
[APM] Document Github PR comments 2019-10-23 11:42:06 +02:00
Søren Louv-Jansen
cd15fa81db
Delete TEST_PLAN.md 2019-10-23 11:34:10 +02:00
Brandon Kobel
dbd6f7e62f
Updating pdfmake (#46418)
* Updating pdfmake

* Updating yarn.lock after merging upstream/master

* Updating the yarn.lock
2019-10-22 18:10:12 -07:00
Brandon Kobel
5cecdd3fe3
Updating makelogs to 5.0.0 (#49001) 2019-10-22 18:09:31 -07:00
Clint Andrew Hall
c162190b17
[canvas][shareables] Fix for paths in Cloud (#48567)
* Fix for paths in Cloud

* Update x-pack/legacy/plugins/canvas/server/routes/shareables.ts

Co-Authored-By: Brandon Kobel <brandon.kobel@gmail.com>

* Update x-pack/legacy/plugins/canvas/server/routes/shareables.ts

Co-Authored-By: Brandon Kobel <brandon.kobel@gmail.com>

* Update x-pack/legacy/plugins/canvas/server/routes/shareables.ts

Co-Authored-By: Brandon Kobel <brandon.kobel@gmail.com>

* Update x-pack/legacy/plugins/canvas/server/routes/shareables.ts

Co-Authored-By: Brandon Kobel <brandon.kobel@gmail.com>


Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2019-10-22 19:28:08 -05:00
Garrett Spong
b0111b547a
[SIEM] Fixes map tooltip showing 'Error loading map features' when features exist (#48855)
## Summary

Resolves https://github.com/elastic/kibana/issues/48213 which was the result of an indexpattern mismatch (value is returned for a field but index pattern doesn't have said field). We now generate the filter on our own instead of calling into the Maps API which was checking the index pattern. 

This also cleans up usage of the `AddToKql` component.

### Checklist

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

- [x] This was checked for cross-browser compatibility, [including a check against IE11](https://github.com/elastic/kibana/blob/master/CONTRIBUTING.md#cross-browser-compatibility)
- [x] 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)~
- [ ] ~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-10-22 16:19:29 -06:00
Alexey Antonov
f3b1cf9f01
Fix angular call stack size exceeded errors on a dashboard (#48504) 2019-10-23 00:00:01 +03:00
Matthew Kime
c1b7060286
Index Pattern Date formatter - fixing sample data display (#48259)
* use dangerouslySetInnerHTML more judiciously
2019-10-22 15:10:06 -05:00
Thomas Neirynck
34b7112331
[Maps] Do not show date fields for symbol orientation (#48578) 2019-10-22 15:46:40 -04:00
Rudolf Meijering
5563ee98ab
Update http route registration in migration guide and examples (#48518)
* Update http route registration in migration guide and examples

* Migration examples: added more types, table of contents

* Use __legacy namespace within CoreSetup

* Inject legacy dependencies as third argument into plugins

* Legacy third argument for browserside and other updates

* Clarify comments

* Edits
2019-10-22 21:31:45 +02:00
Xavier Mouligneau
d4d3457a0d
[SIEM] Move public to new platform (#48840)
* shim public new platform

* fix import

* fix ml api with kbn version

* review I

* fix bad coding with the hooks
2019-10-22 14:52:53 -04:00
Thomas Neirynck
4939d14046
[Maps] dd remove layer button (#48581) 2019-10-22 14:52:05 -04:00
Alison Goryachev
beeed8d052
[IM] update index templates copy (#48947) 2019-10-22 14:38:11 -04:00
John Dorlus
1c5368251b
Added class to include the ellipses when name is truncated. (#48854) 2019-10-22 11:36:10 -07:00
Steph Milovic
a23073f24e
[SIEM] Events Histogram add time_zone argument to match Events Table (#48821) 2019-10-22 11:10:16 -07:00
Matt Bargar
b5b8b4d87c
Stop generating filters with old invalid match phrase query syntax (#48033)
We've migrated the old syntax at query time for a long time, but when creating a phrase filter we still used the old (now invalid) syntax. This could be confusing to users since the raw query DSL is viewable in the filter editor. Also, since map_phrase.ts only expected the old syntax, it wouldn't detect a match_phrase filter if the user entered the new syntax into the raw DSL editor.

This PR updates all of the filter generation code that I know of to use the new syntax, and it updates the map_phrase.ts file to accept both syntaxes.
2019-10-22 13:46:44 -04:00
Casper Hübertz
793cffdf79
[APM] Update Garbage collection graph title (#48896)
Changed the graph title on the JVM page
2019-10-22 19:35:51 +02:00
Nathan Reese
82382a6eb2
[Maps] EMS add data card (#48678)
* [Maps] EMS add data card

* review feedback

* use EMS abbr in card title
2019-10-22 11:16:34 -06:00
Brian Seeders
db9655b8e7
Remove CACHE_DIR as an option for bootstrap cache dir during s… (#48928)
This value is set by bash_standard_lib.sh to something totally unrelated (git-references dir)
2019-10-22 13:14:45 -04:00
Peter Pisljar
bc9dd4162b
apply_filter_action that talks directly to data plugin services (#48750) 2019-10-22 19:06:12 +02:00
Nathan Reese
ef1b00023b
[Maps] fix propType warnings for source with joins (#48905)
* [Maps] fix propType warnings for source with joins

* only accept arrays
2019-10-22 11:01:46 -06:00
Justin Kambic
0cb7035d30
[Uptime] Shim server for new platform (#44938)
* WIP, trying things.

* Delete call to hapi register function, use route for bootstrapping GQL.

* Add files to use for new platform shim.

* Add server shim.

* Update mock in test file to conform to new shim interface.

* Delete unneeded import and var declaration.

* Fix broken type files.

* Add plugin shim initializer to app bootstrapper.

* Extract plugins to separate param for shim.

* Rename interface and update tests.

* Delete unneeded file.
2019-10-22 12:23:24 -04:00
Andrew Goldstein
c496b9bd4a
[SIEM] Additional Endgame Row Renderer Code Coverage (#48722)
## [SIEM] Additional Endgame Row Renderer Code Coverage

Adds additional unit test coverage for the [Endgame row renderers](https://github.com/elastic/kibana/pull/48277)

### Endgame Event Types / Subtypes

Additional unit tests were added for the following Endgame event types / subtypes:

* DNS (`dns_event`)
  - [X] `request_event`
* File (FIM) (`file_event`)
  - [X] `file_create_event`
  - [X] `file_delete_event`
* Network (`network_event`)
  - [X] `ipv4_connection_accept_event`
  - [X] `ipv6_connection_accept_event`
  - [X] `ipv4_disconnect_received_event`
  - [X] `ipv6_disconnect_received_event`
* Security (Authentication) (`security_event`)
  - [X] `user_logon`
  - [X] `admin_logon`
  - [X] `explicit_user_logon`
  - [X] `user_logoff`
* Process (`process_event`)
  - [X] `creation_event`
  - [X] `termination_event`

### Non-Endgame Events

Additional unit tests for some non-Endgame events were also added, including:

* FIM file `created` events
* FIM file `deleted` events
* Socket `socket_opened` events
* Socket `socket_closed` events

https://github.com/elastic/ecs-dev/issues/178
2019-10-22 10:15:39 -06:00
Kerry Gallagher
85e609214f
Fix ML link for "unknown" partition (#48779) 2019-10-22 16:24:48 +01:00
Walter Rafelsberger
ad0cc3494d
[ML] Transform: Fix notification index. (#48906)
Fixes missing notification messages in the expanded row of the transform list by updating the notification index name to '.transform-notifications-read'.
2019-10-22 08:20:58 -07:00
Chandler Prall
dce0047a20
Remove wrapping React.Fragment from EuiNavDrawerGroup in navbar to re-include tooltips (#48810) 2019-10-22 09:11:33 -06:00
Nathan L Smith
e14dcb2afd
[APM] Correct timezone formatting (#48355)
* Don't set the timezone anywhere in APM since it's already set in autoload

For the chart X-axes:

* Create nice ticks for the configured timezone (ie at 1w, 1d, 12hrs interval) by offsetting the xMin/xMax
* Explicitly pass those tick values to the x-axis
* When formatting, use scaleUtc to format everything as UTC, and offset the time again with the configured timezone.

Fixes #47832
Fixes #48355
2019-10-22 10:01:49 -05:00
Brian Seeders
fa74cf0c98
Skip flaky test 2019-10-22 10:53:59 -04:00
Jean-Louis Leysens
86b72d32ce
[Console] Token Iterator (#46793)
* Start of token provider and token iterator

* Update Range interface

* Implement early feedback

* getTokenAt tests and update

* First pass! Autocomplete.js -> Autocomplete.ts

A lot of things broke!

* Added factories and models

* Lots of WiP

* Initial wiring up of new token iterator

* Fix types

* Minor updates to token iterator

* Fixed legacy editor.test.js tests (they were never running properly)
Update token iterator and token provider behviour to go to the first token BEHIND the cursor
Update test coverage
Get legacy tests working with new token iterator

* Address documentation Todos and implement missing `insert` method.
Cleaned up interface arguments for existing insert method too.

* Document range and line mode

* Fix broken async test in token provider (done callback)

* Fix path

* Slight update to token_provider and token_iterator to make code more readable

* Implement PR feedback (including fix for open documentation)

* Remove token_iterator interface

* initializeInput -> initializeEditor for quarantined integration tests

* Update input init mock
2019-10-22 16:31:14 +02:00
Peter Pisljar
9889d3b615
adding loading$ observable (#48748) 2019-10-22 16:12:35 +02:00
Peter Pisljar
cf4b65b173
fixes timelion interpreter fn (#48746) 2019-10-22 16:09:42 +02:00
Justin Kambic
0a57e89726
Handle filter field change. (#48650) 2019-10-22 09:05:54 -04:00
Joe Reuter
afc57619ec
Pass raw values and format afterwards (#48090) 2019-10-22 14:58:09 +02:00
Joe Reuter
ed1eb70736
add initial query functionality again (#48627) 2019-10-22 14:11:35 +02:00
Peter Pisljar
d75b20b6c6
updates maps to use correct formatter without accessing aggConfigs (#48747) 2019-10-22 13:33:07 +02:00
Robert Oskamp
43f4577083
[ML] Add typeCharByChar option to setValue (#48727)
This PR adds a type option to testSubjects.setValue
2019-10-22 13:32:02 +02:00
Joe Reuter
d141b8b753
Timelion: Show correct value in legend for step charts (#47863) 2019-10-22 11:54:26 +02:00
Joe Reuter
440c434496
hide empty rows on data table (#47946) 2019-10-22 11:52:45 +02:00
Matthias Wilhelm
2638a7fb3f
Kibana app migration: Migrate assets folder (#48732)
* Remove unused assets

* Migrate assets to owner plugins

* Remove deleted file from precommit hook check
2019-10-22 11:49:18 +02:00
Joe Reuter
6c5c6ef5b3
Timelion: Move datemath parsing to the client (#47813) 2019-10-22 11:47:33 +02:00
Walter Rafelsberger
65ab1dd403
[ML] Transform: Fix wizard width. (#48778)
The Kibana management section pages default to a max-width of 1200px. The transform creation wizard had a max-width of 100% when it was part of the ML plugin. Because of the existing two-column layout, the new default width can be a bit narrow for table with a lot of columns.
This PR provides an override to replicate the previous full-page-width of the transforms creation wizard. We might revisit this for future versions to blend in more with the overall design of the Kibana management section.
2019-10-22 01:16:18 -07:00
Dima Arnautov
bd3fd2aae5
[ML] Update Anomaly Explorer and SMV on the "Refresh" button click (#48773)
* [ML] update on Refresh button click

* [ML] reset cache on Refresh
2019-10-22 10:11:40 +02:00
Peter Pisljar
a434f39558
input control vis removing vis.API dependencies (#48749) 2019-10-22 08:29:59 +02:00
dave.snider@gmail.com
b897e928f8
Fix log settings in ie11, also clean up the layout (#48822)
* Fix log settings in ie11, also clean up the layout

* Remove unused imports to fix type checking

* add test subj back in
2019-10-21 22:14:25 -07:00
renovate[bot]
feceb0f98e Update eslint related packages (#48513)
* Update eslint related packages

* add errorMessage to no-restricted-paths validation

* add license to eslintrc file

* ignore broken plugin fixture

* upgrade tangled peer deps

* give name to unnamed func to avoid typescript-eslint/typescript-eslint#1078

* migrate away from removed prefer-interface

* migrate away from removed no-angle-bracket-type-assertions rule

* migrate away from removed no-triple-slash-reference rule

* old config was invalid and made this rule a noop

* fix array-type rule config

* fix readonly paramProperties that weren't being checked

* fix propType ordering

* remove references to non-existent rules

* remove unnecessary disable that is improperly formatted

* fix comment-related spacing

* fix typo/invalid namespace overrides

* rename fn to avoid hook-alike behavior

* remove reference to old removed rule

* use caret version for prettier

* reference babel-eslint with absolute path
2019-10-21 16:32:31 -07:00
Felix Stürmer
603e27edb1
[Logs UI] Provide index name pattern choice during ML job setup (#48231)
This fixes #48219 by adding the option for the user to select a subset of the configured log indices during the setup process. It also surfaces the errors returned by Kibana when the setup fails.
2019-10-22 01:20:22 +02:00
Spencer
ed382bca33
remove report_failed_tests fallback for matrix jobs (#48809) 2019-10-21 16:17:32 -07:00
Dmitry Lemeshko
b7999157b8
Redesign dashboard tests (#48467) 2019-10-21 23:59:25 +02:00