Commit graph

28063 commits

Author SHA1 Message Date
Kaarina Tungseth d0aa9f1418
[DOCS] Changed time picker to time filter (#46956)
* [DOCS] Changed time picker to time filter

* Final changes

* Review comments

* Review comments pt 2
2019-10-07 15:21:40 -05:00
Court Ewing 485eaf773d
[core] Do not overwrite saved object references if not specified (#47248)
* 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-07 16:10:29 -04:00
Aaron Caldwell 48e39755ee
[Maps][File upload] File upload default index name timing and error improvements (#47173)
* 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-07 14:09:22 -06:00
Kaarina Tungseth 18c85722c4
[DOCS] Changed setting to deprecated (#47372) 2019-10-07 14:32:35 -05:00
Kaarina Tungseth 4117734c24
[DOCS] Removed plugin-dir (#47488) 2019-10-07 14:29:46 -05:00
Frank Hassanabad 01244a3503
[SIEM] [Detection Engine] Adds a create signal API (#47384)
## 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 12:58:28 -06:00
spalger 9028ed593d disable flaky suite (#47312) 2019-10-07 11:29:30 -07:00
Josh Dover d6410b5580
Add types to Elasticsearch API calls (#46668) 2019-10-07 13:11:30 -05:00
Vadim Dalecky b9bbde6780
Improve Interpreter TypeScript typings (#47212)
* 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 19:01:01 +02:00
spalger eda0a50bfa disable flaky suite (#47184) 2019-10-07 09:42:14 -07:00
Dmitry Lemeshko 22606f5be6
skip flaky test (#46977) (#47437) 2019-10-07 18:36:18 +02:00
Josh Dover c30a2f96a3
Make Core interfaces exposed to LP plugins consistent with NP… (#47074) 2019-10-07 10:48:08 -05:00
Nathan L Smith b4110b37b6
[APM] Use new platform for toast notifications (#47276)
* [APM] Use new platform for toast notifications

* fix more tests

* remove comment
2019-10-07 09:56:46 -05:00
Mikhail Shustov e290e2cf1e
To recommend how to access API not available in New platform (#46682)
* To recommend how to access API not available in New platform

* add a note about usage on the client side

* Update src/core/MIGRATION.md

Co-Authored-By: Josh Dover <me@joshdover.com>
2019-10-07 16:56:16 +02:00
Larry Gregory dba0946906
Honor current search criteria when exporting saved objects (#47223)
* honor current search criteria when exporting saved objects

* adding core docs
2019-10-07 10:11:23 -04:00
Robert Oskamp f5c685304c
[ML] Add tests to create saved search based jobs (#47323)
This PR adds tests for ML job creation based on saved searches
2019-10-07 15:46:27 +02:00
Maja Grubic 9413939588
Adding width and height as parameters to image url (#46917)
* Adding width and height as parameters to image url

* Addressing PR comments

* Removing unnecessary error message
2019-10-07 11:44:53 +01:00
Dmitry Lemeshko 9c21ccf068
[functional/services] update webdriver lib and types (#47381)
* [functional/services] refactor using new types

* [code/history] wrap forward navigation with browser service
2019-10-07 11:32:46 +02:00
Maja Grubic 79b63e0166
Standardizing IconField implementation across the app (#47196)
* 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 09:36:24 +01:00
Liza Katz 0c001e4934
Move ui/value_suggestions ⇒ NP data plugin (#45762)
* 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 17:25:24 +03:00
Liza Katz 2389fe8e1a
Remove ui/persisted_log - Part 2 (#47236)
* 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 14:12:52 +03:00
renovate[bot] 35751f9828 Update gulp related packages (#47421) 2019-10-05 23:38:41 -07:00
renovate[bot] 95fd7fdc91 Update dependency idx to ^2.5.6 (#47399) 2019-10-05 23:33:21 -07:00
Spencer 3ea2771ce4
try running fewer jobs in parallel on the same worker (#47403) 2019-10-05 20:51:07 -07:00
renovate[bot] 1da0469521 Update webpack related packages (#47402) 2019-10-05 14:36:02 -07:00
renovate[bot] cbaf2ef0d4 Update jsonwebtoken related packages (#47400) 2019-10-05 14:35:19 -07:00
renovate[bot] 445fa434d5 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
2019-10-05 07:53:47 -07:00
renovate[bot] 8fcae77856 Update dependency prettier to ^1.18.2 (#47340) 2019-10-05 05:32:24 -07:00
renovate[bot] fd14e201c0 Update dependency @types/puppeteer to ^1.20.1 (#47339) 2019-10-05 05:31:25 -07:00
renovate[bot] 23650a0c1f Update dependency @elastic/elasticsearch to ^7.4.0 (#47338) 2019-10-05 05:30:50 -07:00
renovate[bot] fc53d4efb3 Update dependency tar-fs to ^1.16.3 (#47341) 2019-10-05 05:29:50 -07:00
Ryland Herrick 67d026e77f
[Code] Code Integrator Component (#47180)
* Add CodeIntegrator component

* Abstracts shared ImportModal component
* Uses placeholder data and callbacks in lieu of real integration
2019-10-04 20:26:55 -05:00
Catherine Liu aa1102d011
[Canvas][i18n] Sidebar (#46090)
*  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-04 18:21:45 -07:00
Gidi Meir Morris 02012f02fe
Generate uuid in task Manager as Kibana uuid may not yet have been initialised
Generate uuid for TaskManager at startup
2019-10-04 17:16:17 -07:00
Ryland Herrick c505fcbd05
[Code] Embedded Code Snippet Component (#47183)
* 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-04 19:02:19 -05:00
Brian Seeders 7d96a13fad
Revert "Add pipeline for flaky test runner job (#46740)"
This reverts commit e89425552b.
2019-10-04 16:55:20 -04:00
Nathan Reese 3e9b0c81b2
SearchSource: fix docvalue_fields and fields intersection logic (#46724)
* SearchSource: fix docvalue_fields and fields intersection logic

* update filter logic to handle docvalue_fields that are just strings
2019-10-04 12:49:11 -06:00
Kaarina Tungseth 9c85bd364d
[DOCS] Specified default settings for server.rewriteBasePath (#45305)
* [DOCS] Specified default settings for server.rewriteBasePath

* Doing some version switching
2019-10-04 13:43:28 -05:00
Mikhail Shustov 3a5c06858a
Expose injectMetadata service temporarily (#47319)
* expose injectMetadata until config service provided

* add functional test

* update types

* fix tests. injectMetadata is a part of plugin contract

* add comment about injectedVars API
2019-10-04 20:41:24 +02:00
Brian Seeders e89425552b
Add pipeline for flaky test runner job (#46740)
* WIP Jenkinsfile for flaky test runner

* Fix syntax

* A few more jenkinsfile fixes

* A few more fixes

* Can't round numbers in Jenkins groovy sandbox apparently

* More fixes

* Only do build_kbn_tp_sample_panel_action once during flaky testing

* Fix path and try setting a different JOB value

* Keep track of flaky test failures

* Introduce flaky test for testing

* Some flaky test pipeline cleanup

* Fix a couple of issues with flaky test failure tracking

* Update flaky test runner build name/desc with metadata

* Revert "Introduce flaky test for testing"

This reverts commit 202e9d86cf130ef37aff1817781a5b694aa2aa32.

* Try adding a local shared library

* Move local library loading logic to kibana pipeline library

* Move shared groovy code to shared library

* Add missed file

* Add ability to specify multiple agents for flaky test runner

* Update kibana-pipeline-library version

* Fix bug causing early exit for oss ciGroup1
2019-10-04 13:53:46 -04:00
Gidi Meir Morris 5a89c6ac5d
[Task Manager] Ownership performance Improvements (#46997)
Task Manager now uses updateByQuery to identify tasks it needs to pick up and claim ownership of them in a single call to Elasticsearch.

This reduces the version conflicts that often plague Task Manager when running multiple Kibana against a single ES cluster.

This has already shown small perf gains locally, and lays the ground work to a second phase (bulk processing the markTaskAsRunning step) which should allow to paralelise the task running feature further.
2019-10-04 10:37:54 -07:00
Rashmi Kulkarni 8b1a3787cd
Tsvb chart - unskipping the gauge test (#47155)
Fixes https://github.com/elastic/kibana/issues/46677 - unskipping the tests
2019-10-04 10:07:38 -07:00
Kaarina Tungseth 54382fe122
[DOCS] Specifies deprecated setting for 7.x (#46162) 2019-10-04 11:29:54 -05:00
Lee Drengenberg 700a7ef576
Add option for Internet Explorer IE11 to FTR (#42967)
* Add option for Internet Explorer IE11

* WIP trying to figure out IE options/capabilities

* more attempts to get IE tests working

* more work, but still can't set font size in Dev Tools Console

* two changes for IE

* revert skip in console test

* this change *appears* to set absolute times but they don't stick

* Shakespeare passing on all 3 browsers

* add config.ie.js, change 'internet explorer' to 'ie'

* increase notifications:lifetime so ew have a chance to see the message

* fix lint error remove unused Options

* updates from PR review, remove console.log

* cleanup + reuse existing code

* make iedriver path work for x-pack tests

* try to avoid changing notification timeout

* resolve path and add correct delimiter

* remove unused code, make timepicker work on IE11

* work-around 45333 for IE11

* [WIP] removing some work-arounds

* revert work-arounds

* cleanup

* remove debugging code

* remove debugging code

* removed unused code

* reverting 2 files that didn't have any material changes
2019-10-04 11:13:58 -05:00
Caroline Horn 2ae7915810 [Lens] Use EUI Chart theme and other design fixes (#46658)
* Passing EUI theme to XY chart

* Remove legend if only single series

* Fix height of config link

* Remove clearing icon from field select

* Better scroll position in config panel

* Changed styles of popover editor operations list

* Reduce spacing between icon and text in no results found

* Manually import EUI Charts theme

… instead of using NP

* Add EUI Chart theme to field item

* Use `core` instead of `chrome` for field data

* Made “drop field here” clickable as well

* “Level of detail” to “Time interval”

* Update snap

* Remove `isHorizontal` from functional test

* Fix functional test
2019-10-04 12:07:55 -04:00
spalger cc9876c1c0 [renovate] group typescript related package upgrades 2019-10-04 08:50:28 -07:00
Spencer 3bc803e371
[mkdirp] remove in favor of recursive fs.mkdir (#47251)
* [mkdirp] remove in favor of recursive fs.mkdir

* add eslint rule to educate future contributors

* reword the eslint error message to prevent copy-pasting callback code

* Commit updated kbn-pm dist

Signed-off-by: Tyler Smalley <tyler.smalley@elastic.co>

* Fix typo

Signed-off-by: Tyler Smalley <tyler.smalley@elastic.co>
2019-10-04 08:15:06 -07:00
Joe Reuter f4c697ba24
revert bad fix (#47200) 2019-10-04 17:08:14 +02:00
Alexey Antonov e3dc525000
TSVB doesn't allow to perform basic functions showing no fields available (#47239)
Closes: #47226
2019-10-04 17:45:32 +03:00
Mikhail Shustov d1a99ea6ee
Convert uiSettings service to TypeScript (#47018)
* tsify is_config_version_upgradeable

* tsify get_upgradeable_config

* tsify create_or_upgrade_saved_config

* tsify ui_settings_service

* tsify ui_settings_service_factory

* tsify ui_settings_service_for_request

* declare types on server object

* tsify set route

* tsify set_many route

* tsify get route

* tsify delete route

* tsify logWithMetadata

* improve ui_settings_service typings

* introduce uiService mocks

* remove private methods from public contract

* add types for server.uiSettingsServiceFactory

* rename IUiSettingsService --> IUiSettingsClient
2019-10-04 12:48:05 +02:00