Commit graph

27038 commits

Author SHA1 Message Date
Rudolf Meijering
da61b42a0a
SavedObjectAttribute allow array of primitives (#47317) (#47591) 2019-10-08 20:53:48 +02:00
István Zoltán Szabó
2ce8fdb462
[DOCS] Amends job-tips redirect (#47569)
* [DOCS] Comments out job-tips redirect.
2019-10-08 20:07:31 +02:00
Tre
4256ec2937
[7.x] [FTR] Support for new and old es clients (#47377) (#47601)
* Add dep for new es client,
refactor all mentions of the old client
to the new.
2019-10-08 12:00:32 -06:00
Poff Poffenberger
8ce586ff8c
[Canvas] Fixes Workpad fullscreen due to max-width limitation (#47371) (#47576)
* Allow row to extend past viewport width to allow proper fullscreen canvas view

* Added note
2019-10-08 12:57:28 -05:00
Steph Milovic
a92e64f62f
[SIEM] hide siem data on empty string or _all (#47166) (#47219) 2019-10-08 10:00:27 -07:00
Chris Roberson
14bde81425
[7.x] [Monitoring] Server side pagination for ES Nodes listing table (#47224) (#47583)
* Backport #47224

* Fix bad backport
2019-10-08 12:25:27 -04:00
Mike Côté
10fb117063
Pass alert id to the alert type executor (#47379) (#47571)
* Pass alert id to the alert type executor

* Rename id to alertId

* Rename id to alertId in actions plugin

* Fix translation variables
2019-10-08 11:24:15 -04:00
Chris Roberson
84ea49db29
[Monitoring] Fix broken scrubbing on monitoring charts (#47382) (#47585)
* Apply an offset on brush

* Fix test
2019-10-08 11:23:01 -04:00
Aaron Caldwell
4a6ebba703
[Maps][File upload] File upload default index name timing and error improvements (#47173) (#47518)
* Prevent issue of index name is wiped out when previous file cancelled

* Check name and type before parsing for file validity. Use human readable sizes for error messages

* It's just an easy win to always lowercase the name for a valid index name default

* i18n updates
2019-10-08 08:47:32 -06:00
Joe Reuter
3caa657eb0
[Graph] App state management saga tests (#46914) (#47579) 2019-10-08 16:41:54 +02:00
Joe Reuter
30d62cde36
check license on controller load (#47447) (#47578) 2019-10-08 16:41:31 +02:00
Court Ewing
3f56b9b265
[core] Do not overwrite saved object references if not specified (#47248) (#47519)
* saved objects: allow partial update without references

For normal attributes, the update API for saved objects supports partial
updates, where it will only attempt to change those attributes you
specify. References should behave the same way otherwise they will be
replaced entirely if you call update without specifying the original
references.
2019-10-08 10:36:54 -04:00
Kerry Gallagher
dabeeafa7b
47203 log analysis onboarding tweaks (#47316) (#47564) 2019-10-08 14:43:44 +01:00
Matthew Kime
284cea9085
Remove injectI18n in management. (#45876) (#47552)
* Remove injectI18n in management
2019-10-08 08:41:29 -05:00
Alexey Antonov
0bb4ce06db
Convert ui/agg_types to TypeScript / Jest (#47044) (#47566)
* Convert `ui/agg_types` to TypeScript / Jest

Fix: #47044

* Remove extra generic from AggType class
2019-10-08 15:31:56 +03:00
Liza Katz
5562370c36
merge changes (#47554) 2019-10-08 14:06:44 +03:00
Shahzad
e9866a9f7a
[Uptime] Change default status filter in ping list to all on monitor page (#47108) (#47546)
* change default status filter in ping list to all

* update snaps
2019-10-08 15:14:22 +05:00
Marjorie Jones
47229880e1
[DOCS] Add Uptime architecture diagram to Uptime doc (#44920) (#47493)
* First pass adding Uptime architecture diagram to Uptime doc

* Review comments

* Update docs/uptime-guide/overview.asciidoc

Co-Authored-By: Brandon Morelli <bmorelli25@gmail.com>
2019-10-08 10:09:03 +02:00
Dmitry Lemeshko
4dae45fb6f
[services/remote] print Firefox console logs in stdout (#46700) (#47528)
* [services/remote] print Firefox console logs in stdout

* [ftr/firefox] setup a socket for firefox to write stdout to

* remove unused imports

* unsubscribe from polling logs on cleanup

* tear down more completely on cleanup
2019-10-08 09:01:59 +02:00
Mike Côté
9f07d9e0fc
Shim actions plugin for new platform (#47256) (#47549)
* Convert routes to return configuration instead of registering

* Create shim file

* Start using shim

* Add task runner factory

* Use task manager setup contract in action type registry

* Shim more stuff

* Check security plugin existence for isSecurityEnabled

* Remove log from Services

* Serve config via observable

* Move most code to Plugin

* Add back execute route

* Cleanup

* Fix type check failures

* Fix typecheck errors

* Fix typos
2019-10-07 22:45:26 -04:00
Brandon Kobel
6bccfb337d
Updating handlebars to 4.3.5 (#47479) (#47533) 2019-10-07 16:43:24 -07:00
Vadim Dalecky
e1df47d198
test: 💍 convert Interpreter font function tests to Jest (#47193) (#47207) 2019-10-08 01:32:51 +02:00
Vadim Dalecky
a36f27c29d
visualizations 👉 NP-ready (#47142) (#47452)
* fix: 🐛 improve visualizations NP-ready plugin

* fix: 🐛 fix imports of visualizations plugin NP-ready

* fix: 🐛 remove dependency on non-existing plugin

* fix: 🐛 remove dependencies on non-existing 'visualizations' pl

* fix: 🐛 use new visualizations plugin NP-ready legacy import
2019-10-08 01:32:39 +02:00
Mike Côté
2130013f10
Shim alerting plugin for new platform (#46954) (#47538)
* Routes to register inside the init function

* Start shimming plugins and core

* More shimming

* Move code over to plugin.ts

* Use new platform basePath service

* Cleanup

* Create alerts client factory

* Move some functions to plugin start

* Remove some dependencies from Hapi

* Apply PR feedback; use new platform logger, rename interfaces

* Use new platform mocks for logger

* Use new platform elasticsearch service

* Fix type check failures

* Fix failing jest tests

* Remove logger from provided alert type service

* Add unit tests for alerts client factory

* Cleanup and fix type check errors

* Change structure exposed via plugin

* Use shim file, split plugin dependencies between setup and start contract, new task runner factory

* Apply PR feedback

* Fix ESLint errors

* Set return type on plugin functions

* Typo

* Fix typecheck errors

* IClusterClient
2019-10-07 19:25:55 -04:00
Catherine Liu
5ee5a82d47
[7.x] [Canvas][i18n] Sidebar (#46090) (#47512)
*  This is a combination of 5 commits.

    Extracts i18n strings from sidebar_content

    Extracts i18n strings from element_settings

    Extracted i18n strings from workpad_config

    Extracts i18n strings from page_config

    Extracts i18n strings from group_settings

    Extracts i18n strings from element_config and multi_element_settings

    Extracted remaining strings from element_config

    Extracts i18n strings from sidebar_header

    Extracts i18n strings from custom_element_modal

    Fixed file picker placeholder

    Fixed i18n ids

    * Alphabetize keys

    * Fixed save button label

    * fixed merge conflict
2019-10-07 14:30:04 -07:00
Ryland Herrick
8f3a6833af
[Code] Code Integrator Component (#47180) (#47521)
* Add CodeIntegrator component

* Abstracts shared ImportModal component
* Uses placeholder data and callbacks in lieu of real integration
2019-10-07 16:23:47 -05:00
Frank Hassanabad
6dd5c32801
[SIEM] [Detection Engine] Adds a create signal API (#47384) (#47499)
## Summary

* https://github.com/elastic/kibana/issues/47013

This adds a basic create signal API rout API at:

```
/api/siem/signals
```

At the moment this will create an action/alert as a one for one.

This also introduces several scripts which allow developers to:
  * Re-create signals index for development velocity
  * post signals to the `/api/siem/signals` endpoint
  * Check different indexes, saved objects, and task manager for trouble shooting 

### Checklist

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

~~- [ ] This was checked for cross-browser compatibility, [including a check against IE11](https://github.com/elastic/kibana/blob/master/CONTRIBUTING.md#cross-browser-compatibility)~~

~~- [ ] 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~~

~~- [ ] [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-07 15:19:32 -06:00
Vadim Dalecky
831d708f25
Improve Interpreter TypeScript typings (#47212) (#47485)
* fix: 🐛 correct createError() implementation and typings

* feat: 🎸 improve expressions service TypeScript types

* perf: ️ improve ExpressionLoader class

* feat: 🎸 improve Interpreter types

* feat: 🎸 improve Interpreter function typings

* feat: 🎸 improve Interepreter test TypeScript typings

* feat: 🎸 TypeScriptify kibana_context expression function

* feat: 🎸 TypeScriptify "kibana" expressions functions

* feat: 🎸 TypeScriptify "visualization" function

* feat: 🎸 TypeScriptify Interpreter initialization

* test: 💍 fix interpreter tests

* feat: 🎸 add TypeScript typing to some of the executor internals

* fix: 🐛 this fixes visualizations; why?

* chore: 🤖 delete redundant files and fix TypeScript error

* perf: ️ use not null assertion for .dataHandler

* refactor: 💡 stricten AnyExpressionFunction type

* fix: 🐛 set correct initial pipeline exec context

* feat: 🎸 improve expression type typings

* test: 💍 call interpreter with correct input from func tests
2019-10-07 22:58:31 +02:00
Josh Dover
8e8a6ef754
[7.x] Add types to Elasticsearch API calls (#46668) (#47496) 2019-10-07 15:55:06 -05:00
Dmitry Lemeshko
56bd7908c9
skip flaky test (#46977) (#47437) (#47484) 2019-10-07 22:45:40 +02:00
Kaarina Tungseth
c7e41765a8
[DOCS] Changed time picker to time filter (#46956) (#47522)
* [DOCS] Changed time picker to time filter

* Final changes

* Review comments

* Review comments pt 2
2019-10-07 15:33:54 -05:00
Ryland Herrick
3d3aa912de
[Code] Embedded Code Snippet Component (#47183) (#47391)
* Add Integrations page and POC CodeBlock usage

* Adds new route hidden behind a config var
(`xpack.code.integrations.enabld`)
* Updates CodeBlock component to have a smaller API surface
* Adds several example components for various pieces of the new APM
integration designs.

* Pare down stub data

Hits and ranges were both part of our search results queries; O11y won't
have that information.
2019-10-07 15:12:46 -05:00
Aaron Caldwell
573d48db4d
[Maps][File upload] Fix "component-not-mounted" errors on cancel mid-way through indexing (#47090) (#47242)
* Check for component mounted before state updates occurring at cancel stopping points

* Remove redundant mounted check
2019-10-07 14:10:16 -06:00
Kaarina Tungseth
a62fa37d08
[DOCS] Removed plugin-dir (#47488) (#47506) 2019-10-07 14:47:28 -05:00
Wylie Conlon
edf3b173fa
[Lens] Custom chart type icons (#46967) (#47480)
* Added custom chart type icons

* Using new stacked glyphs

* Compressed style for button group

* snaps

* Fix TS type

* Trying to use the more encompassing `IconType` for all icons

* Wrap whole chart type in popover anchor

* Fix for truncation

* Update index pattern switchers to use same caret icon instead of `(change)`

* Fixed inital bar icon and added mixed XY icon

* Fix sentence casing

* Remove -> Delete

* Fix accidental passing down of `iconLarge`

* Fix type issue

* Use Lens icon instead of happy face

* Fix broken Lens test

* Fix icons and text
2019-10-07 15:33:23 -04:00
spalger
b31420615a disable flaky suite (#47312)
(cherry picked from commit 9028ed593d)
2019-10-07 11:29:51 -07:00
Josh Dover
1184c16643
[7.x] Make Core interfaces exposed to LP plugins consistent wi… (#47481) 2019-10-07 12:09:07 -05:00
spalger
66727006fa disable flaky suite (#47184)
(cherry picked from commit eda0a50bfa)
2019-10-07 09:42:48 -07:00
Larry Gregory
9bf7fb128c
[7.x] Honor current search criteria when exporting saved objec… (#47466)
* honor current search criteria when exporting saved objects

* adding core docs
2019-10-07 12:30:36 -04:00
Lee Drengenberg
6c07708859
[7.x] Add option for Internet Explorer IE11 to FTR (#42967) (#47465)
* merge 7.x

* remove --csp.strict=false in 7.x

Only needed on master (at least at this point)
2019-10-07 10:59:23 -05:00
Robert Oskamp
f12e6f17b9
[ML] Add tests to create saved search based jobs (#47323) (#47460)
This PR adds tests for ML job creation based on saved searches
2019-10-07 17:34:58 +02:00
Kerry Gallagher
1c738ce35c
[Logs UI] Support partitioned log rate results in API (#46751) (#47215)
* Add partitioning to log rate results API
2019-10-07 15:04:44 +01:00
Dmitry Lemeshko
3981d48301
[functional/services] update webdriver lib and types (#47381) (#47444)
* [functional/services] refactor using new types

* [code/history] wrap forward navigation with browser service
2019-10-07 13:10:34 +02:00
Maja Grubic
d611db4c9e
Standardizing IconField implementation across the app (#47196) (#47441)
* Moving FieldNameIcon implementation to FieldIcon implementation in kibana_react directory

* Adding LensFieldIcon implementation around the new FieldIcon to be used in Lens components

* Applying new LensFieldIcon in the Lens components

* Applying new FieldIcon component in Graph components

* Applying new FieldIcon component in the rest of the components

* Adding missing type to lens field icon

* adding missing type

* Addressing PR comments
2019-10-07 12:00:20 +01:00
Maja Grubic
0094d8c3ef
Removing default title on dashboard save (#47079) (#47442) 2019-10-07 11:49:34 +01:00
Spencer
cb27486ce3
[7.x] Update dependency idx to ^2.5.6 (#47399) (#47422) 2019-10-06 22:50:24 -07:00
Spencer
ef6727cc52
[7.x] Update gulp related packages (major) (#46665 and #47421) (#47409)
* Update gulp related packages (major) (#46665)

* Update gulp related packages

* ts-ify and gulp4-ify x-pack tasks, remove unused canvas tasks

* remove unnecessary gulp.TaskFunction usage

* fix old references

* update renovate config

* move constants into helpers directory

* typo

* compact tasks a bit, remove unnecessary paths

* fix build directories

* deprecate testonly task

* rather than justifying an unjustifiable ts-ignore, ts-ify the imported module

* update renovate config

* update browser download tests to mock axios

* add root index.d.ts to tsconfig

* export BrowserType

* remove unnecessary `@ts-ignore`

* use consistent casing

* correct import for createAutoJUnitReporter

* Update gulp related packages (#47421)

(cherry picked from commit 35751f9828)
2019-10-06 22:49:28 -07:00
Liza Katz
8ffd187c99
Move ui/value_suggestions ⇒ NP data plugin (#45762) (#47425)
* Bind search bar

* create prewired data components

* Pass NP data plugin to shim plugin, to access autocomplete
Pass storage and autocomplete to createSearchBar method
Add appName and autocomplete to IDataPluginServices
QueryBarInput to consume autocomplete and appName from context
QueryBarTopRow to consume appName from context
Remove appName from SearchBar
Added AutocompletePublicPluginSetup and AutocompletePublicPluginStart types

* Use KibanaContextProvider in vis editor and graph

* Use KibanaContextProvider in maps

* Use prewirted SearchBar in TopNavMenu

* Use KibanaContextProbider in Lens

* Fix appName usage in query bar input

* fixed query bar top row appName

* update tests

* fixed bind search bar bug

* mock SearchBar

* Removed unnecessary mocks

* Delete unused mock

* Fixed exporting of data plugin types

* Updated maps snapshot

* Fixed some TS issues

* Fixed jest tests

* Context adjustments in TSVB

* componentWillMount

* Code review fixes

* Pass dataTestSubj to query bar input

* Graph data

* - Pass NP data plugin to KibanaReactContext
- Move value_suggestions to NP

* - Pass NP data plugin to KibanaReactContext
- Move value_suggestions to NP

* ts fixes

* Added karma getSuggestions fake

* Refactored kuery autocomplete tests to jest

* Filter bar context for directives

* updated snapshot

* fix diffs

* fixed lens test
2019-10-06 19:56:58 +03:00
Liza Katz
c573fd1bf4
Remove ui/persisted_log - Part 2 (#47236) (#47423)
* Added storage interface to avoid importing ui/storage

* Move persisted log into data plugin / query

* Fix jest tests

* import getQueryLog

* Add store to graph search bar

* Added window localStorage

* Deleted persisted log folder
2019-10-06 16:56:18 +03:00
Spencer
3ddea9ddc6
[7.x] try running fewer jobs in parallel on the same worker (#… (#47417) 2019-10-05 22:02:41 -07:00