Commit graph

44573 commits

Author SHA1 Message Date
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
Tiago Costa
3cbea1bcaa
skip flaky suite (#105016) 2021-07-09 15:19:27 +01:00
Devin W. Hurley
583b867d44
[RAC] [RBAC] Fix hyperlinks in typedocs for alerts client (#104975)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-07-09 10:15:04 -04:00
Nathan L Smith
efa4ce22fa
Storybook EUI theme decorator (#103582)
Add an `EuiThemeProviderDecorator` to kibanaReact which uses the Storybook globals to set the EUI theme.

Add global decorators to the APM and Observability plugins so all stories are wrapped in the `EuiThemeProviderDecorator`, and they don't need to specify it in the stories.

Add [jest setup helpers recommended by @storybook/testing-react](https://github.com/storybookjs/testing-react#global-config).
2021-07-09 08:54:48 -05:00
Alexey Antonov
ef991b7c2b
[TSVB] fix include/exclude fields appear to migrated TSVB visualization when using Group by Terms (#104848)
* [TSVB] Include/exclude fields appear to migrated TSVB visualization when using Group by Terms

Closes: #104829

* add functional test

* fix JEST
2021-07-09 09:53:48 -04:00
Alexey Antonov
4806cf3fd6
[TSVB] Table view - fix display of item urls (#105051) 2021-07-09 09:46:56 -04:00
Yuliia Naumenko
316e0b36ff
[Alerting UI] Fixed bug when rule state was updated on Edit flyout opening: Index action set empty documents property for non history index. (#105014) 2021-07-09 06:18:38 -07:00
Jean-Louis Leysens
3e118c4e23
[Reporting] First accessibility test (#104410)
* makeAllReportingPoliciesUnmanaged -> makeAllReportingIndicesUnmanaged

* expose the reporting services on the functional services object shared with a11y

* added data-test-subjs for a11y test

* added reporting a11y test

* updated jest test

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-07-09 15:04:37 +02:00
Dmitry Shevchenko
01005289ae
Fix incorrect tags after rule duplication (#104948) 2021-07-09 12:43:40 +02:00
David Sánchez
b1f2f1395d
[Security Solution][Endpoint] Enrich events with ES data before rendering event filters modal (#104703)
* Enrich events with ES data before rendering event filters modal

* Add unmounted component control check

* Fix error when closing and opening modal/flyout twice
2021-07-09 12:28:41 +02:00
Dario Gieselaar
ffc37406bd
[APM] Get service name from context for alert flyout (#104103) 2021-07-09 12:13:00 +02:00
Ester Martí Vilaseca
7ddab693ae
[Monitoring] Add rules modal to listing page (#104328)
* Add rules modal to listing page

* Fix tests

* minor fixes

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-07-09 10:35:24 +02:00
Dmitry Shevchenko
8dd08529ae
Fix stale validation messages on the action edit form (#104868) 2021-07-09 10:24:36 +02:00
James Gowdy
d4e46c52a2
[ML] Fixing annotations table loading hang (#104825) 2021-07-09 08:13:36 +01:00
Kevin Logan
1d2811e603
[Security Solution] add advanced policy option for Linux Malware quarantine (#104984)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-07-08 22:45:01 -04:00
Jonathan Budzenski
fcb0de47f1
[paths] Add default lookup for kibana.yml at /etc/kibana (#103934)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-07-08 20:55:18 -04:00
Davis Plumlee
c6916eacc2
[Security Solution][Exceptions] Gets rid of rule exception comma delimiter for "is one of" operator (#104960) 2021-07-08 20:12:04 -04:00
Spencer
94a0b23486
[reporting] remove outdated todo comment (#104959)
Co-authored-by: spalger <spalger@users.noreply.github.com>
2021-07-08 20:11:42 -04:00
Patryk Kopyciński
fe6eb09936
[Osquery] Fix 7.14 UX issues (#104257) 2021-07-08 19:39:46 -04:00
Yara Tercero
6d9d1db6ac
[Security Solution] - Updates breadcrumbs text for returning to rules page (#104805)
### Summary
Updates breadcrumbs text for returning to rules page from rule creation and rule details.
2021-07-08 19:30:00 -04:00
Yara Tercero
151dafc2f2
[Security Solution][Exceptions] - update exception lists page title and exceptions navigation title (#104803)
### Summary

Updates exception lists page title and exceptions navigation title to "Exceptions"
2021-07-08 19:29:40 -04:00