Commit graph

41672 commits

Author SHA1 Message Date
Anton Dosov 99e7c9058e
[Index Patterns] Cover field editor with a11y tests (#101888) (#102074) 2021-06-14 12:44:36 -04:00
Kibana Machine 2c130bb8df
[Uptime] Align synthetics report types (#101855) (#102071)
Co-authored-by: Shahzad <shahzad.muhammad@elastic.co>
2021-06-14 12:03:58 -04:00
James Gowdy ef1e110b7f
[ML] Switching to new datafeed preview (#101780) (#102068)
* [ML] Switching to new datafeed preview

* fixing wizard test button

* adding schema validator

* fixing tests

* adding check for empty detectors list

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
# Conflicts:
#	x-pack/plugins/ml/public/application/jobs/components/custom_url_editor/utils.js
2021-06-14 11:53:42 -04:00
Kibana Machine aa95a814f2
[Security Solution][Endpoint] Actions Log API (#101032) (#102064)
* WIP

add tabs for endpoint details

* fetch activity log for endpoint

this is work in progress with dummy data

* refactor to hold host details and activity log within endpointDetails

* api for fetching actions log

* add a selector for getting selected agent id

* use the new api to show actions log

* review changes

* move util function to common/utils

in order to use it in endpoint_hosts as well as in trusted _apps

review suggestion

* use util function to get API path

review suggestion

* sync url params with details active tab

review suggestion

* fix types due to merge commit

refs 3722552f73

* use AsyncResourseState type

review suggestions

* sort entries chronologically with recent at the top

* adjust icon sizes within entries to match mocks

* remove endpoint list paging stuff (not for now)

* fix import after sync with master

* make the search bar work (sort of)

this needs to be fleshed out in a later PR

* add tests to middleware for now

* use snake case for naming routes

review changes

* rename and use own relative time function

review change

* use euiTheme tokens

review change

* add a comment

review changes

* log errors to kibana log and unwind stack

review changes

* search on two indices

* fix types

* use modified data

* distinguish between responses and actions and respective states in UI

* use indices explicitly and tune the query

* fix types after sync with master

* fix lint

* do better types

review suggestion

* add paging to API call

* add paging info to redux store for activityLog

* decouple paging action from other API requests

* use a button for now to fetch more data

* add index to fleet indices

else we get a type check error about the constant not being exported correctly
from `x-pack/plugins/fleet/common/constants/agent`

* add tests for audit log API

* do semantic paging from first request

* fix ts error

review changes

* add document id and total to API

review suggestions

* update test

* update frontend to consume the modified api correctly

* update mock

* rename action

review changes

* wrap mock into function to create anew on each test

review changes

* wrap with schema.maybe and increase page size

review changes

* ignore 404

review changes

* use i18n

review changes

* abstract logEntry component logic

review changes

* move handler logic to a service

review changes

* update response object

review changes

* fix paging to use 50 as initial fetch size

* fix translations and move custom hook to component file

review changes

* add return type

review changes

* update default value for page_size

review changes

* remove default values

review changes

https://github.com/elastic/kibana/tree/master/packages/kbn-config-schema#schemamaybe

https://github.com/elastic/kibana/tree/master/packages/kbn-config-schema#default-values

* fix mock data

refs 1f9ae70194

* add selectors for data

review changes

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

Co-authored-by: Ashokaditya <am.struktr@gmail.com>
2021-06-14 11:51:23 -04:00
Kibana Machine 02bc7931be
[APM] Display automatic deployment annotations correctly (#102020) (#102062)
Co-authored-by: Dario Gieselaar <dario.gieselaar@elastic.co>
2021-06-14 11:32:40 -04:00
Kibana Machine 50f382f35c
[ML] Functional tests - stabilize alerting flyout test (#102030) (#102056)
This PR stabilizes and re-activates the ML alerting flyout test suite.

Co-authored-by: Robert Oskamp <robert.oskamp@elastic.co>
2021-06-14 11:01:28 -04:00
Gidi Meir Morris 3c4e70b074
[Task Manager] adds capacity estimation to the TM health endpoint (#100475) (#102054)
Adds Capacity Estimation to the Task Manager Health Endpoint.
Below is a diagram depicting what information we use to estimate the varying capacity variables.

Please use the user facing docs to understand how it fits together. If the docs aren't clear enough - make a review comment and I'll clarify in the docs.
2021-06-14 10:57:17 -04:00
Kibana Machine 15aaecf057
move the example app to be mounted in the developerExamples plugin instead of visible in navbar (#101464) (#102052)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

Co-authored-by: Jean-Louis Leysens <jloleysens@gmail.com>
2021-06-14 10:53:25 -04:00
Kibana Machine ccc120843c
Upgrade polished dependency (1.9.23.7.2, 4.0.54.1.3). (#101719) (#102051)
Co-authored-by: Aleh Zasypkin <aleh.zasypkin@gmail.com>
2021-06-14 10:41:27 -04:00
Vadim Dalecky b1c097552d
Management app locator (#101795) (#102049)
* feat: 🎸 create management app locator

* refactor: 💡 simplify management locator

* feat: 🎸 export management app locator from plugin contract

* feat: 🎸 improve share plugin exports

* test: 💍 fix test mock

* test: 💍 adjust test mocks

* Update src/plugins/management/public/plugin.ts

Co-authored-by: Tim Roes <mail@timroes.de>

* Update src/plugins/management/public/types.ts

Co-authored-by: Tim Roes <mail@timroes.de>

* Update src/plugins/management/public/types.ts

Co-authored-by: Tim Roes <mail@timroes.de>

* Update src/plugins/management/server/plugin.ts

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Tim Roes <mail@timroes.de>

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Tim Roes <mail@timroes.de>
2021-06-14 10:26:58 -04:00
Kibana Machine d700291621
[Uptime] Add owner and description properties to Uptime's kibana.json (#101963) (#102041)
Co-authored-by: Shahzad <shahzad31comp@gmail.com>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

Co-authored-by: Justin Kambic <justin.kambic@elastic.co>
Co-authored-by: Shahzad <shahzad31comp@gmail.com>
2021-06-14 09:40:43 -04:00
Kibana Machine 45ef7baf83
[Security solution][Endpoint] Removes zip compression when creating artifacts (#101379) (#102033)
* Removes zlib compression when creating artifacts. Also fixes related unit tests and removes old code

* Replaces artifact in new manifest using the ones from fleet client with zlip compression

* Fixes create_policy_artifact_manifest pushArtifacts missing new manifest. Also fixes unit tests

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

Co-authored-by: David Sánchez <davidsansol92@gmail.com>
2021-06-14 08:33:04 -04:00
Maja Grubic df392554c3
[Discover] Deangularization of search embeddable (#100552) (#102027)
* [Discover] Render empty embeddable

* First version of grid embeddable

* More search embeddable

* Almost stable version

* Fixing typescript errors

* Fixing filtering and sorting

* Add data-shared-item to DiscoverGridEmbeddable

* Trigger rerender when title changes

* Fixing incorrectly touched files

* Remove search_embeddable

* Remove lodash

* Fixing imports

* Minor fixes

* Removing unnecessary files

* Minor fix

* Remove unused import

* Applying PR comments

* Applying PR comments

* Removing search embeddable

* Fix missing import

* Addressing PR comments

* Do not memoize saved search component

* Applying Matthias's suggestion

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
# Conflicts:
#	api_docs/deprecations.mdx

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-06-14 08:30:53 -04:00
Stratoula Kalafateli 4f3041de79
[Dashboard]: Fixes disabled viz filter is applied (#101859) (#102031)
* Fixes filter is applied even if is disabled on a dashboard

* Fix 18n problem

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

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-06-14 08:06:47 -04:00
Tiago Costa 81a3ef5f8d
skip flaky suite (#100438) 2021-06-14 12:52:51 +01:00
Kibana Machine 1a8ad6879c
[Fleet] Adjustments to the "Add agent" flyout (#101576) (#101919)
* updated add agent flyout buttons

* move close button to left

* added new optional prop for the add agent flyout and factored out a component from the index.tsx file

* quite a big refactor, moved the agent policy authentication to own component and reused in two places

* fixed layout on view where policy was not selected, also fixed a render cycle

* removed unnecessary filter

* move handler to function body instead of in JSX

* remove unused i18n

* added jest test for agent enrollment flyout steps behaviour

* fix issues after master merge

* Fix bad import in type file

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

Co-authored-by: Jean-Louis Leysens <jloleysens@gmail.com>
2021-06-14 10:24:00 +00:00
Tyler Smalley c272bdbc25
Revert: [7.x] [FTR][CI] Use default distribution for all tests (#102019)
* Revert "[FTR] Use importExport for saved_object/basic archive (#100244) (#102016)"

This reverts commit 9851b7bcfa.

* Revert "[7.x] [FTR][CI] Use default distribution for all tests (#94968) (#101118)"

This reverts commit 73225daa87.
2021-06-13 23:29:03 -07:00
Tyler Smalley 9851b7bcfa
[FTR] Use importExport for saved_object/basic archive (#100244) (#102016)
Signed-off-by: Tyler Smalley <tyler.smalley@elastic.co>
2021-06-13 01:12:38 -04:00
Tyler Smalley 73225daa87
[7.x] [FTR][CI] Use default distribution for all tests (#94968) (#101118)
* [FTR][CI] Use default distribution for all tests (#94968)
* [FTR] Use importExport for saved_object/basic archive (#100244)

Signed-off-by: Tyler Smalley <tyler.smalley@elastic.co>
2021-06-12 09:53:10 -07:00
Tiago Costa e41594ec5b
skip flaky suite (#94043) 2021-06-12 16:08:59 +01:00
Tyler Smalley 7b476b7e38 skip flaky suite (#102012) 2021-06-12 06:49:30 -07:00
Kibana Machine 00cf95cdc0
[esArchive] Persists updates for management/saved_objects/* (#101992) (#102011)
Same as #101950 - these archives are causing issues with a non-oss build https://github.com/elastic/kibana/issues/101654

Last remaining fix for https://github.com/elastic/kibana/pull/101118

Signed-off-by: Tyler Smalley <tyler.smalley@elastic.co>

Co-authored-by: Tyler Smalley <tyler.smalley@elastic.co>
2021-06-12 01:50:36 -04:00
Matthew Kime 36431d0d1e
[Index patterns] Field editor example app (#100524) (#102010)
* add example app
2021-06-11 23:40:40 -04:00
Kibana Machine 1f52dd0384
remove unnecessary hack (#101909) (#101993)
Co-authored-by: Mikhail Shustov <restrry@gmail.com>
2021-06-11 15:23:00 -04:00
Tyler Smalley 32b7329c62 skip flaky suite (#101449) 2021-06-11 12:18:26 -07:00
Kibana Machine 3fe8ac9a50
[Exploratory View] Use human readable formats (#101520) (#101989)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

Co-authored-by: Shahzad <shahzad.muhammad@elastic.co>
2021-06-11 08:14:29 -04:00
Michael Dokolin f09704df30
[Expressions] Refactor expression functions to use observables underneath (#100409) (#101988) 2021-06-11 06:00:14 -04:00
Tyler Smalley 5c18bedd49
[esArchives] Persist migrated Kibana archives (#101951)
Signed-off-by: Tyler Smalley <tyler.smalley@elastic.co>
2021-06-10 20:47:22 -07:00
Kibana Machine aaa983ea2a
[kbnArchiver] fix save to non-existent file (#101974) (#101981)
Co-authored-by: spalger <spalger@users.noreply.github.com>

Co-authored-by: Spencer <email@spalger.com>
Co-authored-by: spalger <spalger@users.noreply.github.com>
2021-06-10 23:22:55 -04:00
ymao1 edad104ca4
[Alerting][Docs] Combine rule creation and management pages (#101498) (#101979)
* Combining rule management stuff into single page

* Cleaning up image widths and header sizes

* Adding in placeholder pages

* Adding in placeholder pages

* Apply suggestions from code review

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

* PR and test fixes

* Apply suggestions from code review

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

* PR fixes

* PR fixes

Co-authored-by: gchaps <33642766+gchaps@users.noreply.github.com>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
# Conflicts:
#	docs/user/monitoring/kibana-alerts.asciidoc
2021-06-10 22:14:56 -04:00
Kibana Machine 4e0900282d
[Enterprise Search] Add owner and description properties to kibana.json (#101957) (#101978)
* [Enterprise Search] Add owner and description properties to kibana.json

Adds owner and description properties to kibana.json

* Reorder to match other plugins

Both others have the props at the end of the file:

https://github.com/elastic/kibana/blob/master/src/plugins/bfetch/kibana.json

Also removes redundant prefix from description

* Copy change

Co-authored-by: Constance <constancecchen@users.noreply.github.com>

Co-authored-by: Constance <constancecchen@users.noreply.github.com>

Co-authored-by: Scotty Bollinger <scotty.bollinger@elastic.co>
Co-authored-by: Constance <constancecchen@users.noreply.github.com>
2021-06-10 22:08:51 -04:00
Karen Metts 6601c7269d
[DOCS] Update release notes with known issue (#101980) (#101983)
Co-authored-by: Lisa Cawley <lcawley@elastic.co>
2021-06-10 21:52:23 -04:00
Kibana Machine a6bd1ec036
[APM] Fleet support for merging input.config values with other nested properties in the policy input (#101690) (#101955)
* [APM] Improvments in the APM fleet integration (#95501)

* added unit test and line comment

* fixes eslint issues

Co-authored-by: Oliver Gupte <ogupte@users.noreply.github.com>
2021-06-10 23:14:28 +00:00
Lisa Cawley f84b9d022e
[DOCS] Fixes terminology in Stack Monitoring:Kibana alerts (#101696) (#101972) 2021-06-10 16:10:42 -07:00
Kibana Machine 5a2516a77a
[Fleet] Fix fleet server collector in case settings are not set (#101752) (#101960)
Co-authored-by: Nicolas Chaulet <nicolas.chaulet@elastic.co>
2021-06-10 22:41:06 +00:00
Kibana Machine d0188d62f7
[Workplace Search] Add Account Settings page imported from Security plugin (#99791) (#101930)
* Copy lazy_wrapper and suspense_error_boundary from Spaces plugin

These components are needed to enable async loading of Security components into Enterprise Search.

The components are copied without any changes except for i18n ids, so it's easier to DRY out in the future if needed.

* Create async versions of personal_info and change_password components

* Create ui_api that allows to load Security components asuncronously

The patterns were mostly copied from Spaces plugin

* Make ui_api available through Security components's lifecycle methods

* Import Security plugin into Enterprise Search

* Add Security plugin and Notifications service to Kibana Logic file

* Export the required components from the Security plugin and
use them in the new AccountSettings component

* Update link to the Account Settings page

* Move getUiApi call to security start and pass core instead of getStartServices

* Simplify import of change_password_async component by providing...
... `notifications` and `userAPIClient` props in the security plugin

* Remove UserAPIClient from ui_api

It's not needed anymore since the components are initiated with this prop already passed

* Export ChangePasswordProps and PersonalInfoProps from account_management/index.ts

This makes it easier to import these props from outside the account_management folder

* Remove notifications service from kibana_logic

It is not needed anymore since we're initializing security components with notifications already provided

* Add UiApi to SecurityPluginStart interface

* Utilize index files for exporting Props types

* Replace Pick<...> with two separate interfaces as it doesn't work well with our docs

* Add a comment explaining why we're not loading async components through index file

Co-authored-by: Vadim Yakhin <yakhin.v@gmail.com>
2021-06-10 22:24:37 +00:00
Yuliia Naumenko c0d5412703
[Event Log] Populated rule.* ECS fields for alert events. (#101132) (#101952)
* [Event Log] Populated rule.* ECS fields for alert events.

* added mappings

* changed the params passing

* fixed tests

* fixed type checks

* used kibanaVersion for version event rule

* fixed typos

* fixed tests

* fixed tests

* fixed tests

* fixed tests

* fixed jest tests

* removed references

* removed not populated fields

* fixed tests

* fixed tests

* fixed tests
2021-06-10 17:43:18 -04:00
Alison Goryachev 026ab8b1ef
[Upgrade Assistant] Migrate to new page layout (#101691) (#101917)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-06-10 17:33:21 -04:00
Kibana Machine 35bf30a0b1
[Alerting][Docs] Moving alerting setup to its own page (#101323) (#101949)
* Restructuring main alerting page. Adding separate setup page

* Fixing links

* Moving suppressing duplicate notifications section

* Adding redirect

* Reverting redirect. Adding placeholder link

* Adding placeholder text

* Apply suggestions from code review

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

* Setup page PR fixes

* Alerting page PR fixes

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

Co-authored-by: gchaps <33642766+gchaps@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: gchaps <33642766+gchaps@users.noreply.github.com>
2021-06-10 17:20:36 -04:00
Spencer 34c5979eeb
[kbnArchiver] convert archive names to root-relative paths (#101839) (#101936)
* [kbnArchiver] convert archive names to root-relative paths

* ensure that newly multiline hooks are explicitly async

* missed a newly multiline hook

* fix exists check

* avoid extra lines by wrapping arrow body in {}

* one block more

* fix errant `name` variable

Co-authored-by: spalger <spalger@users.noreply.github.com>
# Conflicts:
#	test/api_integration/apis/kql_telemetry/kql_telemetry.ts
#	test/api_integration/apis/saved_objects/bulk_create.ts
#	test/api_integration/apis/saved_objects/bulk_get.ts
#	test/api_integration/apis/saved_objects/bulk_update.ts
#	test/api_integration/apis/saved_objects/create.ts
#	test/api_integration/apis/saved_objects/delete.ts
#	test/api_integration/apis/saved_objects/export.ts
#	test/api_integration/apis/saved_objects/find.ts
#	test/api_integration/apis/saved_objects/get.ts
#	test/api_integration/apis/saved_objects/import.ts
#	test/api_integration/apis/saved_objects/resolve.ts
#	test/api_integration/apis/saved_objects/resolve_import_errors.ts
#	test/api_integration/apis/saved_objects/update.ts
#	test/api_integration/apis/saved_objects_management/find.ts
#	test/api_integration/apis/saved_objects_management/get.ts
#	test/api_integration/apis/saved_objects_management/relationships.ts
#	test/api_integration/apis/shorten/index.js
#	test/api_integration/apis/stats/stats.js
#	test/api_integration/apis/suggestions/suggestions.js
#	test/functional/apps/discover/_discover.ts

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-06-10 16:54:10 -04:00
Kibana Machine 0074cf5088
remove uptime public API, it's not used. (#101799) (#101943)
Co-authored-by: Stacey Gammon <gammon@elastic.co>
2021-06-10 16:53:53 -04:00
Kibana Machine a13e4b5a97
[Enterprise Search] Create reusable Group and Engine assignment selectors (#101790) (#101933)
* Create AssignmentSelectors

These components will be used in both the Role Mapping and User flyouts to create and edit role mappings and users, respectively

* Implement AssignmentSelectors in components

Co-authored-by: Scotty Bollinger <scotty.bollinger@elastic.co>
2021-06-10 16:46:54 -04:00
Kibana Machine a538daae7c
[Enterprise Search] Refactor RoleMappingsTable to use EuiInMemoryTable (#101918) (#101940)
* Add shared actions component

Both tables use the same actions

* Refactor RoleMappingsTable to use EuiInMemoryTable

This is way better than the bespoke one I wrote and it comes with pagination for free

- Also fixes a typo in the i18n id

Co-authored-by: Scotty Bollinger <scotty.bollinger@elastic.co>
2021-06-10 16:29:42 -04:00
Caroline Horn 2acaa2375a
Fix AppContainer layout (#101793) (#101939)
* Fixing app_container
* Use EUI mixin  `euiHeaderAffordForFixed()` to maintain parity
* Adding `aria-busy` when `showSpinner`
* i18n for the loading aria-label
2021-06-10 16:27:58 -04:00
Kibana Machine 7a3f111059
[Uptime] Unskip alert functional test (#101562) (#101938)
Co-authored-by: Shahzad <shahzad.muhammad@elastic.co>
2021-06-10 16:12:28 -04:00
Christiane (Tina) Heiligers 20dca7252d
[7.x] Uses default distribution for rewriting ids integration test (#101813) (#101915) 2021-06-10 12:24:31 -07:00
Stacey Gammon d2ee3daa6d
Support owner and description attributes inside the Manifest file, use in API docs (#101786) (#101841)
* Support owner and description in manifest file, add to mdx output for each plugin

* Update parse_kibana_platform_plugin.ts

* edit a couple kibana.jsons

* Update write_plugin_mdx_docs.ts

* update api docs

* Update core server manifest plugin types

* update core docs

* Fix type_check failure

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-06-10 15:18:24 -04:00
Kibana Machine 91db79e446
[plugin cli] Remove settings argument from warnings log (#101824) (#101926)
The plugin CLI watches for warnings with a function taking the logger as
an argument.  There are two cases where we're passing a settings object
as the first argument, causing syntax errors instead of properly
logging.  This removes the extra argument.

Co-authored-by: Jonathan Budzenski <jon@budzenski.me>
2021-06-10 19:09:10 +00:00
Kibana Machine 93a25ee8ad
Update aggregation reference docs for 7.13 (#101913) (#101935)
* Update aggregation reference docs for 7.13

* Add more reference about filtered metrics

Co-authored-by: Wylie Conlon <william.conlon@elastic.co>
2021-06-10 10:53:54 -07:00
Tiago Costa 079b0b412b skip flaky suite (#95707) 2021-06-10 12:51:08 -05:00