Commit graph

32590 commits

Author SHA1 Message Date
Matthias Wilhelm
2f363ba144
Migrate vis_type_table to kibana/new platform (#63105)
* Move vis_type_table to Kibana Platform

* Adapt mocha tests
* Adapt CODEOWNERS

* Adapt SCSS
2020-04-21 09:49:48 +02:00
Diana Derevyankina
46f6f8779e
Enable include/exclude in Terms agg for numeric fields (#59425)
* Enable include/exclude in Terms agg for numeric fields

Closes #4576

* Added a new component that allows adding multiple values

* Added some validation to include/exclude fields

* Removed unnecessary comments and accepted API changes

* Fixed i18n ID issue

* Refactored some code and fixed discard button issue

* Added SimpleNumberList component and value parsing in include_exclude.tsx

* Fixed merge conflict

* Fixed merge conflict

* Refactored some code

* Got rid of lodash isArray, added Number.isFinite where needed and changed symbol of string join and array split

* Added some more test cases to cover migrate_include_exclude_format write method

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-04-21 09:55:06 +03:00
Joe Reuter
5adccd005b
follow conventions for saved object definitions (#63571) 2020-04-21 08:37:02 +02:00
Ben Skelker
d6fdb689e8
[Docs]Adds saved object key setting to load balancing kib instances (#63935)
* adds saved object key setting to load balancing kib instances

* SIEM section doc updates

* Revert "SIEM section doc updates" - wrong PR

This reverts commit fc55d90a6d.

* corrections
2020-04-21 09:26:06 +03:00
Pierre Gayvallet
f6f610db47
kbn/config-schema: Consider maybe properties as optional keys in ObjectType (#63838)
* consider optional properties as optional keys in ObjectType

* fix type on security config

* fix ObjectTypeOptions
2020-04-21 07:43:35 +02:00
Jen Huang
f76669b17a
Fix page layouts, clean up unused code (#63992) 2020-04-20 16:52:02 -07:00
Frank Hassanabad
2caed9b7be
[SIEM] Adds recursive exact key checks for validation and formatter
## Summary

* Adds exact check to cause failures whenever a schema is using t.exact({}) and that schema has extra keys at any level of the schema hierarchy.
* Fixes the exact check to work with unknown in a safe way and only do recursive checks for keys only when the unknown is an Object.
* Changes the output to use a format error mechanism which pushes all the errors onto one line to be consistent with the response errors. We can change this as a team to whatever we want I just put it to a comma separator as that is what the responses type checks were using downstream.
* Moves the downstream code up higher to be used within SIEM for timeline and detection engine.
* Adds tests in TDD/red light/green light fashion where I fail the extra key checks first and then pass them second.  

### Checklist

Delete any items that are not applicable to this PR.

- [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
2020-04-20 17:43:48 -06:00
Aaron Caldwell
2af0c6d47e
[Maps] Migrate remaining maps client files to NP (except routi… (#63859)
* Move actions over

* Move connected components over

* Move components over

* Move selectors over

* Move embeddables over. Set up legacy presence to keep legacy maps embeddables working

* Move angular and services over. Some additional top-level files

* Some file moves. Move styles over to NP

* Handle feature catalogue entry in NP. Add plugin deps to kibana.json

* Move vis registration to NP

* Clean up linting comments. Add linting comments to route controller. Move common to NP

* Add back in i18n context for embeddable

* Fix jest test paths. Fix TS lint errors

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-04-20 16:58:33 -06:00
Nathan Reese
35dab183ab
[Maps] Do not fetch geo_shape from docvalues (#63997) 2020-04-20 15:38:10 -06:00
Kaarina Tungseth
e302fd8486
Vega doc changes (#63889)
* Vega doc changes

* Final changes

* Review comments
2020-04-20 15:56:41 -05:00
Chris Cowan
e32fd2617a
[Metrics UI] Reorganize file layout for Metrics UI (#60049)
* [Metrics UI] Reorganize pages specific files under pages

- Restructuring pages folder
- Renaming metrics_ui to metrics
- Fixing paths in jest mocks
- Fixing AlertsFlyout path
- Fixing bad file paths from the merge

* Fixing typo compontents to components

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-04-20 13:44:19 -07:00
Brent Kimmel
5b11434f3a
Add sub-menus to Resolver node (for 75% zoom) (#63476)
* adding two buttons for 75% zoom view
* adjust palette to match comps
Co-authored-by: Kevin Qualters <kevin.qualters@elastic.co>
2020-04-20 16:28:21 -04:00
Brian Seeders
3ce3da8a65
[FTR] Add test suite metrics tracking/output (#62515) 2020-04-20 16:14:46 -04:00
James Gowdy
53a0752841
[ML] Fixing single metric viewer page padding (#63839)
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-04-20 19:37:26 +01:00
Matthias Wilhelm
d69b1a0e39
[Discover] Allow user to generate a report after saving a modified saved search (#63623)
* Fix missing reset of initial state when saving saved searches

* Fix invalid setting of docTitle

* Add functional test
2020-04-20 20:36:09 +02:00
Joel Griffith
86922e80a8
[Reporting] Config flag to escape formula CSV values (#63645)
* Adds a new xpack.reporting.csv.escapeFormulaValues boolean to auto-escape potentially bad cells

* Treat csvs with formulas differently than those that aren't escaped

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-04-20 11:23:16 -07:00
Chris Cowan
96b3fd1fe3
[Metrics UI] Remove remaining field filtering (#63398)
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-04-20 11:04:57 -07:00
Nathan Reese
635be640d5
[Maps] fix date labels (#63909)
* [Maps] fix date labels

* review feedback

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-04-20 10:50:54 -06:00
Wylie Conlon
7e3de56303
[TSVB] Use default Kibana palette for split series (#62241)
* [TSVB] Rainbow palette shares colors with dashboard

* Add migration

* Add charts as NP dependency

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-04-20 12:43:21 -04:00
Henry Harding
44a2c2f8f7
Ingest overview page (#63214)
* use fixed table layout

* added markup structure / css for overview page

* add flyout and links to other pages

* add "alpha" messaging at bottom of all pages

* attrs instead of defaultProps on styled components

* use FormattedMessage on alpha messaging component

* remove leftover code

* remove unused import
2020-04-20 12:10:15 -04:00
gchaps
d45d78016a
[DOCS] Alerting PagerDuty benefits (#63652)
* [DOCS] Alerting PagerDuty benefits

* [DOCS] Fixes broken link

* [DOCS] Organization changes

* [DOCS] Changes to meet template and incorporate review comments

* [DOCS] Fixed formatting of bulleted list

* [DOCS] Incorporates review comments

* Update docs/user/alerting/action-types/pagerduty.asciidoc

Co-Authored-By: Mike Côté <mikecote@users.noreply.github.com>

* [DOCS] Fixes naming and other formatting issues

Co-authored-by: Mike Côté <mikecote@users.noreply.github.com>
2020-04-20 09:09:49 -07:00
Yara Tercero
7db7597a1d
[SIEM][Detection Engine] - Move All Rules tabs to match other tabs UI (#63920)
### Summary 

Restructure All Rules table tabs to be outside of the table, similar to other tabbed tables in UI.
2020-04-20 12:04:22 -04:00
Uladzislau Lasitsa
e8c42095d2
Index pattern management UI -> TypeScript and New Platform Ready (create edit field) (#63836)
* Converted to react. Moved routes to edit_index_pattern

* Added withRouter for navigation. Fixed index_header.

* Fixed comments

* Fixed comments.

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-04-20 19:03:01 +03:00
Melissa Alvarez
784b8beb2f
[ML] DF Analytics Classification exploration: replace table with data grid (#63757)
* update classification result to use datagrid

* consider isTraining in docCount fetch

* fix translations
2020-04-20 11:51:53 -04:00
spalger
32c6fd777f Revert "[platform] serve plugins from /bundles/plugin:${id}"
This reverts commit d538929ed9.
2020-04-20 08:21:11 -07:00
Joe Reuter
878cc8b14e
Add redirect function to kibana_legacy legacy application service (#63702) 2020-04-20 16:26:48 +02:00
Vadim Dalecky
8f7bb05169
[Discuss] Remove expressions plugin's dependency on inspector plugin (#63841)
* refactor: 💡 use inspector service in visualizations to open it

* refactor: 💡 remove expressions plugin dependency on inspector

* test: 💍 fix Jest mock

* fix: 🐛 remove Inspectore from Expressions plugin dependency inf

* docs: ✏️ add JSDocs for createStartServicesGetter() method

* test: 💍 fix TypeScript errors in expressions mocks
2020-04-20 15:04:14 +02:00
Aleh Zasypkin
21dda535eb
Upgrade papaparse dependency (4.6.35.2.0). (#63879) 2020-04-20 14:08:04 +02:00
Alejandro Fernández Haro
9226d4cc94
[Telemetry] Use staging if it's not a distributable release (#63875)
* [Telemetry] Use staging if it's not a distributable release (instead of 'dev' vs. 'prod' approach)

* Rename isProd to isDistributable and useProdKey
2020-04-20 12:43:34 +01:00
Shahzad
7c7fbc70cd
[Uptime] Refactor folder structure (#63442)
* update structure

* update connected structure

* update connected structure

* update code structure

* update types

* update imports

* update folder

* update trans

* fixed snapshot

* updated code

* refacto monitor list container

* update types

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-04-20 11:12:17 +02:00
Ahmad Bamieh
7b57caf62b
[i18n] add localization section in CONTRIBUTING file (#63668)
* add localization section

* upadte TOC

* Update CONTRIBUTING.md
2020-04-20 09:32:03 +03:00
Liza Katz
796421f600
[SEARCH] Cleanup fetch soon (#63320)
* move old code to legacy folder

* Use search service directly from search source

* Move get search params to fetch folder

* Delete search strategy folder

* Doc update

* Minor cleanups

* Moved es client to legacy folder

* Clean up some unused code (isViable, old search function)

* Updated tests

* strings update

* Fix jest test

* re-arrange runSearch function

* re-arrange runSearch function

* fix jest tests

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-04-19 17:58:45 +03:00
spalger
fe6b13b83c skip flaky suite (#58692) 2020-04-18 12:35:04 -07:00
spalger
f2bdd01853 Merge branch 'master' of github.com:elastic/kibana 2020-04-18 12:34:38 -07:00
Shahzad
c59320c7dd
[Uptime] Refresh index and also show more info to user regardi… (#62606)
* Refresh index and also show more info to user

* updated type

* updated type

* updated test

* updated formatting

* update text

* updated types

* updated translation

* update

* fixed types

* updated code

* fixed types

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-04-18 13:41:11 +02:00
Anton Dosov
73548bd473
[Drilldowns] Fix back button by removing panels from url in dashboard in view mode (#62415)
* remove panels from url

* review nits

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-04-18 10:34:17 +02:00
spalger
d538929ed9 [platform] serve plugins from /bundles/plugin:${id} 2020-04-17 17:14:11 -07:00
Yuliia Naumenko
055d1fb7d4
[Alerting] Documentation for how to pre-configure connectors. (#63807)
* [Alerting] Documentation for how to pre-configure connectors.

* small fix

* Adjusted titles

* Fixed wrong link

* fixed warning

* Fixed ci issues

* [DOCS] Edits preconfigured connector docs

* Replaced words 'pre-configured' with 'preconfigured'

Co-authored-by: gchaps <chappell_5@yahoo.com>
2020-04-17 17:04:02 -07:00
spalger
2e45234eff skip flaky suite (#63621) 2020-04-17 16:41:54 -07:00
spalger
5bba0221d1 Revert "skip flaky suite (#63747)"
This reverts commit 3405d54e3a.
2020-04-17 16:27:18 -07:00
spalger
3405d54e3a skip flaky suite (#63747) 2020-04-17 16:16:53 -07:00
Yara Tercero
24c253e10b
[SIEM][Detections Engine] - Update rule.lists to be rule.exceptions_list (#63717)
### Summary [63717]

This PR updates the rules lists param to be `exceptions_list`. This is done in an attempt to make the terminology less confusing as lists will generally be referring to the big lists values. It should also make it more clear that the `exceptions_list` logic is being applied as a double not.
2020-04-17 18:58:35 -04:00
Ryland Herrick
38217b6352
[SIEM] Flaky test fix: Bump find_statuses timeout (#63900)
* Increase time between creating a rule and retrieving its status

We need to wait for ES to become consistent.

* Prefer sequential `await`s to .then()
2020-04-17 17:17:43 -05:00
Justin Kambic
4242fe5400
[Uptime] Add cert API request and runtime type checking (#63062)
* Add cert API request and runtime type checking.

* Collapse on sha256 field instead of common_name.

* Add basic wildcard search capabilities.

* Support searching.

* Update fields and queries, remove server response validation.

* Update API to utilize x509 fields.

* Add new fields to certs API request, provide defaults.

* Add api test for cert api.

* Add unload command to certs test.

* Extract API params interface to io-ts type.

* Rename a functional test.

* Fix broken type.
2020-04-17 17:58:27 -04:00
Wylie Conlon
561c0f9fed
[Lens] Allow table to scroll horizontally (#63805)
* [Lens] Allow table to scroll horizontally

* Fixing scrolling pt. 2

Co-authored-by: cchaos <caroline.horn@elastic.co>
2020-04-17 17:03:33 -04:00
Chris Cowan
bb49c96167
[Metrics UI] Allow users to create alerts from the central Alerts UI (#63803) 2020-04-17 13:45:26 -07:00
Aaron Caldwell
f179ec4069
Migrate legacy maps licensing (x-pack/tilemap) to NP (#63539)
* Move logic to NP and add basic plugin structure

* Remove unused server-side licensing logic and old index

* Set license in maps_legacy via new plugin

* Change add to set for service settings queryParams function

* Fix accidentally changed emsClient method call

* Require at least a basic license

* Type updates

* Remove unneeded legacy license test

* Remove unused headers in test
2020-04-17 13:56:20 -06:00
Andrea Del Rio
c13a026b01
[Alerting] "Create alert" and alert list design improvements (#63515)
* added header to actions section

* adjusted some spacing in Create Alert

* lighter text in Actions section headings

* fixed bulk actions dropdown

* improve alert collapsed item actions

* improve dropdown and adjust some buttos

* adjust font size of steps to match hierarchy

* need to check master

* improve collapsed actions menu

* added periods to help texts

* going back to EuiButtonEmpty to be able to use isLoading

* fix prop

* remove Fragment

* remove translations we're not using

* Fix functional tests

Co-authored-by: Mike Cote <mikecote@users.noreply.github.com>
2020-04-17 12:15:04 -07:00
Wylie Conlon
dc9bfb5d0f
[Lens] Fix existence for dotted paths in _source (#63752) 2020-04-17 14:27:40 -04:00
Vadim Dalecky
b5762eb5ff
Example plugins in X-Pack (#63823)
* feat: 🎸 add example plugin ability to X-Pack

* style: 💄 spread array items from one array

* chore: 🤖 add x-pack/examples tsconfigs to global list

* fix: 🐛 don't import non-existing plugin

* fix: 🐛 fix TypeScript error

* test: 💍 update Jest snapshot
2020-04-17 20:15:36 +02:00