Commit graph

44553 commits

Author SHA1 Message Date
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
Paul Tavares
149d3c5685
[Security Solution][Endpoint] Fix permission checks for endpoint management funcionality (#104555)
* refactor: move `UserPrivilegesContext` to `public/common`
* Add endpointPrivileges to the UserPrivileges context
* refactor `useUpgradeSecurityPackages` to use `useUserPrivileges()`
* Refactor to use `useUserPrivileges()` instead of `useIngestEnabledCheck()`
* Refactor Overview page to use `useUserPrivileges()` instead of `useIngestEnabledCheck()`
* Delete `ingest_enabled` hook and refactor tests
2021-07-08 19:29:25 -04:00
Zacqary Adam Xeper
d41f2dc57e
[Fleet] Fix blank page when uninstalling outdated integration (#104938)
* [Fleet] Fix blank page when uninstalling outdated integration

* Make redirect conditional on version mismatch
2021-07-08 15:33:25 -05:00
Nicolas Chaulet
d5b1279182
[Fleet] Make Unhealthy status excluding updating agents (#104949) 2021-07-08 15:48:03 -04:00
Oliver Gupte
f2a94addc8
[APM] Fleet migration - Set APM Server URL from Cloud plugin (#104907) (#104918) 2021-07-08 15:29:16 -04:00
Spencer
0af424e04e
add missing await (#104941)
Co-authored-by: spalger <spalger@users.noreply.github.com>
2021-07-08 15:26:41 -04:00
Devin W. Hurley
c77c7fbedb
[RAC] [RBAC] MVP RBAC for alerts as data (#100705)
An MVP of the RBAC work required for the "alerts as data" effort. An example of the existing implementation for alerts would be that of the security solution. The security solution stores its alerts generated from rules in a single data index - .siem-signals. In order to gain or restrict access to alerts, users do so by following the Elasticsearch privilege architecture. A user would need to go into the Kibana role access UI and give explicit read/write/manage permissions for the index itself.

Kibana as a whole is moving away from this model and instead having all user interactions run through the Kibana privilege model. When solutions use saved objects, this authentication layer is abstracted away for them. Because we have chosen to use data indices for alerts, we cannot rely on this abstracted out layer that saved objects provide - we need to provide our own RBAC! Instead of giving users explicit permission to an alerts index, users are instead given access to features. They don't need to know anything about indices, that work we do under the covers now.

Co-authored-by: Yara Tercero <yctercero@users.noreply.github.com>
Co-authored-by: Yara Tercero <yara.tercero@elastic.co>
2021-07-08 15:24:17 -04:00
Josh Dover
e9ec16ec97
Add additional old SO type from 7.6 to filter and test (#104913) 2021-07-08 14:16:07 -04:00
Christos Nasikas
83856767af
[Cases] Reset selected cases when changing filters (#104839)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-07-08 21:00:25 +03:00
Clint Andrew Hall
cfe1fe72c5
[canvas] Reduce bundle size by removing dependency on URL library (#104233)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-07-08 10:39:00 -07:00
Clint Andrew Hall
11b7e33a0e
[canvas] Reduce bundle by registering Canvas Plugin API on mount (#104264) 2021-07-08 12:35:00 -05:00
Nathan L Smith
fa8dd5603e
Use deployment id instead of cloud id in tutorial link (#104779)
Fixes #104611.
2021-07-08 12:28:00 -05:00
Kyle Pollich
a7fe96a428
Fix background color on view assets button (#104887)
Fixes #104813
2021-07-08 12:59:55 -04:00
Dominique Clarke
15f0f7f727
[Uptime] [Alerting] fix tls legacy descriptions (#104873) 2021-07-08 12:32:12 -04:00
James Gowdy
d4ecc018b7
[ML] Fix error handling in job search bar (#104759) 2021-07-08 17:22:41 +01:00
Quynh Nguyen
035ff66717
[ML] Fix Index Data Visualizer error if index pattern has histogram field type (#104553)
* [ML] Add NON_AGGREGATABLE_FIELD_TYPES, add icon type

* Fix types

* Add histogram icon, fix types showing for hidden fields

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-07-08 11:22:07 -05:00
Shahzad
04c05f8077
[Exploratory view] Fix core web vital breakdown (#104630)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-07-08 18:19:09 +02:00
Shahzad
bde745539e
[Exploratory view] Fix mobile device distribution (#104626) 2021-07-08 18:18:06 +02:00
Constance
07bd76c2a3
[App Search] Result Settings: Max size input fixes (#104755)
* Fix "Max size" number inputs cutting off the "No limit" placeholder text on Chrome/webkit

- textOnly={false} is required for the input to expand in width

* Fix handleFieldNumberBlur behavior:
- should allow setting a number field back to empty/no limits

- dev note: '' is the blank/empty state, which gets parsed to NaN. Random invalid strings ALSO get parsed to '', which is NaN

* Fix input not clearing invalid non-number strings

For some really odd reason, '' and undefined aren't correctly resetting the input value when a string gets entered into the input. I had to add a space for EUI to actually start clearing it

Note that this change completely prevents users from writing non-numbers into the input at all, but this is probably fine/valid honestly
2021-07-08 08:58:59 -07:00
István Zoltán Szabó
db048c33a5
[ML] Changes DFA links in doc links service. (#104871) 2021-07-08 11:47:02 -04:00
Cauê Marcondes
a1e3d02753
[APM] Fixing visual bugs in APM Schema settings (#104491)
* small style adjustments

* show loading page while migrating

* adding storybook

* addressing PR comments
2021-07-08 11:42:09 -04:00