Commit graph

44593 commits

Author SHA1 Message Date
Candace Park 8acdcff840
[Security Solution][Endpoint][Host Isolation] Host isolation cases view unit test (#104579) 2021-07-12 15:37:16 -04:00
Lisa Cawley 8f7df03472
[ML] Edit stack management message (#105167) 2021-07-12 11:48:05 -07:00
Scotty Bollinger 0121dee9a4
Hide heading when page loading (#105263) 2021-07-12 14:36:59 -04:00
Larry Gregory 76f49565c1
Support authenticating to Elasticsearch via service account tokens (#102121)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-07-12 14:18:35 -04:00
Alejandro Fernández Gómez a5eadd054d
[Fleet] Prevent popovers on agent logs page from being stuck (#105253) 2021-07-12 13:54:20 -04:00
Constance afc07c376f
[Enterprise Search] Update README/description (#105151)
* Update plugin README with beta copy & fancier product info

* Update API dev docs plugin description punctuation

* Update README dev section

- Remote reference to native auth - no longer applicable in 7.14
- Add reference to Getting Started guide (Elastic only)

* Run node scripts/build_plugin_list_docs to update https://www.elastic.co/guide/en/kibana/master/plugin-list.html

* Add link to main Kibana README
- which should link out to their contributing docs
2021-07-12 13:51:38 -04:00
Domenico Andreoli 3638c5ffb2
Drop Detection Engine FTR test POC (#104852) 2021-07-12 13:50:08 -04:00
liza-mae bb1759e065
Fix upgrade tests for 7.14 (#104993)
* Fix upgrade tests for 7.14

* Fix lint issues

* Comment out unused const

* Update uiSettings for non-default space

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-07-12 11:29:37 -06:00
Frank Hassanabad 4b7b45d69d
[Security Solutions] Changes cypress tests to use immutable object data (#105162)
## Summary

In previous pull requests I noticed that there were accidents where Cypress tests were accidentally mutating objects such as rules and mock data since the data is mutable as regular variables. This changes the data to be underneath functions and the functions all return new copies on each invocation. This makes it so that it isn't possible for Cypress tests to accidentally mutate data and mocks between tests. This should also prevent devs from accidentally writing tests that rely on previous tests accidentally mutating data.

I am hoping that this is portable back to 7.14 since it's just test changes and will make it easier to do any other bug fixes without conflicts if tests are updated. If it's not easily portable, then I will mark and update it as only 7.15 backported.

* Changes the mocks underneath `objects/<type>` to use getter functions that return objects.
* Updates the cypress tests

### Checklist

- [x] [Unit or functional tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html) were updated or added to match the most common scenarios
2021-07-12 13:18:17 -04:00
Caroline Horn 42c743be88
[Top Menu] Increase size of top menu links to s (#103144)
* Increased non-emphasized header links size from `xs` to `s`
* [Observability] Updating header links to use EuiHeaderLink
* [Spaces Menu] Larger spinner
* [Help Menu] Increase size of links
* [Canvas] Increase size to `s`
2021-07-12 12:50:41 -04:00
Nicolas Chaulet eae975e91b
[Fleet] Fix enrollment flyout with fleet server from policy page (#104542)
* [Fleet] Fix enrollment flyout with fleet server from policy page

* Fix tests

* Show enrollment instructions for add agent from fleet server policy

* Fix conditions to show fleet server setup in flyout

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-07-12 11:56:43 -04:00
Patryk Kopyciński 3e5ed77470
[Osquery] Fix 7.14 live query history view (#105211) 2021-07-12 17:55:06 +02:00
Justin Kambic 0c9777c602
[Uptime] Refactor page headers to avoid invalid markup (#104215)
* Refactor monitor and waterfall page headers to avoid rendering invalid markup.

* Update tests.

* Translate page titles.

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-07-12 11:23:57 -04:00
Ece Özalp 1aa9459ba2
[CTI] converts disabled panel danger to warning (#104989) 2021-07-12 11:07:34 -04:00
Kaarina Tungseth d6a3692600
[DOCS] Adds how to create dashboard drilldowns for Top N and Table TSVB panels (#104548) 2021-07-12 09:58:39 -05:00
Jason Stoltzfus a80791aa4c
Pass locale to calendar (#105134) 2021-07-12 10:26:41 -04:00
Diana Derevyankina 87066e06b3
[TSVB] Top_hit supports runtime fields (#103401)
* [TSVB] Refactor top-hit aggregation to work with fields instead of _source

* Allow select date strings for top_hit aggregation in table, metric, and markdown

* Fix agg_with handling for top_hit and add some tests

* Refactor get_agg_value and fix type check for _tsvb_chart

* Refactor top_hit.js

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-07-12 17:25:52 +03:00
Joe Reuter 832d349930
[KibanaLegacy] Remove unused stuff and make things async if it is easy (#104638)
* remove unused stuff and make things async if it is easy

* fix problems

* load bootstrap in monitoring

* load angular bootstrap for saved searches and in  unit tests

* fix vis_type_table tests

* Update x-pack/plugins/monitoring/public/plugin.ts

Co-authored-by: Ester Martí Vilaseca <ester.m87@gmail.com>

* Update x-pack/plugins/monitoring/public/plugin.ts

Co-authored-by: Ester Martí Vilaseca <ester.m87@gmail.com>

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Stratoula Kalafateli <stratoula1@gmail.com>
Co-authored-by: Ester Martí Vilaseca <ester.m87@gmail.com>
2021-07-12 15:13:42 +03:00
Dzmitry Lemechko 216bb5e1b8
[load] run puppeteer script before gatling scenarios (#104836)
* [load] puppeteer script before load testing

* install dependencies after metricbeat configuration

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-07-12 13:23:08 +02:00
Pete Harverson b8dfcafe38
[ML] Fixes unnecessary too many buckets warning on anomaly chart embeddable (#105043)
* [ML] Fixes unnecessary too many buckets warning on anomaly chart embeddable

* [ML] Update jest tests for number of axis ticks.

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-07-12 11:31:54 +01:00
Alejandro Fernández Gómez 5256b6d23e
Accomodate height of the <EuiBottomBar /> (#104882)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-07-12 05:46:38 -04:00
Tyler Smalley b2b57a2404
[dev-docs] Add debugging tutorial (#104468)
Signed-off-by: Tyler Smalley <tyler.smalley@elastic.co>

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-07-12 03:02:20 -04:00
Joey F. Poon e4ba52928c
[Security Solution] remove query strategy v1 (#104196) 2021-07-10 18:34:03 -05:00
Dario Gieselaar 857dc9f2e1
[APM] Don't log error if request was aborted (#105024)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-07-10 09:27:07 +02:00
Frank Hassanabad c0fec48104
[Security Solutions][Detection Engine] Fixes button group alignments in machine learning and tags (#105166)
## Summary

See:
https://github.com/elastic/kibana/issues/104055

For more issue details. This is deemed embarrassing enough to be critical for a fix for 7.14.0 before shipping.

EUI looks to have updated its self and added a new attribute that it wants us to use called `numFIlters` which when set will show the total number of filter items before they are selected. Once selected the number and look and feel change.

```ts
numFilters
```

Before:
<img width="717" alt="Screen Shot 2021-07-09 at 5 45 08 PM" src="https://user-images.githubusercontent.com/1151048/125145520-c0fb7a80-e0de-11eb-9540-17bb999a069d.png">

After before selections:
<img width="716" alt="Screen Shot 2021-07-09 at 5 48 43 PM" src="https://user-images.githubusercontent.com/1151048/125145576-fa33ea80-e0de-11eb-8dfe-2d83849696f4.png">

After once you have selections:
<img width="720" alt="Screen Shot 2021-07-09 at 5 49 44 PM" src="https://user-images.githubusercontent.com/1151048/125145610-19327c80-e0df-11eb-8c2a-2ac2c881bc96.png">


Before:
<img width="846" alt="Screen Shot 2021-07-09 at 5 42 01 PM" src="https://user-images.githubusercontent.com/1151048/125145537-cc4ea600-e0de-11eb-92d3-6caad4897a3c.png">

After before selections:
<img width="859" alt="Screen Shot 2021-07-09 at 5 42 27 PM" src="https://user-images.githubusercontent.com/1151048/125145554-d96b9500-e0de-11eb-8abe-35a65c005d5e.png">

After once you have selections:
<img width="873" alt="Screen Shot 2021-07-09 at 5 49 36 PM" src="https://user-images.githubusercontent.com/1151048/125145616-264f6b80-e0df-11eb-9453-575b15c6001e.png">

### Checklist

- [x] [Unit or functional tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html) were updated or added to match the most common scenarios
2021-07-09 20:55:20 -06:00
spalger d776c0940e skip all discover functional tests to unblock es promotion (#104466) 2021-07-09 18:01:11 -07:00
spalger b40fc09dfc skip another suite blocking es promotion (#104466) 2021-07-09 16:40:13 -07:00
Frank Hassanabad c07f51e5be
[Security Detections] Fixes ip on threshold preview button when selecting an ip data type such as source.ip (#105126)
## Summary

See https://github.com/elastic/kibana/issues/100433 for details and test instructions.

This is considered critical and a small fix for 7.14.0 has been requested.

* Wrote Cypress test that exercises the bug
* Fixed mutation in one part of the Cypress Test
* Decided to remove the "missing" that we were telling users was "others" since missing is not the same as others. It no longer errors, but some users might be asking why we don't show "others" anymore. The reality is that we only showed "missing" which isn't adding value to the preview of what detections will end up looking like.
* Later if we want a true "others" we should implement it as a larger feature request and not a bug fix IMHO

Before you would get errors in your network panel: 
![errors_threshold](https://user-images.githubusercontent.com/1151048/125126681-b0380e00-e0b8-11eb-9f2c-a75e2909754c.png)

After you now get the `source.ip` without errors:
<img width="1074" alt="Screen Shot 2021-07-09 at 1 28 24 PM" src="https://user-images.githubusercontent.com/1151048/125127326-94813780-e0b9-11eb-9367-bb3b406ff55a.png">

### Checklist
- [x] [Unit or functional tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html) were updated or added to match the most common scenarios
2021-07-09 16:23:00 -06:00
Ryland Herrick 937a4f381a
[Security Solution] Enrichment details UI cleanup (#104995)
* Remove the "view threat intel data" button from the alert summary

This can be accomplished by clicking the tab itself; there's no real
need for this button.

* Remove section title from alert summary view

This made sense when we had both alert and threat sections, but we no
longer do.

Removes the corresponding translation, and the analogously unused title
from the defunct threat summary view.

* Smaller spacer on alert summary tab

This is distractingly large as compared to other tabs.

* Move "no enrichments" panel below our threat details table

* Remove old import

* Move inspect button inline with rest of header

* Add HR separator to top of NoEnrichmentsPanel

This should arguably be added a level above so as to keep this panel
context-agnostic, but it's currently only used in one place and will
always require the HR, so YAGNI for now.

* Adds more space between title and description on "no data" panel

It has been suggested that the NoEnrichmentsPanel should be following
the guidelines of the EuiEmptyPrompt. If we end up needing e.g. centered
text, we're better off rewriting NoEnrichmentsPanelView in terms of an
EuiEmptyPrompt.

* StyledEuiInMemoryTable has no header row height

We have never provided column names to this component. However, there is
default padding on the thead tds such that even without content they
take up vertical height.

This has resulted in some extra top-margin on historical uses of this
table (which are just the Alert Details views). However, the addition of
a sibling table (ThreatSummaryView) made the extra margin noticable,
since it made the two tables appear disjointed even though they're right
up against each other.

This fixes the issue by removing the padding, allowing the thead to take
no height.

And now that that space isn't taken up by the table header, we need to
add a little bit of space between the header and table on the Threat
Details view.

* Move test to appropriate location

The ThreatDetailsView is no longer responsible for displaying the "no
data" components, that's now a level above in EventDetails.

* Prune unused translations

These have been changed in the latest designs.

* Only add HR if panel is preceded by enrichments

We do not want an HR if there's nothing above the panel.
2021-07-09 18:20:10 -04:00
Oliver Gupte a05853ab2a
[APM] Support for data streams index patterns for cloud migration (#105015)
* [APM] Support for data streams index patterns for cloud migration (#101095)

* [APM] Update apm package version to 0.3.0 (elastic/apm-server/#5579)
2021-07-09 23:52:17 +02:00
Constance 1739b55f94
[Enterprise Search] Fix Error Connecting view not displaying for auth issues (#105125)
* Fix ent-search authentication to show the error connecting screen

Missed this in #103555

* [Misc] updoot handleConnectionError order/spacing to match

- why? because i've lost control of my life, probably
2021-07-09 17:31:01 -04:00
Ece Özalp bcc8ee2532
[CTI] makes dashboard links external (#104979)
* [CTI] makes dashboard links external
2021-07-09 17:28:15 -04:00
Ece Özalp b7f50c279b
[CTI] updates overview cti panel copy (#105074) 2021-07-09 17:17:48 -04:00
Jason Stoltzfus fdd37e3cfb
Fixed description on Ent Home (#105122) 2021-07-09 17:14:37 -04:00
spalger ce48b73dc8 skip suites failing es promotion (#104466) 2021-07-09 13:59:56 -07:00
Quynh Nguyen f7b87a5f65
[ML] Fix Single Metric Viewer & Explorer annotation table actions overflow and annotations count not matching (#104955)
* Fix annotations

* Fix translations

* Fix onclick open

* Fix label/aggregations mismatch

* Fix title
2021-07-09 15:33:20 -05:00
Aaron Caldwell 36bf7f7120
[Maps] Fix tracking threshold alerts improper handling of elasticsearch epoch millis strings (#105010) 2021-07-09 16:28:02 -04:00
Spencer f3228a38f4
[kbn/client/ui-settings] support using uiSettings in a specific space (#105116)
Co-authored-by: spalger <spalger@users.noreply.github.com>
2021-07-09 16:26:26 -04:00
Scotty Bollinger 65bc4a9c0e
[Workplace Search] Remove users from groups views (#105108)
* Remove user list from groups table

* Remove users table from group overview

* Lint
2021-07-09 14:53:15 -05:00
Greg Thompson fa03028688
Enable CSS-in-JS styling with emotion (#98157)
* emotion deps

* kbn-babel

* kbn-test

* examples

* babel-plugin-styled-components config

* css prop type fixes

* type context

* declaration location

* some emotion types resolved

* clean up

* emotion v10 accomodations

* types

* kbn-crypto

* kbn-telemetry-tools

* bazel

* eslint rule; shared file regex array

* update paths

* Update packages/kbn-eslint-plugin-eslint/rules/module_migration.js

Co-authored-by: Spencer <email@spalger.com>

* remove placeholder styles

* doc api changes

* snapshot updates

* storybook comments

* use constant

* bump new deps

* condense versions

Co-authored-by: Spencer <email@spalger.com>
2021-07-09 13:42:50 -05:00
Cauê Marcondes d2ce8d5223
[APM] Make fleet plugin dependency optional (#104967)
* fixing tutorial when fleet plugin is disabled

* addressing PR comments
2021-07-09 13:46:52 -04:00
Tim Sullivan 5b207d8484
[Reporting] Add handleSIGHUP: false to puppeteer LaunchOptions (#104992) 2021-07-09 10:18:25 -07:00
Nicolas Chaulet 95008cdb61
[Fleet] Fix add host url validation in fleet server setup (#105072) 2021-07-09 13:04:52 -04:00
Dima Arnautov 0809d5d15f
[ML] Add integration tests for trained_models API (#104819)
* [ML] api integration tests for get trained models endpoint

* [ML] delete ingest pipelines after tests execution

* [ML] deleteIngestPipeline method

* [ML] test for unauthorized user

* [ML] tests for model stats

* [ML] delete trained model tests

* [ML] fix typo

* [ML] fix expect package path

* [ML] get model pipelines tests

* [ML] test for aliases

* [ML] add tests for a 404 response

* [ML] fix typo

* [ML] fix typo
2021-07-09 12:53:20 -04:00
gchaps 357264db09
[DOCS] Fixes formatting in search sessions doc (#105077) 2021-07-09 09:34:27 -07:00
Ashokaditya 81f09a863d
[Security Solution] [Endpoint] Allow filtering activity log with date range (#104085)
* use date range in search query

fixes elastic/security-team/issues/1137

* make any date selection fetch matching log

fixes elastic/security-team/issues/1137

* use a single action for updating paging info and fetching data

fixes elastic/security-team/issues/1137

* use consistent types

for some reason TS was complaining earlier with `undefined`

* reset date picker on tab load

fixes elastic/security-team/issues/1137

* refactor date pickers into a component

refs elastic/security-team/issues/1137

* clear dates on change of endpoint

fixes elastic/security-team/issues/1137

* do not show empty state if date filtering results return empty data

fixes elastic/security-team/issues/1137

* add tests

fixes elastic/security-team/issues/1137

* review changes

* update comment

refs f551b67d66

* store invalidDateRange on redux store and decouple logic from the component

review changes

* fix test

* fix lint

* review changes

* expand date picker to use the full width of the flyout

review changes

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-07-09 18:24:18 +02:00
Constance facaeb7d65
[App Search] Relevance Tuning: Fix unsaved changes bug (#104951)
* Fix unsavedChanges false positive when MultiInputRows is present

- The fix for this is to change MultiInputRows from useEffect to useUpdateEffect, which prevents onChange from firing on initial mount/render (triggering updateBoostValue->unsavedChanges)

@see https://github.com/streamich/react-use/blob/master/docs/useUpdateEffect.md

* Fix precision tuner not triggering unsavedChanges
2021-07-09 09:23:18 -07:00
Vadim Yakhin 48fa754042
Replace cmd with bash as EuiCodeBlock language (#105065)
cmd is no longer supported by 3rd party library used by EuiCodeBlock
2021-07-09 12:11:14 -04:00
Thomas Watson dacb5949a2
Bump fast-safe-stringify to v2.0.8 (#105066) 2021-07-09 12:03:52 -04:00
Yaroslav Kuznietsov 8c366faf8f
Fix of the ja-JP.json not found error. (#105023)
* Fixed `i18nrc not found ja-JP.json file` at expression_reveal_image.

* Fixed `i18nrc not found ja-JP.json file` at `screenshotMode`.

* Fixed `i18nrc not found ja-JP.json file` at `x-pack/plugins/timelines`.
2021-07-09 18:32:34 +03:00