Commit graph

36764 commits

Author SHA1 Message Date
Tiago Costa 1ba706c9dd
skip failing suite (#78942) 2020-09-30 14:57:33 +01:00
Bhavya RM 8e963fdf1a
A11y tests for filter panel (#78776)
a11y tests for filter panel and some test data un mounting
2020-09-30 09:34:24 -04:00
Mikhail Shustov ae8f8e1d10
Add TS projects for src/plugins & x-pack/plugins (#78440)
* bump query-string version to remove manual type definitions

* remove manual type declaration

* add kibana_utils tsconfig

* add refs to kibana_utils tsconfig

* add kibana_utils to the project list

* add kibana_react project

* add support for x-pack/tsconfig.refs.json

* add ts project for x-pack licensing plugins

* add glob for ts projects in src/plugins & x-pack/plugins

* add refs to projects in examples

* fix ref paths in x-pack/test

* address mistic comments

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-09-30 15:02:41 +02:00
Alison Goryachev 272e850483
[Ingest pipelines] Update readmes (#78350) 2020-09-30 08:42:29 -04:00
Alison Goryachev caa260527b
[Ingest pipelines] Address copy review feedback (#78796) 2020-09-30 08:38:02 -04:00
Anton Dosov 6771279f31
[UiActions] Don't throw an error if there are no compatible actions to execute (#78917) 2020-09-30 14:16:51 +02:00
Cauê Marcondes eebe4ad648
[Observability] Kibana nav when docked overlaps the content of the pages. (#78593)
* adding padding left

* adding space left to appSection
2020-09-30 14:16:16 +02:00
Alexey Antonov 4306082af5
Invalid searchSourceJSON causes saved object migration to fail (#78535)
* Invalid `searchSourceJSON` causes saved object migration to fail

Closes: #78530

* 7.8.2 -> 7.9.3

* return migration into 6.7.2
2020-09-30 15:10:01 +03:00
Alexey Antonov b6525cd3b3
update vega version (#78390) 2020-09-30 14:52:44 +03:00
Anton Dosov 1eb229be2e
Fix warning text doesn't get displayed on filters with custom filter name (#78617)
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-09-30 12:45:27 +02:00
Jean-Louis Leysens 2904fe01b5
[ILM] Data tier notices should reflect tier preferences (#78398)
* Refactor allocation notices for tier preferences

- also removed the lingering "data_frozen" node role

* added some test coverage

* Implement copy feedback

* Minor refactors based on PR feedback

* expanded README.md with section on testing cluster state notices

* Updated copy to reference policy and updated freeze description

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-09-30 12:42:05 +02:00
Cauê Marcondes 7b90333628
[APM] Service Map: Not Defined option doesn't work properly (#77757)
* Service Map:  option doesn't work properly

* addressing PR comment

* addressing PR comment

* adding unit tests

* addressing PR comment

* fixing tests

* addressing PR comment

* addressing PR comment

* addressing PR comment

* addressing PR comment

* addressing PR comment

* add filter by environment

* addressing PR comment

* fixing API tests

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-09-30 12:36:55 +02:00
Matthias Wilhelm 855a33c733
Improve invalid field error message at search.aggs.param_types.field (#78587) 2020-09-30 11:38:25 +02:00
Tim Roes 14c7a5e41a
Remove isDeprecated flag on visType (#78820) 2020-09-30 10:46:17 +02:00
Rudolf Meijering f8d796aec6
Remove unused elasticsearch.preserverHost setting (#78608)
* Remove unused elasticsearch.preserverHost setting

* deprecate and remove elasticsearch.startupTimeout config
2020-09-30 10:39:08 +02:00
Jen Huang f6be7dc2f9
Fix condition and adjust tests (#78898)
(cherry picked from commit 676ce45993)
2020-09-30 01:30:32 -07:00
Shahzad a31dd64778
[UX] Add percentile selector (#78562) 2020-09-30 10:24:38 +02:00
Pete Harverson 80c004cb01
[ML] Replace use of rest_total_hits_as_int with track_total_hits (#78423)
* [ML] Replace use of rest_total_hits_as_int with track_total_hits

* [ML] Replace use of lodash get for obtaining hits total

* [ML] Update mocks to use new total hits format
2020-09-30 08:54:17 +01:00
Peter Pisljar 8e523edcd6
expression service docs (#78774) 2020-09-30 09:10:28 +02:00
Stratoula Kalafateli 108a2302cd
[Functional] Wait for the page to load and then click the new vis button (#78725) 2020-09-30 10:02:16 +03:00
Diana Derevyankina 03c0d87459
[TSVB] No data in visualizations with annotations (#78794)
Closes #78789
2020-09-30 09:22:08 +03:00
Spencer 353595617b
[kbn/ui-shared-deps] track asset sizes (#78718)
Co-authored-by: spalger <spalger@users.noreply.github.com>
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-09-29 22:14:59 -07:00
Spencer 4c4d28ad35
delete target before building (#78665)
Co-authored-by: spalger <spalger@users.noreply.github.com>
2020-09-29 21:59:11 -07:00
Matthew Kime cdb922f2a2
Move indexPattern.popularizeField into discover (#77668)
Move indexPattern.popularizeField into discover
2020-09-29 20:02:21 -05:00
Brent Kimmel b1e60a6a8c
[Security Solution][Resolver]Add backdrop to pills (#78625)
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-09-29 20:46:59 -04:00
Nathan L Smith 564a7b1a17
Storybook 6 and config changes (#75357)
Upgrade to Storybook 6 and attempt to use the declarative configuration.

The goals of this PR (as part of Kibana's Storybook roadmap, are:

Upgrade to Storybook 6
Still allow running Storybooks with yarn storybook plugin_name
Use the declarative configuration to (hopefully) make the configuration simpler to use an easier to understand, as well as avoiding deprecation warnings and loss of future compatibility
The ways in which what I have so far differs from how we do things today are:

In the alias configuration it takes a path to a storybook configuration directory instead of the storybook.js file from before
Each plugin (it doesn't have to be a plugin; can be any directory) has a .storybook/main.js (the aliases file in @kbn/storybook specifies these locations) where they can define their Storybook configuration. You can require('@kbn/storybook').defaultConfig to get defaults and override them
@kbn/storybook has a preset that can provide Webpack and Babel configuration and Storybook parameters and decorators
Instead of dynamically creating the list of stories to import, we define them in the globs of the stories property in .storybook/main.js.
Do not build a DLL. We are using @kbn/ui-shared-deps as externals. Startup time is not quite as fast but still acceptable.
Other things done in this PR:

Allow default exports in .stories. to allow for Common Story Format CSF stories
Add guard in Webpack configuration needed for overriding CSS rules
Update filename casing check to allow for files with required names in Storybook
Clean up observability stories
Rename *.examples.tsx and *.story.tsx to *.stories.tsx
2020-09-29 19:34:05 -05:00
Phillip Burch 46a595947e
[Metrics UI] Add anomalies to timeline (#78602)
* Add ability to fetch anomalies by metric

* Add ability to fetch anomalies to timeline

* Show anomaly annotation on timeline

* Fix type check

* Fix typos

* Add influencers to tooltip, add legend

* Remove unused variable

* Only show anomalies with a score greater than 50

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-09-29 18:06:38 -05:00
Melissa Alvarez fd09c095de
[ML] DF Analytics exploration: add ml.is_training filter to regression/classification views (#78702)
* add training quickfilter buttons in results view

* explorationQueryBar- add ability to use quickfilters

* update type for button group
2020-09-29 18:32:24 -04:00
Marshall Main 9a9a8b0c32
Update host.os.family to match what endpoint sends (#78607) 2020-09-29 17:47:15 -04:00
Spencer 1b034bbd2b
[canvas] only import templates when necessary (#78709)
* [canvas] only import templates when necessary

* import correct exports

Co-authored-by: spalger <spalger@users.noreply.github.com>
2020-09-29 14:15:50 -07:00
Nathan L Smith dffbc35119
Fix APM header wrapping (#78845)
Add `wrap` to the flex group for the APM header and remove the `break-all` CSS.

Makes it so the date picker doesn't get cut off on narrow screens and the header text does not wrap unnecessarily.
2020-09-29 15:59:40 -05:00
Constance bc9bd13e3c
[Enterprise Search] Move header actions menu to be rendered after the main app + share its store (#78691)
* [Setup] Refactor renderApp tests

- This is anticipation of upcoming renderHeaderActions changes which will require these helpers (particularly the unmount portion, for some reason renderHeaderAction tests fail if apps are not unmounted properly)

- Add mount/unmount helper (but leave first test the same so that devs can see the normal/expected usage)
- Add missing EnterpriseSearch app test
- Add mockContainer var for brevity, pull out MockApp in anticipation of future usage

* Store renderHeaderActions in KibanaLogic

- a light wrapper/helper around params.setHeaderActionMenu

+ update renderHeaderActions - move to main renderApp block to reflect that its relationship with renderApp ('child'/should be called within renderApp/shares dependencies).

* Update WorkplaceSearch to render its header actions from app, not plugin.ts

* Update WorkplaceSearch tests (+ bonus refactor)

- We need to update WS tests to setMockValues so that it doesn't override the renderHeaderActions mock
+ bonus - add setMockActions as well because since we're already here
+ bonus - update App Search index tests as well to match
+ ?? - for some reason tests were failing beceause react router wasn't mocked properly - requireActual seems to fix that

* 🔥 Remove temporary externalUrl workaround

- set in 9d993d8e5d

- WorkplaceSearchHeaderActions should now still have the correct URL - and also now be able to access all Kea logic set up by the main app :)
2020-09-29 13:28:13 -07:00
Michael Olorunnisola 15ebb751c6
[Security Solution][Resolver] Request data from new event api (#78782) 2020-09-29 16:00:31 -04:00
Chris Cowan 1edda05813
[Metrics UI] Inventory shows * node when there are no results (#78371)
* [Metrics UI] Inventory shows * node when there are no results

* fixing tests to handle the new behavoir
2020-09-29 12:55:09 -07:00
Rashmi Kulkarni f27b6fef19
Accessibility tests for Stack management > advanced settings page (#78102)
* wip

* advanced settings

* removed unused vars

* unused vars

* fix label issue and ignore duplicate id issue

* fixing advanced management

* fixing jest tests

* i18n translations

* i18n translations

* fixed jest tests

* addressed review comments

* addressed review comments

* addressed review comments

* reverted the snapshot

Co-authored-by: Michail Yasonik <michail.yasonik@elastic.co>
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-09-29 12:54:22 -07:00
Nathan L Smith c2ef407d04
OpenTelemetry icons and data telemetry (#78499)
Add OpenTelemetry agent names and and icon. OpenTelemetry services will have the same icon as the corresponding APM services.

Services that report "otlp" as their agent name use the OpenTelemetry icon.

The OpenTelemetry agents are now collected in the data telemetry along with the other agent names.

Change "ratio" in the telemetry to a float.
2020-09-29 14:33:29 -05:00
Kevin Logan 70d5157d62
[SECURITY_SOLUTION] add condition and message for Endpoints enrolling (#77273) 2020-09-29 15:13:12 -04:00
Devon Thomson bf93974edc
[Time to Visualize] Panel Title Fixes (#78365)
* [Dashboard][Embeddable] Add placeholder title to embeddable panel, stored 'show panel title' prop in embeddable input.
Co-authored-by: Maja Grubic <maja.grubic@elastic.co>
2020-09-29 15:07:17 -04:00
Kerry Gallagher 33d051b73c
[Logs UI] Log threshold ratio alerts (#76867)
* Add ratio alerting to log threshold alerts

* Fix i18n

* Move grouped query must not filtering from outer to inner clause

* Use new ratio alerting layout

* Use better defaults for ratio alerts

* Remove div wrapper

* Remove type casting, use user-defined type guards

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-09-29 14:59:18 -04:00
Constance cb0e650e40
[Enterprise Search] Update CODEOWNERS and README (#78809)
* [Enterprise Search] Temporarily remove team-specific review requirements

The App Search and Workplace Search teams are currently too small in size (+ only a few are focused on Kibana work) to justify requiring 2 reviews (1 from each team) vs just 1 review from either team.

We will re-consider and add team-specific CODEOWNERS back in if that changes (e.g. all our front end devs switching to Kibana)

* Add additional Kea documentation with links to Kea's docs to help intro new developers
2020-09-29 11:44:07 -07:00
Luke Elmers ccb789dbdf
[data.search] Expose SearchSource on the server. (#78383) 2020-09-29 12:38:05 -06:00
Théo Frasquet e9acb95657
Added clarification on b64 encoding of API key (#78394)
* Added clarification on b64 encoding of API key

The current documentation does not specify how to encode the response to get a valid api key, I added it from the info found here: https://github.com/elastic/elasticsearch/issues/50235#issuecomment-644170902

* Updated for consistency with Elasticsearch docs

https://github.com/elastic/kibana/pull/78394#pullrequestreview-497412674
2020-09-29 11:35:15 -07:00
Christos Nasikas 4f6df624e9
[Actions] Migrate cases configuration object (#77998)
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
Co-authored-by: Gidi Meir Morris <github@gidi.io>
2020-09-29 21:10:57 +03:00
Yara Tercero 0329f9252e
[Security Solution][Exceptions] - Adds support for file.Ext.code_signature to be object or array of objects (#77611)
* init commit

* lots of cleanup

* starting on tests... problems

* Ready for review

* remove sample data

* remove comment and fix type

* pr changes

* fix type

* scratchy

* sourcerer in timeline

* sourcerer in timeline

* wip

* moving to redux

* working on types

* fixed

* more adjustments, tests fixed

* FF off

* pr ready

* renaming

* url state working, hoc not working

* url state working for timeline and default scope

* script to build fields for beat doc

* refactor sourcerer

* refactor host to useSourcerer

* refactor network to useSourcerer

* refactor overview  to useSourcerer

* refactor detections to useSourcerer

* wip for timelines to remove all useSource

* wip indexes timeline

* do component tests

* start container tests

* start container tests

* update selection widget of index patterns + remove last useWithSource

* modifications to allow file.Ext.code_signature to be either an object or array of objects

* tweaked helper

* add indexeNames in network kpi

* fix type errors

* fix type

* missing merge master

* get existing index from config file

* fixing broken tests

* add saving button to avoid to many queries to be aborted

* try to get data from ecs data

* reducer timeline tests broke

* need to rewind

* much better

* timeline saving index names + clean up url state to only manage default

* more test fixing

* more test changes

* remove all the useWithSource + deprecated the graphql until we delete it in a new PR + delete all the beat doc

* default timeline to all index when creation + filter index patterns to make sure you do not add one who we do not know

* fix types

* test for stateful timeline render

* we should not have change that

* no chnages + snapshot

* fix test + bugs from review

* fix uncommon processes indexNames

* review III

* change design for main page of the sourcerer from design

* bug fixes when opening old timeline + implementation of new design

* fix circular deps

* remove unused attributes for event details

* design cleanup

* moved exeptions modal to use ecs data instead of non ecs timeline data

* trying to fix some merge issues

* added pr feedback

* remove unused component prop

* updated per feedback

Co-authored-by: Steph Milovic <stephanie.milovic@elastic.co>
Co-authored-by: Xavier Mouligneau <189600+XavierM@users.noreply.github.com>
Co-authored-by: Patryk Kopycinski <contact@patrykkopycinski.com>
2020-09-29 14:01:50 -04:00
Alejandro Fernández Haro 66866d0af1
[Usage Collection] [schema] reporting + add MappedType support (#78591) 2020-09-29 19:00:09 +01:00
MadameSheema 8282dd7066
unskips events viewer spec (#78797) 2020-09-29 19:59:30 +02:00
gchaps 823ccb82ea
[DOCS] Updates KQL doc (#77817)
* [DOCS] Updates KQL doc

* [DOCS] Edits to KQL doc

* Update docs/discover/kuery.asciidoc

Co-authored-by: Kaarina Tungseth <kaarina.tungseth@elastic.co>

* Update docs/discover/kuery.asciidoc

Co-authored-by: Kaarina Tungseth <kaarina.tungseth@elastic.co>

* Update docs/discover/kuery.asciidoc

Co-authored-by: Kaarina Tungseth <kaarina.tungseth@elastic.co>

* Update docs/discover/kuery.asciidoc

Co-authored-by: Kaarina Tungseth <kaarina.tungseth@elastic.co>

* Update docs/discover/kuery.asciidoc

Co-authored-by: Kaarina Tungseth <kaarina.tungseth@elastic.co>

* Update docs/discover/kuery.asciidoc

Co-authored-by: Kaarina Tungseth <kaarina.tungseth@elastic.co>

* Update docs/discover/kuery.asciidoc

Co-authored-by: Kaarina Tungseth <kaarina.tungseth@elastic.co>

* Update docs/discover/kuery.asciidoc

Co-authored-by: Kaarina Tungseth <kaarina.tungseth@elastic.co>

* Update docs/discover/kuery.asciidoc

Co-authored-by: Kaarina Tungseth <kaarina.tungseth@elastic.co>

* Update docs/discover/kuery.asciidoc

Co-authored-by: Kaarina Tungseth <kaarina.tungseth@elastic.co>

* Update docs/discover/kuery.asciidoc

Co-authored-by: Kaarina Tungseth <kaarina.tungseth@elastic.co>

* Update docs/discover/kuery.asciidoc

Co-authored-by: Kaarina Tungseth <kaarina.tungseth@elastic.co>

* Update docs/discover/kuery.asciidoc

Co-authored-by: Kaarina Tungseth <kaarina.tungseth@elastic.co>

* Update docs/discover/kuery.asciidoc

Co-authored-by: Kaarina Tungseth <kaarina.tungseth@elastic.co>

* Apply suggestions from code review

Co-authored-by: Kaarina Tungseth <kaarina.tungseth@elastic.co>

* [DOCS] Adds image of autocomplete and other edits

* [DOCS] Minor edit to KQL doc

* [DOCS] Minor edit

Co-authored-by: Kaarina Tungseth <kaarina.tungseth@elastic.co>
2020-09-29 10:57:30 -07:00
Devon Thomson 33f8ebd335
[Dashboard] Store Expanded Panel Id in URL (#78684)
* Added expandedPanelId to dashboard app state
2020-09-29 13:50:13 -04:00
Alexey Antonov 65cafcd9c9
[Vega] Add vega maps statistics to usage collector (#78546)
* telemetry

* [Vega] Add vega maps statistics to usage collector

Closes: #78269

* add tests

* ignore sample data visualizations

* fix PR comment

* get default vega vis from home plugin

* match_phrase doesn't work for full text search

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-09-29 20:29:53 +03:00
Devon Thomson ef5702bb8e
[Dashboard] Maximize Panel Title Copy (#78690)
* Changed copy for expand panel action -> maximize panel.
2020-09-29 13:28:02 -04:00