Commit graph

42139 commits

Author SHA1 Message Date
Kibana Machine 06313f3b94
Sharing saved objects phase 3.5 (#100424) (#103575)
Co-authored-by: Joe Portner <5295965+jportner@users.noreply.github.com>
2021-06-28 20:33:16 -04:00
Zacqary Adam Xeper 1e066f2615
[Fleet] Add multi field support to preconfiguration API (#103347) (#103569)
* [Fleet] Add multi field support to preconfiguration API

* Loosen preconfig value schema
2021-06-28 19:38:27 -04:00
Kibana Machine 1e5ae121e4
[Enterprise Search] Add beta notification (#103535) (#103565)
* Set up new BetaNotification component

* Update shared page template to append new beta notification item to side nav

NOTE: I'm mutating the array because:
- returning a new instance leads to a lot of really annoying type errors
- the side nav's we're getting are entirely static with predictable items & and always come from us anyway
- this is eventually going to get removed, and I'm optimizing for easy-to-remove code

* Add beta notification to error connecting state

- to help users/SDH cases where users cannot connect at all

* Fix type error

- sideNav itself can be undefined but not `sideNav.items`

Co-authored-by: Constance <constancecchen@users.noreply.github.com>
2021-06-28 19:16:25 -04:00
Luke Elmers 6f31a759f4
[migrations v2] Integration test for multi-node cluster. (#100957) (#103559)
# Conflicts:
#	packages/kbn-test/src/es/test_es_cluster.ts
2021-06-28 18:34:31 -04:00
Kibana Machine 58bed92b16
Allow for versionless integration details urls (#103484) (#103553)
Default to either the installed version of an integration, or the latest
available version based on installation status when a version is not
included in the integration details URL.

Closes #93393

Co-authored-by: Kyle Pollich <kyle.pollich@elastic.co>
2021-06-28 17:58:05 -04:00
Vadim Dalecky 8d1c01d2f3
Locator docs (#103129) (#103551)
* feat: 🎸 add locator_examples plugin

* feat: 🎸 add example app in locator_examples

* feat: 🎸 add locator_explorer plugin

* chore: 🤖 remove url_generaotrs_* example plugins

* docs: ✏️ update share plugin readme

* docs: ✏️ add locators readme

* docs: ✏️ update docs link in example plugin

* docs: ✏️ update navigation docs

* fix: 🐛 make P extend SerializableState

* test: 💍 update test mocks

* fix: 🐛 use correct type in ingest pipeline locator

* test: 💍 add missing methods in mock

* test: 💍 update test mocks

* chore: 🤖 update plugin list

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
# Conflicts:
#	examples/locator_examples/kibana.json
2021-06-28 17:50:41 -04:00
Steph Milovic 6a445a657b
[RAC] [Cases] Push to 3rd party UI updates (#103418) (#103546) 2021-06-28 17:38:02 -04:00
Melissa Alvarez 199a0725ed
[ML] Anomaly Detection: Visualize delayed - data Part 3 (#103150) (#103541)
* move content from modal to flyout with message table below chart

* update file name from modal to flyout

* update messages endpoint for range to use with chart range

* add show in chart action for messages table

* add job messages title and make flyout smaller
2021-06-28 17:18:22 -04:00
Kibana Machine a35147a28f
[kbn/optimizer] fix optimizerCache creation (#103190) (#103532)
Co-authored-by: spalger <spalger@users.noreply.github.com>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

Co-authored-by: Spencer <email@spalger.com>
Co-authored-by: spalger <spalger@users.noreply.github.com>
2021-06-28 16:39:31 -04:00
Kibana Machine 91db2f0fb4
[Security Solution] Add Windows and macOs option to dropdown for creating Exceptions from scratch (#103404) (#103529)
Co-authored-by: Kevin Logan <56395104+kevinlog@users.noreply.github.com>
2021-06-28 20:28:28 +00:00
Kibana Machine f6bd243406
[Search Sessions] Split tasks (#99967) (#103212)
* cancel the previous session

* split to 3 tasks

* fixes

* cancellation

* updated tests

* split out and improve jest tests

* cleanup previous session properly

* don't fail delete and cancel if item was already cleaned up

* test

* test

* ignore resource_not_found_exception when deleting an already cleared \ expired async search

* jest

* update jest

* api int

* fix jest

* testssss

* Code review @dosant

* types

* remove any

* Fix merge

* type

* test

* jest

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

Co-authored-by: Liza Katz <lizka.k@gmail.com>
Co-authored-by: Liza K <liza.katz@elastic.co>
2021-06-28 20:26:15 +00:00
Kibana Machine f8d131f035
Update jest.sh file to strip leading './' dir (#103507) (#103528)
Co-authored-by: Constance <constancecchen@users.noreply.github.com>
2021-06-28 20:25:40 +00:00
Kibana Machine b3c920d293
[Canvas] Improvements to datasource expressions including SQL parameter support and array leniency (#99549) (#103527)
* Remove es sql strategy from behind Labs project, remove legacy essql code, remove last spot of legacy elasticsearch client from canvas

* clean up test

* fix es field test

* remove comment

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

Co-authored-by: Poff Poffenberger <poffdeluxe@gmail.com>
2021-06-28 16:23:18 -04:00
Kibana Machine a8f3ef1a5b
[APM] Invert tint fraction after polished upgrade (#103439) (#103523)
Closes #103061. We use polished.tint() in several places to have a subdued highlight for an element. With the polished upgrade to 3.x from several weeks ago came a bug fix for tint() that applied the tint fraction in a different way. The fix for us to invert those fractions (eg 0.1 becomes 0.9).

Co-authored-by: Dario Gieselaar <dario.gieselaar@elastic.co>
2021-06-28 20:10:12 +00:00
Kibana Machine 57038168f0
[APM] Support records in strict_keys_rt (#103391) (#103524)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

Co-authored-by: Dario Gieselaar <dario.gieselaar@elastic.co>
2021-06-28 16:07:17 -04:00
Kibana Machine 6ad84e709f
Fix 404 error on deleted rule alert view (#103491) (#103522)
Co-authored-by: Dmitry Shevchenko <dmshevch@gmail.com>
2021-06-28 16:03:05 -04:00
Tiago Costa 0b288bf84d
skip flaky suite (#100968) 2021-06-28 20:56:47 +01:00
Tiago Costa bbdf550972
skip flaky suite (#103538) 2021-06-28 20:49:16 +01:00
Kibana Machine 9836bc535b
Add @storybook/testing-react (#103004) (#103518)
Co-authored-by: Nathan L Smith <nathan.smith@elastic.co>
2021-06-28 15:42:35 -04:00
Kibana Machine c410c2faef
[Query] Remove es query dependency on format.convert (#103174) (#103423)
* remove es query dependency on format.convert

* fix types

* types

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

Co-authored-by: Liza Katz <lizka.k@gmail.com>
Co-authored-by: Liza K <liza.katz@elastic.co>
2021-06-28 19:32:46 +00:00
Larry Gregory 5a84eb57ef
[7.x] Role Management: improve editing experience for DLS queries (#99977) (#103513)
* Role Management: improve editing experience for DLS queries (#99977)

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
# Conflicts:
#	x-pack/plugins/security/public/management/roles/roles_management_app.tsx

* fix eslint error
2021-06-28 15:29:34 -04:00
Alison Goryachev 69fd3a3701
[ILM] Update API integration test (#103495) (#103515) 2021-06-28 15:09:52 -04:00
Yuliia Naumenko 02e4166405
[Alerting][Docs] Support enablement documentation. (#101457) (#103537)
* [Alerting][Docs] Support enablement documentation.

* additional docs

* fixed links

* Apply suggestions from code review

Co-authored-by: gchaps <33642766+gchaps@users.noreply.github.com>

* fixed common issues

* Apply suggestions from code review

Co-authored-by: gchaps <33642766+gchaps@users.noreply.github.com>

* fixed due to comments

* fixed TM health api page

* fixed TM health api page 2

* Apply suggestions from code review

Co-authored-by: ymao1 <ying.mao@elastic.co>
Co-authored-by: Mike Côté <mikecote@users.noreply.github.com>

* Apply suggestions from code review

Co-authored-by: Mike Côté <mikecote@users.noreply.github.com>
Co-authored-by: ymao1 <ying.mao@elastic.co>

* fixed due to the comments

* fixed due to the comments

* fixed experimental flag

* fixed due to the comments

* Apply suggestions from code review

Co-authored-by: ymao1 <ying.mao@elastic.co>

* Update docs/user/alerting/alerting-troubleshooting.asciidoc

Co-authored-by: ymao1 <ying.mao@elastic.co>

* fixed due to the comments

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: gchaps <33642766+gchaps@users.noreply.github.com>
Co-authored-by: ymao1 <ying.mao@elastic.co>
Co-authored-by: Mike Côté <mikecote@users.noreply.github.com>

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: gchaps <33642766+gchaps@users.noreply.github.com>
Co-authored-by: ymao1 <ying.mao@elastic.co>
Co-authored-by: Mike Côté <mikecote@users.noreply.github.com>
2021-06-28 12:05:26 -07:00
Alexey Antonov 98c5543866
[7.x] [TSVB] Fix references to the index pattern are not embedded when exporting a saved object (#103255) (#103508)
* [TSVB] Fix references to the index pattern are not embedded when exporting a saved object (#103255)

* [TSVB] Importing a dashboard with only TSVB viz on another space, breaks the dashboard

Closes: #103059

* move index-pattern to constant

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

* fix CI

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-06-28 14:56:50 -04:00
Kibana Machine b92ce4d7d4
Observability side navigation for cases and alerts (#102556) (#103511)
Co-authored-by: Nathan L Smith <nathan.smith@elastic.co>
2021-06-28 14:53:24 -04:00
Greg Thompson db2c8c3b20
Upgrade EUI to v34.5.1 (#103297) (#103509)
* eui to 34.5.0

* snapshot updates

* Fix some page layouts

* eui to 34.5.1

Co-authored-by: cchaos <caroline.horn@elastic.co>

Co-authored-by: cchaos <caroline.horn@elastic.co>
2021-06-28 14:38:59 -04:00
Melissa Alvarez 0faaada551
[ML] Data Frame Analytics creation wizard: ensure included fields table updates correctly (#103191) (#103510)
* fix includes table rerender loop

* remove unnecessary comment
2021-06-28 14:34:28 -04:00
Kibana Machine bd7e1d6d2d
[Security solution][Endpoint] Get os name from host.os.name when agent type endpoint (#103450) (#103506)
* When type endpoint gets os type from os name instead of os family

* Allow users add event filters only for endpoint events

* Fixes error with wrong map function

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

Co-authored-by: David Sánchez <davidsansol92@gmail.com>
2021-06-28 13:50:38 -04:00
Kibana Machine 1da8a0e7c9
Result settings: Fix restore defaults copy (#103413) (#103505)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

Co-authored-by: Constance <constancecchen@users.noreply.github.com>
2021-06-28 13:44:00 -04:00
Kibana Machine 0c0e0b7b60
[Security Solution][Endpoint] The refresh button triggers always a refresh action (#103118) (#103502)
* Triggers search even if the query hasn't changed

* Add await on async function call

* refactor, use forceSearch store flag instead of new actin type to force search

* fix error when refreshing trusted apps

* Fix ts-error by adding ts-ignore '{ type: "LoadingResourceState"; previousState: ImmutableObject<UninitialisedResourceState> | ImmutableObject<LoadingResourceState<EventFiltersListPageData, ServerApiError>> | ImmutableObject<...> | ImmutableObject<...>; }' is not assignable to type 'ImmutableObject<{ forceRefresh: boolean; }>'.
        Object literal may only specify known properties, and 'type' does not exist in type 'ImmutableObject<{ forceRefresh: boolean; }>'

Co-authored-by: David Sánchez <davidsansol92@gmail.com>
2021-06-28 13:34:12 -04:00
Kibana Machine 5b0be93cff
[App Search] Fixed Documents view for Editor and Analyst roles (#103113) (#103204)
* Updated search-ui version

1.6.0 adds the ability to authenticate without a search key, which
we need for this fix.

* Updated Documents page to not use a search key

This change updates the page to rely on basic authentication rather
than a search key.

As part of that, we needed to create a proxy endpoint for search-ui
to post to, rather than going directly to the ent-search API.

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

Co-authored-by: Jason Stoltzfus <jastoltz24@gmail.com>
2021-06-28 17:23:40 +00:00
Kibana Machine c13c32af4b
[Detections] Adds automatic updating for Prebuilt Security Detection Rules package (#101846) (#103366)
* Automatically install and update the security_detection_engine package
* Remove security_detection_engine from required Fleet packages
* Update fleet package-registry image
* Add sha256: to the distribution package
* Use distribution from https://beats-ci.elastic.co/job/Ingest-manager/job/release-distribution/152
* Change fleet required packag
* Fix bad merge
* Update rules to 0.13.1 package
* Fix NOTICE.txt

Co-authored-by: Ross Wolf <31489089+rw-access@users.noreply.github.com>
2021-06-28 17:13:25 +00:00
Kibana Machine ebe1f7c95d
chore(NA): moving @kbn/spec-to-console into bazel (#103470) (#103498)
* chore(NA): moving @kbn/spec-to-console into bazel

* chore(NA): fix licenses

Co-authored-by: Tiago Costa <tiagoffcc@hotmail.com>
2021-06-28 13:08:28 -04:00
Kibana Machine 7d88647c79
[Security Solution][Endpoint] Refresh action and comments on the Case Details view when Isolation actions are created (#103160) (#103492)
* Expose new Prop from `CaseComponent` that exposes data refresh callbacks
* Refresh case actions and comments if isolation was created successfully

Co-authored-by: Paul Tavares <56442535+paul-tavares@users.noreply.github.com>
2021-06-28 12:45:39 -04:00
Ece Özalp a526dcb62a
[Security Solution] adds wrapSequences method (RAC) (#102106) (#103490)
adds wrapSequences method
2021-06-28 12:36:42 -04:00
Kibana Machine 2998d9c971
Add warning toast when server.publicBaseUrl not configured correctly (#85344) (#103489)
Co-authored-by: Josh Dover <1813008+joshdover@users.noreply.github.com>
2021-06-28 12:27:54 -04:00
Alexey Antonov 4237e7f184
Adds a known issue section to the 7.13.0 release notes (#103400)
* Adds a known issue section to the 7.13.0 release notes

* Update docs/CHANGELOG.asciidoc

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

* Update docs/CHANGELOG.asciidoc

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

* Update CHANGELOG.asciidoc

* Update CHANGELOG.asciidoc

Co-authored-by: Stratoula Kalafateli <stratoula1@gmail.com>
Co-authored-by: Kaarina Tungseth <kaarina.tungseth@elastic.co>
2021-06-28 19:18:14 +03:00
Kibana Machine b6943f9295
[Exploratory view] Update types names (#103214) (#103483)
Co-authored-by: Shahzad <shahzad.muhammad@elastic.co>
2021-06-28 11:59:36 -04:00
Kibana Machine b3cadd2ad4
Adding tooltip to rules that are disabled due to license (#103295) (#103481)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

Co-authored-by: ymao1 <ying.mao@elastic.co>
2021-06-28 11:52:31 -04:00
Kibana Machine beb19a4728
sanitize drilldown (#103299) (#103476)
Co-authored-by: Joe Reuter <johannes.reuter@elastic.co>
2021-06-28 15:34:44 +00:00
Stratoula Kalafateli 08e97fa729
Update TSVB docs with guidelines on how to group by multiple fields (#103224) (#103501)
* Update TSVB FAQ section with guidelines on how to group by multiple fields

* Apply text suggestion
2021-06-28 08:21:39 -07:00
Kibana Machine dfda99b4e6
Remove post-installation redirect for integrations (#103179) (#103473)
When installation integrations via the browse -> add integration flow in
the integrations UI, we will no longer redirect the user back to the
integration details page.

Closes #100978

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

Co-authored-by: Kyle Pollich <kyle.pollich@elastic.co>
2021-06-28 10:18:19 -04:00
Dmitry Shevchenko 61dd3dbde2
Fix "Deleted rule" badge is not displayed if 'Rule Name' contains more than 55 words (#103164) (#103462) 2021-06-28 08:15:56 -04:00
Kibana Machine 48638163ce
[Lens] Improve pie suggestions (#102755) (#103461)
Co-authored-by: Joe Reuter <johannes.reuter@elastic.co>
2021-06-28 08:11:04 -04:00
Liza Katz 67ce4861eb
[Query] Use a minimal index pattern interface for es query (#102364) (#103453)
* Move JSON utils to utils package

* Imports from tests

* delete

* split package

* docs

* test

* test

* imports

* minimal index pattern

* move some functions out and use miniaml ip in all es-kuery

* docs

* docs

* rename

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
# Conflicts:
#	docs/development/plugins/data/public/kibana-plugin-plugins-data-public.iindexpattern.md
#	src/plugins/data/public/public.api.md
2021-06-28 07:05:55 -04:00
Constance aa608ff32f
[Enterprise Search] Test coverage pass (#103406) (#103433)
* Do not collect code coverage on test_helpers

Note:  some test helpers are no longer being used but might be some day - e.g., shallowWithIntl will be used on the beta badge

* Fix uncovered type line

- since we're not iterating over productNames, no need for it to be an array - it can be written more clearly in string union format

* Fix branch coverage on index.tsx

- Since KibanaLogic is setting `|| {}` fallbacks in any case, I've opted to remove them in this file and let fallbacks be handled there

- Fixed typing to make it clear plugins can be undefined (i.e., disabled/optional, etc) in props + reorganize w/ comments

- KibanaValues requires an Omit to override props types

* Crawler DomainsTable test coverage/improvements

- Fix test failing locally due to timezones by increasing the timezone offset

- Cover missing branch line by adding a domain with no `lastCrawl`

- Remove unnecessary extra beforeEach with dupe re-shallow/mounts

- move getTable helper to its most relevant block (it's not being used in the generic column content checks, only in the actions column suite)

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
# Conflicts:
#	x-pack/plugins/enterprise_search/public/applications/app_search/components/crawler/components/domains_table.test.tsx
2021-06-28 03:00:01 -04:00
Constance fd4f0db030
[App Search] Success toast polish pass (#103410) (#103432)
* Fix toasts rerendering/resetting between page navigations + z-index issues

- note: I opted to delete the `<Callouts>` component in favor of just reverting it to the old `<FlashMessages>`, now that FlashMessages is no longer responsible for toasts

* Update engine creation success messages
- to use a toast instead of a callout
- update copy to match EUI guidelines

* Update engine deletion success message
- to use a toast instead of a callout
- update copy to match EUI guidelines

* Update source engines add/delete success messages
- to use a toast instead of a callout
- update copy to match EUI guidelines

* Update crawler domain delete message
- to use a toast instead of a callout
- update copy to match EUI guidelines

* Update API key create/update/delete sucess messages
- to use a toast instead of a callout
- update copy to match EUI guidelines

* Update curations delete success message
- to use a toast instead of a callout
- update copy to match EUI guidelines

* Update results settings success message
- to use a toast instead of a callout
- update copy to match EUI guidelines

* Update relevance tuning success/reset messages
- to use a toast (+ toast message) instead of a callout
- update copy to match EUI guidelines

* Update document deletion success message
- to use a toast instead of a callout (+ split additional text)
- update copy to match EUI guidelines

* Update role mappings create/update/delete success messages
- to use a toast instead of a callout
- update copy to match EUI guidelines

* Run i18n_check --fix

- per localization team guidelines - strings that have been changed should get deleted/scheduled to be re-translated

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
# Conflicts:
#	x-pack/plugins/enterprise_search/public/applications/app_search/components/crawler/crawler_overview_logic.test.ts
#	x-pack/plugins/enterprise_search/public/applications/app_search/components/crawler/crawler_overview_logic.ts
2021-06-28 02:33:33 -04:00
Kibana Machine 5fbe1db118
Role mappings: remove deprecated reset copy (#103411) (#103431)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

Co-authored-by: Constance <constancecchen@users.noreply.github.com>
2021-06-28 02:33:23 -04:00
Kibana Machine fe3ea8ed1f
[Fleet] Add a message when log collection is disabled on the log details page (#103166) (#103427)
Co-authored-by: Nicolas Chaulet <nicolas.chaulet@elastic.co>
2021-06-27 23:31:49 -04:00
Peter Pisljar c08ffb74b5
switching to peggy (#103169) (#103420) 2021-06-27 04:27:13 -04:00