Commit graph

15650 commits

Author SHA1 Message Date
Kibana Machine
ba736fc387
[App Search] Convert Search UI view to new page template + minor UI polish (#102813) (#102952)
* Convert Search UI view to use new page template

+ update tests TODO

* [UX polish] Add empty state to Search UI view

- On a totally new engine, all pages except this one* had an empty state, so per Davey's recommendations I whipped up a new empty state for this page

* Overview has a custom 'empty' state, analytics does not have an empty state

* Update router

* Fix bad merge conflict resolution

* [Polish] Copy feedback proposed by Davey

- see cbc3706223

Co-authored-by: Constance <constancecchen@users.noreply.github.com>
2021-06-22 14:08:07 -04:00
Ignacio Rivas
cc051ceda5
[CCR] Migrate to new page layout structure (#102507) (#102946)
* wip: start migrating views from ccr

* finish up migrating ccr pages to new nav layout

* Fix tests, linter errors and i18n strings

* remove todo

* Render loading and error states centered in screen without page title

* Keep loader going while we still setting the payload

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

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-06-22 13:48:28 -04:00
Kibana Machine
d16023c722
[App Search] Convert Analytics views to new page template (#102851) (#102945)
* Convert AnalyticsHeader to AnalyticsFilters

- it's basically the same component as before, but without the title section/log retention tooltip, since the header/title will be handled by the new page template

* Update AnalyticsLayout to use new page template

+ add new test_helper for header children

* Update breadcrumb behavior

- Set analytic breadcrumbs in AnalyticsLayout rather than AnalyticsRouter

- Update individual views to pass breadcrumbs (consistent with new page template API)

* Update router

Co-authored-by: Constance <constancecchen@users.noreply.github.com>
2021-06-22 13:45:25 -04:00
Kibana Machine
119a7a0d85
[Agent Packages] Extend 'contains' helper to work on strings (#102786) (#102943)
* Extend 'contains' helper to work on strings

* remove stray import

Co-authored-by: Andrew Stucki <andrew.stucki@elastic.co>
2021-06-22 13:36:46 -04:00
Kibana Machine
9070345f45
Wraps query in parentheses to avoid quering exception lists (#102612) (#102941)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

Co-authored-by: David Sánchez <davidsansol92@gmail.com>
2021-06-22 13:29:47 -04:00
Kibana Machine
ba95a28dd8
[Fleet] Add assets tab (#102517) (#102936)
* very wip

* added new assets screen
* added routes to new assets view on the package details view

* Finished styling the assets page layout, need to work on adding
links

* rather use EuiHorizontalRule

* only show the assets tab if installed

* Added hacky version of linking to assets.

* added comment about deprecation of current linking functionality

* added an initial version of the success toast with a link to the agent flyout

* First iteration of end-to-end UX working. Need to add a lot of tests!

* fixed navigation bug and added a comment

* added a lot more padding to bottom of form

* restructured code for clarity, updated deprecation comments and moved relevant code closer together

* added a longer form comment about the origin policyId

* added logic for handling load error

* refactor assets accordions out of assets page component

* slightly larger text in badge

* added some basic jest test for view data step in enrollment flyout

* adjusted sizing of numbers in badges again, EuiText does not know about size="l"

* updated size limits for fleet

* updated styling and layout of assets accordion based on original
designs

* remove unused EuiTitle

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

Co-authored-by: Jean-Louis Leysens <jloleysens@gmail.com>
2021-06-22 13:14:10 -04:00
Kibana Machine
b911f5df4f
Fixes onDestroy handler (#101959) (#102931)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

Co-authored-by: Corey Robertson <corey.robertson@elastic.co>
2021-06-22 17:01:56 +00:00
Kibana Machine
67305862c1
Handle element changing into a filter (#97890) (#102932)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

Co-authored-by: Corey Robertson <corey.robertson@elastic.co>
2021-06-22 12:59:56 -04:00
Kibana Machine
4b25b9d44e
[Lens] Clicking number histogram bar applies global filter instead of time filter (#102730) (#102924)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

Co-authored-by: Marco Liberati <dej611@users.noreply.github.com>
2021-06-22 16:32:21 +00:00
Kibana Machine
a10fb12f25
[Lens] Update dimension panel copy to suggested one (#102890) (#102925)
Co-authored-by: Marco Liberati <dej611@users.noreply.github.com>
2021-06-22 16:31:52 +00:00
Dario Gieselaar
623c77b50a
[7.x] Move ES aggregation types to src/core (#102597) (#102921) 2021-06-22 12:29:38 -04:00
Kibana Machine
330b0db03a
[Uptime] [Synthetics Integration] transition to monaco code editor (#102642) (#102920)
* update synthetics integration code editor

* add basic support for xml and javascript

* fix types

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

Co-authored-by: Dominique Clarke <doclarke71@gmail.com>
2021-06-22 12:22:34 -04:00
Kibana Machine
3f3bd5f945
increase chart switch width (#102520) (#102916)
Co-authored-by: Joe Reuter <johannes.reuter@elastic.co>
2021-06-22 11:55:35 -04:00
Kibana Machine
c8c48601a9
[ML] Functional tests - explicitly delete jobs after setupModule tests (#102882) (#102913)
This PR explicitly deletes the jobs created by the `setupModule` tests.

Co-authored-by: Robert Oskamp <robert.oskamp@elastic.co>
2021-06-22 15:41:14 +00:00
Kibana Machine
915e32a9ab
[Lens] Carry over filter extra fields with in incomplete state (#102509) (#102899)
* 🐛 Carry over filter extra fields with in incomplete state

* 👌 Integrated feedback

* 👌 Integrated feedback

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

Co-authored-by: Marco Liberati <dej611@users.noreply.github.com>
2021-06-22 10:21:32 -04:00
Kibana Machine
d6a4a50efa
added ability to filter in global search by "type:package" (#102754) (#102898)
Co-authored-by: Jean-Louis Leysens <jloleysens@gmail.com>
2021-06-22 10:16:44 -04:00
Kibana Machine
0c29844c42
[APM] Fleet: Introduce API for uploading source maps for RUM (#101623) (#102897)
* creating fleet source maps apis

* fixing ts issues

* fixing test

* fixing ts issue

* nests `rum` under `config.apm-server.value` within the package policy input

* refactoring and adding test

* removing unit test

* removing unused imports

* addressing PR comments

* addressing PR comments

* addressing PR comments

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

Co-authored-by: Cauê Marcondes <55978943+cauemarcondes@users.noreply.github.com>
Co-authored-by: Oliver Gupte <olivergupte@gmail.com>
2021-06-22 10:03:13 -04:00
Katrin Freihofner
de22956d00
Renamed button and dropdown items in headers (apm, logs, metrics and uptime) from alerts to rules (#100918) (#102893)
Co-authored-by: Jonathan Buttner <jonathan.buttner@elastic.co>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Christos Nasikas <christos.nasikas@elastic.co>
Co-authored-by: Jonathan Buttner <56361221+jonathan-buttner@users.noreply.github.com>
Co-authored-by: Steph Milovic <stephanie.milovic@elastic.co>

Co-authored-by: Jonathan Buttner <jonathan.buttner@elastic.co>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Christos Nasikas <christos.nasikas@elastic.co>
Co-authored-by: Jonathan Buttner <56361221+jonathan-buttner@users.noreply.github.com>
Co-authored-by: Steph Milovic <stephanie.milovic@elastic.co>
2021-06-22 09:24:48 -04:00
Christos Nasikas
fe2ef93611
[Cases] Add owner and description properties to kibana.json (#102707) (#102869) 2021-06-22 06:27:47 -04:00
Katrin Freihofner
6e07800bf2
Wording update for case settings, fixes #102462 (#102496) (#102867)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-06-22 06:26:27 -04:00
Kibana Machine
bf0ccb1033
[Metrics] Update ActionsMenu create alert styles (#102316) (#102862)
* [Metrics] Add divider in the actions menu
* [Metrics] Add color and icon to the alert link

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

Co-authored-by: Casper Hübertz <casper@elastic.co>
2021-06-22 06:13:18 -04:00
Kibana Machine
c735215051
unksip functional test (#102633) (#102860)
Co-authored-by: Joe Reuter <johannes.reuter@elastic.co>
2021-06-22 06:01:54 -04:00
Kibana Machine
a444091322
[Security solution][Endpoint] Removes 'none' compression as it not used anymore (#102767) (#102857)
* Removes 'none' compression as it not used anymore

* Revert type because none type is needed for the first time the artifact is created befor the compression

Co-authored-by: David Sánchez <davidsansol92@gmail.com>
2021-06-22 05:50:25 -04:00
Ignacio Rivas
db992d9da2
[License management] Migrate to new page layout (#102218) (#102856)
* start working on license management

* migrate permissions check to new layout

* refactor license expiration as a subtitle of the page header

* finish up working on page title

* Fix linter errors and update snapshots

* update method name

* CR changes

* update snapshots

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

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-06-22 05:47:27 -04:00
Stratoula Kalafateli
f252a9aa75
[Lens] Adds filter from legend in xy and partition charts (#102026) (#102852)
* WIP add filtering capabilities to XY legend

* Fix filter by legend on xy axis charts

* Filter pie and xy axis by legend

* create a shared component

* Add functional test

* Add functional test for pie

* Make the buttons keyboard accessible

* Fix functional test

* move function to retry

* Give another try

* Enable the rest od the tests

* Address PR comments

* Address PR comments

* Apply PR comments, fix popover label for alreadyformatted layers

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

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-06-22 03:38:25 -04:00
Constance
e265826389
[Workplace Search] Convert Sources pages to new page template (+ personal dashboard) (#102592) (#102843)
* Refactor PersonalDashboardLayout to more closely match new page template

- Remove references to enterpriseSearchLayout CSS (which will be removed in an upcoming PR)

- Prefer to lean more heavily on default EuiPage props/CSS/etc.

- Handle conditional sidebar logic in this layout rather than passing it in as a prop

- Update props & DRY concerns to more closely match WorkplaceSearchPageTemplate
  - e.g. isLoading & pageChrome (mostly for document titles)
  - make FlashMessage and readOnlyMode work OOTB w/o props)

* Convert Source subnav to EuiSideNav format

+ update PrivateSourcesSidebar to use EuiSIdeNav

* Update routers

- removing wrapping layouts, flash messages, chrome/telemetry

* Refactor SourceRouter into shared layout component

- Remove license callout, page header, and page chrome/telemetry

- NOTE: The early page isLoading behavior (lines 51-) is required to prevent a flash of a completely empty page (instead of preserving the layout/side nav while loading). We cannot let the page fall through to the route because some routes are conditionally rendered based on isCustomSource.

- FWIW: App Search has a similar isLoading early return with its Engine sub nav, and also a similar AnalyticsLayout for DRYing out repeated concerns/UI elements within Analytics subroutes.

* Convert all single source views to new page template

- Mostly removing isLoading tests
- NOTE: Schema page could *possibly* use the new isEmptyState/emptyState page template props, but would need some layout reshuffling

* Convert Add Source pages to conditional page templates

- Opted to give these pages their own conditional layout logic - this could possibly be DRY'd out

- There is possibly extra cleanup here on this file that could have been done (e.g. empty state, titles, etc.) in light of the new templates - but I didn't want to spend extra time here and went with creating as few diffs as possible

* Convert separate Organization Sources & Private Sources views to new page templates

+ fix Link to EuiButtonTo on Organization Sources view

* Update Account Settings with personal layout + write tests

+ add related KibanaLogic branch coverage

* [UX feedback] Do not render page headers while loading on Overview & Sources pages

* [PR feedback] Breadcrumb errors/fallbacks

* [Proposal] Update schema errors routing to better work with nav/breadcrumbs

- `exact` is required to make the parent schemas/ not gobble schema/{errorId}

- added bonus breadcrumb for nicer schema navigation UX

- No tests need to update AFAICT

* Ignore Typescript error on soon-to-come EUI prop
# Conflicts:
#	x-pack/plugins/enterprise_search/public/applications/workplace_search/views/content_sources/components/source_settings.tsx
2021-06-21 23:26:56 -04:00
Kibana Machine
86d5eeab4b
[Fleet] Correctly check for degraded status in agent healthbar (#102821) (#102842)
Co-authored-by: Nicolas Chaulet <nicolas.chaulet@elastic.co>
2021-06-21 23:23:24 -04:00
Kibana Machine
7f7ba0b560
[Fleet] Update final pipeline based on ECS event.agent_id_status (#102805) (#102832)
This updates the Fleet final pipeline added in #100973 to match the specification of
`event.agent_id_status` field as defined in ECS. The field was added to ECS in
https://github.com/elastic/ecs/pull/1454. Basically the values of the field were simplified
from what was originally proposed and implemented.

Co-authored-by: Andrew Kroh <andrew.kroh@elastic.co>
2021-06-21 20:49:52 -04:00
Kibana Machine
ebacdde0fe
[Security Solution][Exceptions] Fixes empty exceptions filter bug (#102583) (#102830)
Co-authored-by: Davis Plumlee <56367316+dplumlee@users.noreply.github.com>
2021-06-21 20:40:18 -04:00
Kibana Machine
d6df6595e3
[App Search] Convert Documents views to new page template + minor UI polish (#102807) (#102824)
* Convert Documents view to new page template

* [UI polish] Move empty state to top-level instead of showing full UI

- per Davey's previous approval

* [UX polish] Show loading indicator on initial documents page load

* Convert single Document detail view to new page template

* Update router

Co-authored-by: Constance <constancecchen@users.noreply.github.com>
2021-06-21 19:43:38 -04:00
Constance
ddb9688f7b
[App Search] Convert Settings & Credentials pages to new page template (#102671) (#102823)
* Convert Settings to new page template

+ add missing ability check around route

* Convert Credentials to new page template

+ add missing ability check around route

* [Tests refactor] DRY out repeated ability tests to a helper

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

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-06-21 19:24:04 -04:00
Kibana Machine
ed920362ed
[App Search] Engines Overview polish pass (#102778) (#102819)
* Split up engines vs. meta engines into separate panels

- per Davey's feedback from earlier UI passes

* DRY out manual header/spacing to reusable DataPanel component

+ update DataPanel icon typing to not error when passed a custom icon/svg

- kudos again to Davey for the component

* Typography tweaks

- Update DataPanel component to accept a custom titleSize (to maintain previous UI/sizing)

- Fix meta engines empty prompt title heading to follow heading levels + tweak sizing to not be larger than panel heading

* Set up new license CTA button for upcoming meta engines CTA

falls back to a documentation link! so fancy

* Update Enterprise Search Overview to use new license button

* Add new Meta Engines license upgrade CTA

- Reuse some copy from Meta Engines creation view
- Reuse DataPanel so visuals stay consistent + it looks similar to CTA on Enterprise Search Overview
- Update DataPanel to allow buttons to be responsive + conditionally load spacer between header & children

* Improve responsiveness of app when platinum license changes

Previously, routes/apps were going off the static data passed from the server which was only initialized once on page load. hasPlatinumLicense however changes dynamically and in real-time, removing the need for a hard page refresh.

I could have replaced all `canManageMetaEngine` flags with `isPlatinum && canManageEngines`, but I thought baking license checks into the main ability would be more scalable and potentially open the way to other license-based flags also being dynamic.

* [PR feedback] Typos in test names

Co-authored-by: Jason Stoltzfus <jastoltz24@gmail.com>

* Fix failing test

Missed updating the heading level

Co-authored-by: Jason Stoltzfus <jastoltz24@gmail.com>

Co-authored-by: Constance <constancecchen@users.noreply.github.com>
Co-authored-by: Jason Stoltzfus <jastoltz24@gmail.com>
2021-06-21 18:56:35 -04:00
Angela Chuang
eaa0bb9d1d
[SecuritySolution] Move manual test cases to Cypress (#100730) (#102818)
* add scenarios 1-3

* add tests for toggle full screen

* add tests for timeline pagination

* add tests for timeline correlation tab

* fix cypress tests

* add data-test-subj for timeline tabs content

* fix up

* fix flaky tests

* fix mark as favorite scenario

* fix flaky test

* fix flaky test

* fix flaky test

* refactors 'can be marked as favourite' test

* fixes test

* fixes typecheck issue

* refactors the pipe

* little fix

* mark as favourite refactor

* removes code that causes the flakiness

* apply the fix for 7.13 branch

* fix timeline api call

* fix timeline api call

* fix timeline api call

* fix syntax

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Gloria Hornero <snootchie.boochies@gmail.com>

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Gloria Hornero <snootchie.boochies@gmail.com>
2021-06-21 18:39:21 -04:00
Vadim Dalecky
032214799b
ILM locators (#102313) (#102814)
* feat: 🎸 add url service types

* refactor: 💡 move locator types into its own folder

* feat: 🎸 add abstract locator implementation

* feat: 🎸 implement abstract locator client

* feat: 🎸 add browser-side locators service

* feat: 🎸 implement locator .getLocation()

* feat: 🎸 implement navigate function

* feat: 🎸 implement locator service in /common folder

* feat: 🎸 expose locators client on browser and server

* refactor: 💡 make locators async

* chore: 🤖 add deprecation notice to URL generators

* docs: ✏️ add deprecation notice to readme

* feat: 🎸 create management app locator

* refactor: 💡 simplify management locator

* feat: 🎸 export management app locator from plugin contract

* feat: 🎸 implement ILM locator

* feat: 🎸 improve share plugin exports

* feat: 🎸 improve management app locator

* feat: 🎸 add useLocatorUrl React hook

* feat: 🎸 add .getUrl() method to locators

* feat: 🎸 migrate ILM app to use URL locators

* fix: 🐛 correct typescript errors

* Fix TypeScript errors in mock

* Fix ILM locator unit tests

* style: 💄 shorten import

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

Co-authored-by: Vadim Kibana <vadimkibana@gmail.com>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-06-21 18:14:36 -04:00
Kibana Machine
875af97828
chore(NA): moving @kbn/storybook into bazel (#102731) (#102806)
* chore(NA): moving @kbn/storybook into bazel

* chore(NA): add some typing changes

* chore(NA): rename typings file

* chore(NA): fix typescript configs to build storybooks

* chore(NA): fix eslint and typechecking

Co-authored-by: Tiago Costa <tiagoffcc@hotmail.com>
2021-06-21 17:25:18 -04:00
Kibana Machine
81dc27d7c3
[App Search] Convert Engine subnav and Engine Overview pages to new page template (#102679) (#102797)
* Update routers

- To facilitate this being broken up into multiple PRs, non-migrated views still get a wrapping layout

* Set up Engine subnav in EuiSideNav format

+ tweak CSS for new label - heads up that this will break the old nav, but will disappear as the pages get converted

* Convert Engine Overview pages to new page template

* [PR feedback] Code comment explaining side nav icon reorder

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

Co-authored-by: Constance <constancecchen@users.noreply.github.com>
2021-06-21 21:10:23 +00:00
Bhavya RM
57eac563cb
Test for role specific access to non-default space (#101653) (#102803) 2021-06-21 17:09:01 -04:00
Steph Milovic
d17a353fcf
[Observability] [Cases] Fix Cases navigation (#102429) (#102795) 2021-06-21 16:58:46 -04:00
Kibana Machine
650ee93be0
[Lens] Error on array values in math (#102371) (#102793)
* [Lens] Error on array values in math

* Update error messages

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

Co-authored-by: Wylie Conlon <william.conlon@elastic.co>
2021-06-21 16:48:21 -04:00
Kibana Machine
5b53bb207d
[QA] Changes the telemetry banner dismiss location (#102721) (#102792)
* change telemetry banner dismiss location

* use dismissBanner method instead

* Update _metricbeat_dashboard.js

* Update _maps.ts

* Update _maps.ts

* Update _metricbeat_dashboard.js

Co-authored-by: Marius Dragomir <marius-dr@users.noreply.github.com>
2021-06-21 16:39:36 -04:00
Kibana Machine
44b060cddf
[Alerting] Updating audit event terminology (#102263) (#102787)
* Updating audit terminology

* Fixing unit tests

* Updating audit docs

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

Co-authored-by: ymao1 <ying.mao@elastic.co>
2021-06-21 16:20:37 -04:00
Kibana Machine
7f836822e1
Convert EuiCards to non-shadowed defaults to avoid nested panel/shadows (#102680) (#102784)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

Co-authored-by: Constance <constancecchen@users.noreply.github.com>
2021-06-21 15:36:21 -04:00
Kibana Machine
9f1adeb786
[Workplace Search] Replace library interface with EUI (#102758) (#102776)
One of the Workplace Search components was using the 'react-beautiful-dnd' typing for it’s component. This PR relpaces it with the EUI equivalent.

Co-authored-by: Scotty Bollinger <scotty.bollinger@elastic.co>
2021-06-21 15:19:16 -04:00
Shahzad
177caad449
[Exploratory View] Mobile experience (#99565) (#102773)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Bryce Buchanan <bryce.buchanan@elastic.co>
Co-authored-by: Alexander Wert <alexander.wert@elastic.co>

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Bryce Buchanan <bryce.buchanan@elastic.co>
Co-authored-by: Alexander Wert <alexander.wert@elastic.co>
2021-06-21 15:16:23 -04:00
Mikhail Shustov
4ce951f2d1
[7.x] Cleanup outdated @elastic/elasticsearch client type errors (#101741) (#102747)
* Cleanup outdated @elastic/elasticsearch client type errors (#101741)

* fix errors and update comments in Core

* fix errors or update comments in Security plugin

* update spaces test

* update task_manager files

* update comments in monitoring plugin

* fix errors in update comments in security_solutions

* fix errors and update comments in data_enhanced

* update fleet code

* update infra code

* update comment in trigger_actions_ui

* update comment in lens

* update comments in ES-UI code

* update typings for search

* update monitoring

* remove outdated export
# Conflicts:
#	x-pack/plugins/infra/server/lib/alerting/inventory_metric_threshold/evaluate_condition.ts
#	x-pack/plugins/snapshot_restore/server/routes/api/snapshots.ts

* fix a result of wrong conflict resolution
2021-06-21 15:12:16 -04:00
Kibana Machine
ed5e1842d3
[App Search] Convert Engines overview & engine creation to new page template (#102677) (#102769)
* Convert Engine Creation page to new page template

+ simplify EuiForm/form to 1 level of nesting

* Convert Meta Engine Creation page to new page template

* Initial conversion of Engines overview to new page template

* Engines Overview: simplify loading & empty state to use new page template props

* Engines Overview: simplify header

- now that the header/actions, chrome/telemetry, & empty state etc. are all DRY'd out by the template, there's no need for a separate header component
- we can simply dry out the header action, which will shortly be removed with the 7.14 launch

- note: for empty state changes: mostly indenting, the new template automatically creates a subdued panel for us in empty state so no need to include one manually

* Fix broken test mocks

I definitely should not have been importing the index file I'm mocking, but why did this only break now?? :psyduck:

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

Co-authored-by: Constance <constancecchen@users.noreply.github.com>
2021-06-21 18:40:05 +00:00
Kibana Machine
36d94eeeaf
Adding refresh to ensure status is updated (#102742) (#102768)
Co-authored-by: Jonathan Buttner <56361221+jonathan-buttner@users.noreply.github.com>
2021-06-21 14:34:59 -04:00
Kibana Machine
fc063f1386
Fixes issue with undo/redo (#101954) (#102765)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

Co-authored-by: Corey Robertson <corey.robertson@elastic.co>
2021-06-21 18:17:11 +00:00
Kibana Machine
9d934af005
[Integrations UI] Add updated integrations subtitle (#102738) (#102766)
* Add updated integrations subtitle

* Fix header image declarations

* Use theme hook for dark mode setting

Co-authored-by: Kyle Pollich <kyle.pollich@elastic.co>
2021-06-21 18:14:49 +00:00
Alison Goryachev
aa2c8be223
[Ingest Node Pipelines] Remove default value for error_distance param (#102222) (#102763) 2021-06-21 14:13:50 -04:00
Kyle Pollich
989edf2b86
[Fleet + Integrations UI] Address UI Regressions in Fleet/Integrations (#102250) (#102759)
* Fix active tabs in integrations UI

Fixes #101771

* Remove duplicate base breadcrumb

Fixes #101785

* Fix i18n
2021-06-21 13:27:18 -04:00
Kibana Machine
04ae473c3a
[APM] Errors: Fix panels styles (#102734) (#102748)
Co-authored-by: Casper Hübertz <casper@elastic.co>
2021-06-21 12:48:47 -04:00
Kibana Machine
b702a61e86
[ML] Functional tests - stabilize module tests (#102708) (#102744)
This PR stabilizes the `setupModule` API tests by increasing the timeout for the jobs to finish.

Co-authored-by: Robert Oskamp <robert.oskamp@elastic.co>
2021-06-21 12:16:43 -04:00
Kibana Machine
4f99200ccd
[Fleet] Use docLinks service to link to the doc (#102660) (#102741)
Co-authored-by: Nicolas Chaulet <nicolas.chaulet@elastic.co>
2021-06-21 11:50:52 -04:00
Madison Caldwell
26ba4446dd
[RAC][Security Solution] Pull Gap Remediation out of search_after_bulk_create (#102104) (#102739)
* Modify threshold rules to receive a single date range tuple

* Modify threat match rules to receive a single date range tuple

* Modify custom query rules to receive a single date range tuple

* Fix up tests (partially)

* Change log message to indicate single tuple instead of array

* Bad test?

* Prevent max_signals from being exceeded on threat match rule executions

* Revert "Prevent max_signals from being exceeded on threat match rule executions"

This reverts commit ba3b2f7a382ef7c369f02c7939e1495f72d92bfe.

* Modify EQL rules to use date range tuple

* Modify ML rules to use date range tuple

* Fix ML/EQL tests

* Use dateMath to parse moments in ML/Threshold tests

* Add mocks for threshold test

* Use dateMath for eql tests
2021-06-21 11:26:58 -04:00
Kibana Machine
e6f8083f9f
[ML] Functional tests - remove duplicate archive load (#102701) (#102715)
This PR removes the duplicate load of the `event_rate_nanos` archive in the `data_nanos_job` test suite.

Co-authored-by: Robert Oskamp <robert.oskamp@elastic.co>
2021-06-21 12:55:57 +00:00
Kibana Machine
e845c0a31d
fix flakiness and change screenshot size to remove scroll (#102521) (#102717)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

Co-authored-by: Marius Dragomir <marius-dr@users.noreply.github.com>
2021-06-21 08:55:46 -04:00
Tiago Costa
f57de02432
skip flaky suite (#102722) 2021-06-21 12:27:44 +01:00
Søren Louv-Jansen
b4fe877b83
[APM] Show JVM tab for Java Otel agent (#102346) (#102710) 2021-06-21 07:24:58 -04:00
Tiago Costa
b1ac965b76
skip flaky suite (#102183) 2021-06-21 12:15:03 +01:00
Pierre Gayvallet
9cf01f1da5
[7.x] add isExportable SO export API (#101860) (#102698)
* add `isExportable` SO export API (#101860)

* add `isExportable` SO export API

* add warning when export contains excluded objects

* add FTR test

* fix API integration assertions

* lint

* fix assertions again

* doc

* update generated doc

* fix esarchiver paths

* use maps instead of objects

* SavedObjectsExportablePredicate is no longer async

* more docs

* generated doc

* use info instead of warning when export contains excluded objects

* try/catch on isExportable call and add exclusion reason

* add FTR test for errored objects

* log error if isExportable throws

* fix dataset for 7.x
2021-06-21 06:15:45 -04:00
Dario Gieselaar
b0c5b2f741
[7.x] [APM] Enforce span creation/naming for ... (#101856) (#102598) 2021-06-21 05:21:41 -04:00
Tyler Smalley
6977be0140
Revert "Revert: [7.x] [FTR][CI] Use default distribution for all tests (#102019) (#102580)
* Revert "Revert: [7.x] [FTR][CI] Use default distribution for all tests (#102019)"

This reverts commit c272bdbc25.

* [FTR] Stabilize SSLP functional tests (#102553)

* Removes spaces check, since spaces should always be available
* Disables Monitoring, SecuritySolutions, and Reporting in SSPL tests
until #102552 is completed

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

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-06-21 03:28:12 -04:00
Candace Park
bd9feb921d
[Security Solution][Endpoint][Host Isolation] Isolation status badge from alert details (#102274) (#102686) 2021-06-21 00:19:31 -04:00
Tiago Costa
3cfbe71203
[7.x] chore(NA): moving @kbn/ui-shared-deps into bazel (#101669) (#102666)
* chore(NA): moving @kbn/ui-shared-deps into bazel (#101669)

* chore(NA): moving @kbn/io-ts-utils into bazel

* chore(NA): moving @kbn/ui-shared-deps into bazel

* chore(NA): compelte working build for @kbn/ui-shared-deps

* chore(NA): solve eslint problems

* chore(NA): solve typechecking

* chore(NA): debugger changes

* chore(NA): update optimizer basic integration tests

* chore(NA): ship kbn/ui-shared-deps metrics.json from new location at shared_built_assets

* chore(NA): use correct ui-shared-deps metrics file location

* chore(NA): remove webpack bazel config

* chore(NA): implement improvements on webpack config

* chore(NA): remove extra comment

* chore(NA): try esbuild-loader minimizer

* Revert "chore(NA): try esbuild-loader minimizer"

This reverts commit bffc49aaae.

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
# Conflicts:
#	test/scripts/jenkins_build_kibana.sh

* chore(NA): last file containing old path for metrics.json file
2021-06-18 20:39:29 -04:00
Tiago Costa
116a4aa3da
skip flaky suite (#102366) 2021-06-18 23:36:02 +01:00
Kibana Machine
d3a2168cb7
[Workplace Search] remove or replace xs props for text on source connect view (#102663) (#102670)
* remove xs props for text on source connect view

* change more text sizes

Co-authored-by: Kuldeep M <crudetoaster@gmail.com>
2021-06-18 18:20:41 -04:00
Pablo Machado
b724ea2667
Enhance cases bulk deletion action dialog message (#101403) (#102658)
Differentiate the dialog message on the deletion of one item from the deletion of multiple items.
Simplifies CasesTableUtilityBar by handling the selection of multiple and single cases in the same way.
2021-06-18 13:30:15 -04:00
Candace Park
381e6983ee
[Security Solution][Endpoint][Host Isolation] Fixes bug where host isolation/unisolation works from alert details (#102581) (#102649) 2021-06-18 12:34:10 -04:00
Kibana Machine
c07f1f765a
[Logs UI] Add event.original fallback to message reconstruction rules (#102236) (#102639)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

Co-authored-by: Felix Stürmer <weltenwort@users.noreply.github.com>
2021-06-18 10:58:09 -04:00
Kibana Machine
013e6b4623
[ML] Remove blank job definition as it is unused and out-of-sync with Elasticsearch (#102506) (#102620)
This a companion to elastic/elasticsearch#74188.

This PR is functionally a no-op, as the removed method
was not called anywhere. But it is sensible to remove
it to prevent it being called in the future now that it
references fields that don't exist in Elasticsearch.

Co-authored-by: David Roberts <dave.roberts@elastic.co>
2021-06-18 08:20:24 -04:00
Kibana Machine
0e04be09f9
[Lens] Fix wrong error detection on transition to Top values operation (#102384) (#102611)
Co-authored-by: Marco Liberati <dej611@users.noreply.github.com>
2021-06-18 06:51:55 -04:00
Kibana Machine
ef5da0fa6c
[ML] Anomaly detection job custom_settings improvements (#102099) (#102609)
* [ML] Anomaly detection job custom_settings improvements

* filter improvements

* translations

* fixing types

* fixing tests

* one more test fix

* fixing bug with expanded row

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

Co-authored-by: James Gowdy <jgowdy@elastic.co>
2021-06-18 06:37:46 -04:00
Christos Nasikas
d9f209cd0a
[Cases] Route: Get all alerts attach to a case (#101878) (#102604)
Co-authored-by: Jonathan Buttner <jonathan.buttner@elastic.co>

Co-authored-by: Jonathan Buttner <jonathan.buttner@elastic.co>
2021-06-18 06:12:00 -04:00
Kibana Machine
e7f40c39f6
Fixes wrong list exception type when creating endpoint event filters list (#102522) (#102601)
Co-authored-by: David Sánchez <davidsansol92@gmail.com>
2021-06-18 05:41:43 -04:00
Shahzad
d08dafeb39
[7.x] [User Experience App] Use filters shared component (#101459) (#102545)
* [User Experience App] Use filters shared component (#101459)

Co-authored-by: Casper Hübertz <casper@formgeist.com>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

* update files

Co-authored-by: Casper Hübertz <casper@formgeist.com>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-06-18 05:18:07 -04:00
Kibana Machine
8586be5ee9
remove search bar that's not working yet (#102550) (#102596)
fixes elastic/kibana/issues/102469

Co-authored-by: Ashokaditya <am.struktr@gmail.com>
2021-06-18 04:38:04 -04:00
Kibana Machine
711da58afc
Migrated Ingest Node Pipeline Functional Tests to use test_user (#102409) (#102593)
* Used test user and added appropriate kibana privileges for Ingest Node Pipeline functional tests.

* Updated ingest pipelines test config to have read permissions in advanced settings.

* Updated test to account for the fact that advanced settings will be visible due to kibana permissions.

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

Co-authored-by: John Dorlus <silne.dorlus@elastic.co>
2021-06-18 01:26:17 -04:00
Kibana Machine
0ef60b4f19
[Maps] clean up feature editing name space to avoid conflicts with layer settings editing (#102516) (#102591)
* [Maps] clean up feature editing name space to avoid conflicts with layer settings editing

* update vector_source

* mvt_single_layer_vector_source udpates

* review feedback

Co-authored-by: Nathan Reese <reese.nathan@gmail.com>
2021-06-17 23:58:06 -04:00
Kibana Machine
2ffcc767e1
[canvas] Refactor Storybook from bespoke to standard configuration (#101962) (#102589)
Co-authored-by: Clint Andrew Hall <clint.hall@elastic.co>
2021-06-17 21:05:55 -04:00
Kibana Machine
c05cb5326a
[Workplace Search] Convert Groups pages to new page template (#102449) (#102566)
* Convert Groups page to new page template

* Convert Groups > Group overview to new page template

- Because dataLoading is no longer an early return, certain items need to be converted to conditional checks in order for the app to not crash

* Convert Groups > source prioritization to new page template

* Convert Group subnav to EuiSideNav format

* Update routers

Co-authored-by: Constance <constancecchen@users.noreply.github.com>
2021-06-17 18:11:37 -04:00
Chris Roberson
3f8093280a
[Alerting] Add event log entry when a rule starts executing (#102001) (#102558)
* Add event log entry when a rule starts executing

* Add in alertId

* Add more logging and fix tests

* Use existing startTiming logic

* Add additional tests

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-06-17 18:03:18 -04:00
Kibana Machine
2f0b2954dd
[Security Solution][Endpoint] Suppress some of the jest console.error noise created by endpoint list middelware (#102535) (#102561)
* Mock KibanaServices with services from app context renderer + fix error noise in endpoint host tests
* silence more error noise to the console
* Added options to the ApiHandlerMock function to be able to suppress errors to the console
* Endpoint list - Refactor Fleet mocks for reuse
* Add default http mocks to the app context render test utility

Co-authored-by: Paul Tavares <56442535+paul-tavares@users.noreply.github.com>
2021-06-17 17:18:09 -04:00
Kibana Machine
cb18f07629
[Fleet] Improve performance of Fleet setup (#102219) (#102559)
* Remove endpoint from the default packages

* Change the default spinner for the initial load

* Export fleet endpoint package as a constant

* Use constants for special packages

* Simplify type signature of `isRequiredPackage`

* Remove unused types

* Simplify required and default package definitions

* Treat REQUIRED_PACKAGES as independent from DEFAULT_PACKAGES

We want to keep the assumption that the lists contain the same packages
only in `epm/constants.ts`

* Install all default packages, not only the required ones

* Document the purpose of each package list

* Handle auto-update for non-default packages

* Make `endpoint` non-removable

* Make endpoint package be installed by default in tests

* Rename requiredPackages to unremovablePackages

* Fix type check

* Add Endpoint to be installed by default on Fleet tests too

Co-authored-by: Jen Huang <its.jenetic@gmail.com>

Co-authored-by: Alejandro Fernández Gómez <alejandro.fernandez@elastic.co>
Co-authored-by: Jen Huang <its.jenetic@gmail.com>
2021-06-17 21:07:15 +00:00
Kibana Machine
6af72cdf7c
[Fleet] Update docker image of registry used in integration tests (#101911) (#102560)
## Summary

 * Use a more recent Docker image for package registry used in integration/API tests. 
    * [New image](https://container-library.elastic.co/r/package-registry/distribution:fc104ac437370d80518e24da6d0b84370edf0c0c) is from Jun-14 [old image](https://container-library.elastic.co/r/package-registry/distribution:b6a53ac9300333a4a45f3f7d350c9aed72061a66) is from Apr-14
 * Add support for using a custom Docker registry using `FLEET_PACKAGE_REGISTRY_DOCKER_IMAGE` env var
    * e.g. `production` tag
    ```
    FLEET_PACKAGE_REGISTRY_DOCKER_IMAGE='docker.elastic.co/package-registry/distribution:production' FLEET_PACKAGE_REGISTRY_PORT=12345 yarn test:ftr:runner
    ```
    or a personal one
    ```
    FLEET_PACKAGE_REGISTRY_DOCKER_IMAGE='docker.elastic.co/employees/jfsiii/package-registry-distribution:kb90454' FLEET_PACKAGE_REGISTRY_PORT=12345 yarn test:ftr:runner

    ```

- [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

Co-authored-by: John Schulz <john.schulz@elastic.co>
2021-06-17 17:05:35 -04:00
Kibana Machine
e496e8572b
[Asset Management] Osquery telemetry updates (#100754) (#102557)
* first pass of basic osquery usage stats collection

* updates, linting

* updated exported metrics

* clean up comments, add description fields to metric fields

* reworked types

* actually use the updated types

* added tests around the route usage recoder functions

* review comments

* update aggregate types

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

Co-authored-by: Bryan Clement <bclement01@gmail.com>
2021-06-17 16:59:48 -04:00
Kibana Machine
22762a8c1b
Converts saved object tagging to new management layout (#102284) (#102555)
Co-authored-by: Christiane (Tina) Heiligers <christiane.heiligers@elastic.co>
2021-06-17 16:52:31 -04:00
Kibana Machine
0cc2aad4ab
[Fleet] Sync hash history with Kibana scoped history (#102523) (#102546)
Co-authored-by: Nicolas Chaulet <nicolas.chaulet@elastic.co>
2021-06-17 16:06:38 -04:00
Ryland Herrick
164ed8497d
[Security Solution] kbn package for generic hook utils (#101976) (#102539)
* Adds boilerplate for new hook-utils package

* Move existing, identified utils into our hook-utils package

Updates references, and fixes a few missing config that were preventing
packages from building.

* Extracts a common type and adds a little more JSdoc for clarity

* Adds new useObservable hook

Similar to useAsync (a nearly identical interface), this is meant to
wrap a thunk returning an observable, allowing conditional invocation
and progressive updates as the observable continues to emit.

* Remove orphaned test

This function (and its tests) were moved to the hook-utils package; this
was simply missed.

* Remove optional chaining from kbn package

The build system does not currently support these typescript features.
While a valid fix would also have been to build separate browser and
node targets a la #99390, the use here was very minimal and so changing
to a supported syntax was the most pragmatic fix.

* Update old reference in test file

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
# Conflicts:
#	package.json
2021-06-17 15:21:40 -04:00
Steph Milovic
a78a84dd20
[Security Solution] [Cases] Various Cases cleanups (#102103) (#102534) 2021-06-17 15:01:42 -04:00
Kibana Machine
a499e98bed
[Workplace Search] Convert Settings pages to new page template (#102445) (#102532)
* Convert Settings > Customize to new page template

* Convert Settings > oAuth application to new page template

+ DRY form wrappers, update test

* Convert Settings > Connectors to new page template

* Convert source config view to new page template

* Convert Settings subnav to EuiSideNav format

+ update main WS nav

* Update routers

Co-authored-by: Constance <constancecchen@users.noreply.github.com>
2021-06-17 18:47:54 +00:00
Kibana Machine
8b6d1b4765
[Workplace Search] Convert Overview & Security pages to new page template (#102444) (#102530)
* Convert WS Overview page to new page template

* Misc Overview refactors

- Fix extra spacing caused by hidden onboarding steps

- Default page title to "Organization overview" instead of to onboarding title which flashes during loading

- Prefer shallow over mount (will matter later, when WorkplaceSearchPageTemplate nav includes more kea logic)

* Convert Security page to new page template

+ misc ux enhancement disabling header actions while data is still loading

Co-authored-by: Constance <constancecchen@users.noreply.github.com>
2021-06-17 18:37:56 +00:00
Kibana Machine
fb86308996
Fix logout link not working on local dev (#102451) (#102529)
Co-authored-by: Constance <constancecchen@users.noreply.github.com>
2021-06-17 14:13:32 -04:00
Sandra Gonzales
6a80ff65cc
fix node id comparison (#101941) (#102527)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-06-17 13:57:45 -04:00
Kibana Machine
1e63e8b22b
[Security Solution] Endpoint Pending Action full count (#102502) (#102524)
Co-authored-by: Dan Panzarella <pzl@users.noreply.github.com>
2021-06-17 13:56:48 -04:00
Jean-Louis Leysens
1f2a199707
[Fleet] Add packages to global search results (#102227) (#102518)
* added public-side implementation for package search

* added a test for the new search results provider and updated behaviour

* added comment about open issue regarding hash router in fleet

* fixed jest tests

* refactor to reduce size of if statement

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
# Conflicts:
#	rfcs/text/0011_global_search.md
2021-06-17 13:04:47 -04:00
Kibana Machine
37a9d12a54
Add xpack.cloud.full_story configuration (#102363) (#102513)
Co-authored-by: Josh Dover <1813008+joshdover@users.noreply.github.com>
2021-06-17 12:31:24 -04:00
Kibana Machine
4115b2d8f4
Display Kibana overall status in the logs and have FTR wait for green status before running tests (#102108) (#102511)
Co-authored-by: Josh Dover <1813008+joshdover@users.noreply.github.com>
2021-06-17 12:28:01 -04:00
Kibana Machine
e27b86f7ba
[ML] Functional tests - fix and re-enable module API tests (#102477) (#102510)
This PR fixes and re-enables the temporarily skipped API test suite for ML modules.

Co-authored-by: Robert Oskamp <robert.oskamp@elastic.co>
2021-06-17 12:22:56 -04:00
Kibana Machine
bb924b1d1d
[APM] Remove omitEsFieldValue and update parseEnvironmentUrlParam (#101876) (#102508)
Co-authored-by: Søren Louv-Jansen <sorenlouv@gmail.com>
2021-06-17 12:03:43 -04:00
Kibana Machine
bdcc729935
[Lens] More memoization work on the editor_frame (#102186) (#102505)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

Co-authored-by: Marco Liberati <dej611@users.noreply.github.com>
2021-06-17 11:51:27 -04:00
Jonathan Budzenski
126b58f590 skip flaky suite. #102332 2021-06-17 10:34:45 -05:00
Aaron Caldwell
dbd853221d
[Maps] Add layer edit controls (#99812) (#102501)
Co-authored-by: miukimiu <elizabet.oliveira@elastic.co>

Co-authored-by: miukimiu <elizabet.oliveira@elastic.co>
2021-06-17 11:26:22 -04:00
Kibana Machine
bf7913da89
[APM] Fix SVG rendered agent icon in Service Map, and improve storybook for icons (#102182) (#102482)
Co-authored-by: Søren Louv-Jansen <sorenlouv@gmail.com>
2021-06-17 08:32:13 -04:00
Kibana Machine
bca422cf73
[Lens] Formula time shift (#101718) (#102480)
Co-authored-by: Joe Reuter <johannes.reuter@elastic.co>
2021-06-17 08:22:20 -04:00
Kibana Machine
a8251f017f
Do not show activity log error popups (#102450) (#102479)
we show an empty state on the actions log tab anyway

refs 2dd22ed92b

fixes elastic/kibana/issues/102335

Co-authored-by: Ashokaditya <am.struktr@gmail.com>
2021-06-17 08:18:33 -04:00
Tiago Costa
ec19fa4132
skip flaky suite (#101454) 2021-06-17 13:01:04 +01:00
Kibana Machine
c29ecaa2e0
[Lens] Add some more documentation for dynamic coloring (#101369) (#102470)
Co-authored-by: Kaarina Tungseth <kaarina.tungseth@elastic.co>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

Co-authored-by: Marco Liberati <dej611@users.noreply.github.com>
Co-authored-by: Kaarina Tungseth <kaarina.tungseth@elastic.co>
2021-06-17 06:34:46 -04:00
Sergi Massaneda
ea2b5f44ad
hide not searchable results when no term (#102401) (#102464) 2021-06-17 06:25:32 -04:00
Kibana Machine
11eda9ca53
[Lens] Fix Formula functional test with multiple suggestions (#102378) (#102463)
Co-authored-by: Marco Liberati <dej611@users.noreply.github.com>
2021-06-17 06:20:50 -04:00
Kibana Machine
d8acb7ba76
Fix trusted apps modified by field displayed as a date field (#102377) (#102458)
Fixes https://github.com/elastic/kibana/issues/102308

Co-authored-by: Esteban Beltran <academo@users.noreply.github.com>
2021-06-17 05:47:19 -04:00
Kibana Machine
681605744e
update readme of logs-metrics-ui (#101968) (#102452)
Co-authored-by: mgiota <giota85@gmail.com>
2021-06-17 04:36:31 -04:00
Kibana Machine
9836afd9be
Refactor observability plugin breadcrumbs (#102290) (#102447)
Previously the observability plugin set the page title and breadcrumbs in the main app rendering component based on the `breadcrumb` property of the current route.

In addition, there's a `useBreadcrumb` hook used by the UX app, exploratory view, and cases.

The conflict between these was creating situations where neither would work and the breadcrumbs would just show "Kibana".

Remove the breadcrumb properties from the routes and the main app breadcrumb handling and just use `useBreadcrumb` on all pages.

Fixes #102131.

Co-authored-by: Nathan L Smith <nathan.smith@elastic.co>
2021-06-17 03:35:19 -04:00
Kibana Machine
ad2ebc7b81
[Index Patterns] Move rollup config to index pattern management v2 (#102285) (#102442)
* move rollup config to index pattern management

Co-authored-by: Matthew Kime <matt@mattki.me>
2021-06-16 23:21:26 -04:00
Kibana Machine
2dbb716286
[Security Solution][Endpoint] Isolate Action should only be available to Platinum+ licenses (#102374) (#102434)
* Isolate action should only be available for platinum license
* Moved `useLicense` hook mock into `__mocks__`

Co-authored-by: Paul Tavares <56442535+paul-tavares@users.noreply.github.com>
2021-06-16 20:52:46 -04:00
Kibana Machine
b3c9c183ea
[Enterprise Search] Set up initial KibanaPageTemplate (#102170) (#102431)
* Set up shared EnterpriseSearchPageTemplate component

* Set up product-specific page templates + setPageChrome

+ misc tech debt - create AS components/layout/index.ts for imports

* Set up navigation helpers for EuiSideNav usage

- Update react_router_helpers to pass back props as a plain JS obj instead of only working with React components (+ update react components to use new simpler helper)

- Convert SideNavLink active logic to a plain JS helper

* Set up top-level product navigations

NYI: sub navigations (future separate PRs)

* Set up test_helpers for inspecting pageHeaders

- primarily useful for rightSideItems, which often contain conditional logic

* Initial example: Convert RoleMappings views to new page template

Minor refactors:
+ remove unnecessary type union
+ fix un-i18n'ed product names
+ add full stop to documentation sentence
+ add semantic HTML tags around various page landmarks (header, section)

* EUI feedback: add empty root parent section

* Revert Role Mappings union type removal

- but shenanigans it a bit to take our i18n'd shared product names (requires as const assertion)

- done to reduce merge conflicts for Scotty / make his life (hopefully) a bit easier between ent-search and Kibana

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

Co-authored-by: Constance <constancecchen@users.noreply.github.com>
2021-06-16 20:27:46 -04:00
Tim Sullivan
2ad78b2c03
[Reporting] remove unused reference to path.data config (#102267) (#102387)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-06-16 19:10:11 -04:00
Kibana Machine
27e6a128b1
[APM] Fixing time comparison types (#101423) (#102399)
* fixing time comparison types

* fixing ts issues

* addressing PR comments

* addressing PR comments

* addressing PR comments

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

Co-authored-by: Cauê Marcondes <55978943+cauemarcondes@users.noreply.github.com>
2021-06-16 18:39:36 -04:00
Kyle Pollich
49cc723507
[Fleet + Integrations UI] Migrate Fleet UI to new tabbed layout (#101828) (#102393)
* WIP: Migrate fleet to new page layout system

* Add 'Add Agent' button to agents table

* Fix flyout import in search and filter bar

* Place settings/feedback in header

* Move actions to top nav

* Fix i18n + types + unit test failures

* Remove unused props in DefaultLayout

* Fix background height in Fleet layout

This is fixed through a hack for now, because Kibana's layout doesn't
allow apps to flex the top-level wrapper via `flex: 1`. The same
behavior reported in the original issue (#101781) is present in all
other Kibana apps.

Fixes #101781

* Use euiHeaderHeightCompensation for min-height calc

* Move settings portal to app component

* Fix agent details URL in failing unit test

* Remove unreferenced overview files + update functional tests

* Remove unneeded fragment

* Remove beta badges in Fleet + Integrations

Fixes #100731

* Fix i18n

* Fix page path reference

* Fix failing tests

* Re-fix i18n post merge

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
# Conflicts:
#	x-pack/plugins/translations/translations/ja-JP.json
#	x-pack/plugins/translations/translations/zh-CN.json
2021-06-16 18:26:54 -04:00
Kibana Machine
5482a70a6a
[ML] Functional tests - fix and re-activate alerting flyout test (#102368) (#102392)
This PR fixes the ML alerting flyout tests and re-activates it.

Co-authored-by: Robert Oskamp <robert.oskamp@elastic.co>
2021-06-16 18:25:38 -04:00
Chris Roberson
b16513a7e5
[Task Manager] Log at different levels based on the state (#101751) (#102402)
* Log at different levels based on the state

* Fix types and add tests

* Remove unnecessary code

* Add more descriptive message

* Partially fix failing tests

* Move into separate function

* Get rid of customStatus in favor of moving the logging logic to a separate, mockable function

* Remove debug logging

* Do not log as an error if the stats are empty

* PR feedback

* Add docker whitelist

* alpha order

* English is hard

* Removing extra newline

* PR feedback around ignoring capacity estimation

* Move json utils
2021-06-16 18:20:42 -04:00
Kibana Machine
df5c56d625
[Uptime] refactor Synthetics Integration package UI (#102080) (#102404)
* refactor contexts

* add http, tcp, and icmp folders

* adjust types

* adjust useUpdatePolicy hook

* adjust synthetics policy create and edit wrappers

* adjust validation

* fix typo and types

* remove typo

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

Co-authored-by: Dominique Clarke <doclarke71@gmail.com>
2021-06-16 22:20:28 +00:00
Kibana Machine
f84b34c989
[RAC] Update alert documents in lifecycle rule type helper (#101598) (#102397)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

Co-authored-by: Dario Gieselaar <dario.gieselaar@elastic.co>
2021-06-16 18:19:49 -04:00
Alison Goryachev
043f24afa1
[Watcher] Migrate to use new page layout (#101956) (#102360)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-06-16 14:50:17 -04:00
Kibana Machine
0031caffd0
CIT for circle processor (renewed PR) (#102277) (#102375)
* Added CITs for Circle processor.

* Fixed issue with form function using int instead of string.

* Added changed per nits.

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

Co-authored-by: John Dorlus <silne.dorlus@elastic.co>
2021-06-16 14:12:43 -04:00
Kibana Machine
243b167d8a
[Kuery] Move json utils (#102058) (#102365)
* Move JSON utils to utils package

* Imports from tests

* delete

* split package

* docs

* test

* test

* imports

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

Co-authored-by: Liza Katz <lizka.k@gmail.com>
2021-06-16 13:24:44 -04:00
spalger
7a3915949c skip flaky suite (#100296)
(cherry picked from commit f4e0895b17)
2021-06-16 10:10:58 -07:00
Kibana Machine
d04d9e10f6
Updates app_id to use integrations one instead of fleet for back button link (#102312) (#102345)
Co-authored-by: David Sánchez <davidsansol92@gmail.com>
2021-06-16 17:08:57 +00:00
spalger
aa9571b2cc skip flaky suite (#101984)
(cherry picked from commit c8256d57bd)
2021-06-16 10:07:57 -07:00
Kibana Machine
9abe3e0695
[Lens] Create mathColumn function to improve performance (#101908) (#102356)
* [Lens] Create mathColumn function to improve performance

* Fix empty formula case

* Fix tinymath memoization

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

Co-authored-by: Wylie Conlon <william.conlon@elastic.co>
2021-06-16 16:42:22 +00:00
Kibana Machine
6046e85e12
Add additional collection item to security allow list filter. (#102192) (#102355)
Co-authored-by: Pete Hampton <pjhampton@users.noreply.github.com>
2021-06-16 12:39:57 -04:00
Kibana Machine
fcf1389ff8
[Lens] Unload canvas test properly (#102101) (#102350)
Co-authored-by: Joe Reuter <johannes.reuter@elastic.co>
2021-06-16 16:08:59 +00:00
Kibana Machine
2d30947958
[Security Solution][Endpoint] Show Endpoint Host Isolation status on endpoint list (#101961) (#102348)
* Add endpoint isolation status for when multiple actions of different types are pending
* Refactored List to break out Agent status code to separate component
* Generator improvements for how actions are generated for Endpoints
* Add HTTP mock for fleet EPM packages (to silence console errors)
* new `.updateCommonInfo()` method to generator (to regenerate stateful data)

Co-authored-by: Paul Tavares <56442535+paul-tavares@users.noreply.github.com>
2021-06-16 12:08:32 -04:00
Pete Hampton
df34b1b93d
Bug: ES query returning no records for d-rule alerts. (#102160) (#102347)
# Conflicts:
#	x-pack/plugins/security_solution/server/usage/detections/detection_rule_helpers.ts
2021-06-16 11:58:34 -04:00
Kibana Machine
e40ade086d
Use export type instead of export to reduce bundle size (#101796) (#102344)
* Use export type instead of export to reduce bundle size

* Update legacy docs

* update docs again

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

Co-authored-by: Stacey Gammon <gammon@elastic.co>
2021-06-16 11:36:23 -04:00
Kibana Machine
687540e199
[Security solutions][Endpoint] Break long names on remove trusted apps/event filters dialog (#102307) (#102342)
* Break long names on remove trusted apps/event filters dialog.

* Removes wrong class

Co-authored-by: David Sánchez <davidsansol92@gmail.com>
2021-06-16 11:27:21 -04:00
Alexey Antonov
db1bd7ec03
Add telemetry for editor clicks events (#100664) (#102341)
* Track editor clicks events

Closes: #98949

* add create and open telemetries

* add telemetry for dashboard

* remove hardcoded originatingApp for lens

* DashboardConstants.DASHBOARDS_ID ->  DashboardConstants.DASHBOARD_ID

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

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-06-16 11:21:17 -04:00
Kibana Machine
0adf3b5ff0
[Observability] Updating header menu links across Observability apps (#101472) (#102337)
* [Observability] POC aligning menu links across apps

* [APM] Changed guttersize

* [APM] Replace placeholder button

* [Uptime] Remove icon from Settings header link

* [APM] Reordered anomaly detection and alerts

* [Logs] Remove icon from settings and change guttersize

* [Metrics] Remove icon from settings and change guttersize

* [Logs] Change button style of `isStreaming` state

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

Co-authored-by: Casper Hübertz <casper@elastic.co>
2021-06-16 10:43:35 -04:00
Pete Harverson
0db70beffe
[ML] Adds optimizations for Logs UI anomaly detection jobs (#102191) (#102318)
* [ML] Adds optimizations for Logs UI anomaly detection jobs

* [ML] Increment version for log-entry-categories-count job

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

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-06-16 08:37:31 -04:00
Anton Dosov
eeca5d26eb
Convert AppServices management pages to KibanaPageTemplate (#101779) (#102224)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-06-16 07:54:23 -04:00
Kibana Machine
658d6378c4
[Lens] Formula overall functions (#99461) (#102303)
Co-authored-by: Joe Reuter <johannes.reuter@elastic.co>
2021-06-16 06:57:24 -04:00
Kibana Machine
9647af5476
add description and owner to kibana.json (#102238) (#102304)
Co-authored-by: Joe Reuter <johannes.reuter@elastic.co>
2021-06-16 06:29:40 -04:00
Pablo Machado
dbfd6c6f5f
[Security Solution][Timeline] Fix User not able to scroll down and access Alert table on adding long content in Timeline's Description (#101486) (#102301)
* Add LineClamp component to timeline description

* Truncate timeline description on timeline table

* Fix StyledLineClamp styled component performance issue

Read more: https://styled-components.com/docs/faqs#why-should-i-avoid-declaring-styled-components-in-the-render-method
2021-06-16 06:08:51 -04:00
Kibana Machine
bd1e0ae11d
[Observability] Add border to section container panels (#102259) (#102299)
Co-authored-by: Casper Hübertz <casper@elastic.co>
2021-06-16 05:48:47 -04:00
Kibana Machine
d961425181
[UX] Update panels to use border not shadow (#102262) (#102298)
Co-authored-by: Casper Hübertz <casper@elastic.co>
2021-06-16 05:48:20 -04:00
Kibana Machine
cdb68e453f
[APM] More styles fixes related to the new page template (#102253) (#102295)
* [APM] Service map: Add border to panel

* [APM] Metrics: Add border to panel

* [APM] Service overview: Add border to panel

* [APM] Transactions and charts: Add border to panel

Co-authored-by: Casper Hübertz <casper@elastic.co>
2021-06-16 05:38:19 -04:00
István Zoltán Szabó
d07ed8a639
[ML] Adds popover help for ROC curve (#101893) (#102293)
Co-authored-by: Lisa Cawley <lcawley@elastic.co>

Co-authored-by: Lisa Cawley <lcawley@elastic.co>
2021-06-16 05:18:09 -04:00
Ryland Herrick
1f89ac39f3
[Security Solution][CTI] Event enrichment search strategy (#101553) (#102275)
* Adding boilerplate for new CTI search strategy type

This is going to be a subtype of the general SecSol search strategy;
the main functionality is going to be:

* transformation of the incoming parameters into named equivalents
* transformation of responses to include enrichment context fields
  (matched.*)

* More boilerplate, including tests

A few type errors because our functions don't actually do anything yet,
nor are our request/response types fleshed out.

* Starting to flesh out the request parsing

* Defines a basic request, along with a mock
* Defines helper function to generate should clauses from field values
* Adds placeholder tests throughout

* Fleshing out unit tests around our enrichment query

* Fleshing out response parsing of eventEnrichment strategy

* Fix types from elasticsearch

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

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-06-15 20:04:12 -04:00
Bhavya RM
9e7e23af39
updating the import export saved object file to handle by value panel migration bug (#102141) 2021-06-15 17:54:13 -04:00
Steph Milovic
3bba37ff68
[7.x] [Observability] [Cases] Cases in the observability app (#101487) (#101971)
* [Observability] [Cases] Cases in the observability app (#101487)

* Fix archive

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

* fix data

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Tyler Smalley <tyler.smalley@elastic.co>
2021-06-15 17:33:45 -04:00
Kibana Machine
13f56cb16e
Flyouts for APM alert annotations (#101632) (#102264)
Co-authored-by: Nathan L Smith <nathan.smith@elastic.co>
2021-06-15 16:58:57 -04:00
Kibana Machine
083c2eae60
[Lens] Export lens save modal (#100381) (#102258)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

Co-authored-by: Shahzad <shahzad.muhammad@elastic.co>
2021-06-15 16:16:17 -04:00
Kibana Machine
d8a5fe1e1d
[Osquery] Add support for platform and version fields (#101835) (#102254)
Co-authored-by: Patryk Kopyciński <patryk.kopycinski@elastic.co>
2021-06-15 19:59:12 +00:00
Alison Goryachev
2841e38f5d
[Snapshot + Restore] Migrate to new page layout structure (#101811) (#102232)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-06-15 15:58:31 -04:00
Kibana Machine
51aae48349
[Workplace Search] Fix sidebar copy for Account Settings page (#102110) (#102244)
* Rename PrivateSourcesLayout to PersonalDashboardLayout

The renaming was required because this layout is also used for Account Settings.

* Rename imports

* Rename files

* More personal_dashboard_layout from sources folder to layout folder

* Extract PrivateSourcesSidebar from PersonalDashboardLayout

This is needed to add the ability to pass AccountSettingsSidebar in the
next commit.

* Add and use AccountSettingsSidebar

* Move related styles to personal_dashboard_layout folder

* Move tests from personal_dashboard_layout to private_sources_sidebar

* Add tests for account_settings_sidebar

* Remove redundant import

* Move source-related sidebar text constants to top-level constants file

Now all personal dashboard sidebar copy is in one place

Co-authored-by: Vadim Yakhin <yakhin.v@gmail.com>
2021-06-15 14:55:48 -04:00
Kibana Machine
ed8b29c54b
[Enterprise Search] Refactor Role mappings to use single endpoint (#102096) (#102229)
* Add tooltip back to table row

This was missed when refactoring the table to an EUI component. Built-in mappings have tooltips and don’t have IDs and need to show tooltips instead of actions.

* Fix roleType display

Also missed in the refactor. Made a mistake when copying/pasting

* Refactor logic files to use single endpoint for UI props

As a part of this feature, we are now passing all props needed for the UI in the list endpoint. Previously, whether creating a new mapping, or updating an existing mapping, an endpoint had to be called to fetch the data needed for display. Now all this data comes from the initial fetching of mappings and the other endpoints are no longer needed.

* Refactor WS test to match AS

There was an issue where 100% test coverage was not achieved in Workplace Search. This had already been fixed in App Search by refactoring. This changes the code and test in Workplace Search to match

* Remove server routes

Co-authored-by: Scotty Bollinger <scotty.bollinger@elastic.co>
2021-06-15 18:30:26 +00:00
Kibana Machine
ed51ddbec4
[QA]Skip of metricbeat dashboard test (#97174) (#102241)
* fix flakyness of metricbeat dashboard test

* skip test for now

* Update _metricbeat_dashboard.js

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

Co-authored-by: Marius Dragomir <marius-dr@users.noreply.github.com>
2021-06-15 14:23:31 -04:00
Kibana Machine
b0700a8c60
[Security Solution] restyle endpoint details flyout (#102092) (#102221)
Co-authored-by: Joey F. Poon <joey.poon@elastic.co>
2021-06-15 12:59:35 -04:00
Tyler Smalley
874d51c371 skip flaky suite (#102012) 2021-06-15 09:00:32 -07:00
Ignacio Rivas
59a54c647c
[Ingest Node Pipelines] Migrate to new page layout (#101894) (#102212)
* migrate pages to new layout

* fix linter errors

* update translation files

* Nicer try-again cta

* Fix lang and prettier

* small CR changes

* small linter fixes

* fix test copy

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

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-06-15 11:35:06 -04:00
Ignacio Rivas
494770f9b3
[Remote Clusters] Migrate to new page layout (#102042) (#102213)
* change page templates

* Small copy tweaks

* Update docs

* small CR changes

* exit function call if fails

* update i18n strings

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

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-06-15 11:34:43 -04:00
Kibana Machine
52531336c6
Optimize privilege response validation (#102135) (#102211)
Co-authored-by: Larry Gregory <larry.gregory@elastic.co>
2021-06-15 11:32:19 -04:00
Kibana Machine
950179a509
Fixes empty page when removing last element. Fixes wrong event filters count number. Also adds unit tests (#102173) (#102210)
Co-authored-by: David Sánchez <davidsansol92@gmail.com>
2021-06-15 11:18:57 -04:00
Kibana Machine
c76999b5bb
[ML] Improvements to job saved object sync (#101899) (#102209)
* [ML] Improvements to job saved object sync

* refactor

* adding testsadding testsadding testsadding testsadding testsadding testsadding testsadding tests

* updating test label

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

Co-authored-by: James Gowdy <jgowdy@elastic.co>
2021-06-15 11:16:24 -04:00
Alejandro Fernández Gómez
aab9e57a9d
[Uptime] Skip flaky test (#102163) (#102207) 2021-06-15 11:01:49 -04:00
Kibana Machine
c903317707
[Fleet] Remove release messaging (#101450) (#102204)
Co-authored-by: kobarei <koba.reiji@gmail.com>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

Co-authored-by: SoNice! <62436227+d1v1b@users.noreply.github.com>
Co-authored-by: kobarei <koba.reiji@gmail.com>
2021-06-15 10:56:36 -04:00
Kibana Machine
a3e12fc954
[Lens] Keep filters when transitioning from calculation to regular operation (#101872) (#102203)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

Co-authored-by: Marco Liberati <dej611@users.noreply.github.com>
2021-06-15 10:52:04 -04:00
Kibana Machine
6d954dd43c
[Maps] Handle indices without geoip schema defined in mapping (#100487) (#102193)
* ensure sourceGeoField and destGeoField for docs included in pew pew source

* tslint

Co-authored-by: Nathan Reese <reese.nathan@gmail.com>
2021-06-15 10:13:52 -04:00
Kibana Machine
5fdd0e4f66
[Security Solution][Endpoint] Actions log entries display relative time only up to 1 hr from now (#102162) (#102189)
* show relative time only upto an hr from now

fixes elastic/security-team/issues/1313

* Update formatted_date_time.tsx

undo changes done in e38e202e81

Co-authored-by: Ashokaditya <am.struktr@gmail.com>
2021-06-15 09:33:22 -04:00
Kibana Machine
2cb387b0b3
[User Experience App] Update to make sure env filter is being used (#102063) (#102185)
Co-authored-by: Shahzad <shahzad.muhammad@elastic.co>
2021-06-15 08:46:16 -04:00
Kibana Machine
1a643ba9ea
[Lens] Add reset and hide actions to columns on dashboard (#102025) (#102174)
Co-authored-by: Joe Reuter <johannes.reuter@elastic.co>
2021-06-15 07:54:26 -04:00
Kibana Machine
2f7211b892
[Maps] Remove jitter from bounds-coordinates (#100717) (#102169)
Co-authored-by: Thomas Neirynck <thomas@elastic.co>
2021-06-15 07:17:59 -04:00
Kibana Machine
93133ad49b
[Observability] Change sortkey navigation in APM and Uptime (#102134) (#102168)
* [APM] Change navigation registry sortkey

* [Uptime] Change navigation registry sortkey

Co-authored-by: Casper Hübertz <casper@elastic.co>
2021-06-15 06:48:48 -04:00
Kibana Machine
bcfcace94f
[Lens]Show dynamic coloring only for metrics (#101777) (#102165)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

Co-authored-by: Marco Liberati <dej611@users.noreply.github.com>
2021-06-15 10:39:29 +00:00
Kibana Machine
9ef2ece927
[Lens] Table headers are aligned the same as cells (#101875) (#102166)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

Co-authored-by: Marco Liberati <dej611@users.noreply.github.com>
2021-06-15 06:39:22 -04:00
Kibana Machine
5885f71059
[Observability] Fixes border shadow and other enhancements (#102072) (#102161)
* [Observability] Fixes border shadow and other enhancements

* Update x-pack/plugins/observability/public/components/app/section/index.tsx

Co-authored-by: Cauê Marcondes <55978943+cauemarcondes@users.noreply.github.com>

* [Observability] Remove unused import and formatting

Co-authored-by: Cauê Marcondes <55978943+cauemarcondes@users.noreply.github.com>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

Co-authored-by: Casper Hübertz <casper@elastic.co>
Co-authored-by: Cauê Marcondes <55978943+cauemarcondes@users.noreply.github.com>
2021-06-15 06:20:18 -04:00
Kibana Machine
cd3fedf642
reduce inner timeout (#102081) (#102159)
Co-authored-by: Joe Reuter <johannes.reuter@elastic.co>
2021-06-15 05:50:38 -04:00
Marco Vettorello
482bf3693c
Update dependency @elastic/charts to v30.1.0 (master) (#101683) (#102157)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2021-06-15 05:46:43 -04:00
Kibana Machine
1ceefa6080
[Lens] do not allow custom bounds on percentage chart (#101743) (#102155)
Co-authored-by: Joe Reuter <johannes.reuter@elastic.co>
2021-06-15 05:38:52 -04:00
Kibana Machine
6114d5415e
[Fleet] Adjust add integration flow (#101714) (#102152)
* Initial commit, very WIP

- added link to the integrations UI instead of add integration
  in fleet
- added a new piece of route state that gets passed to integration
  from fleet when browsing integrations for a policy
- when the integration is being added the page will send the user
  back to the policy overview instead of back to integrations UI

* remove unnecessary agent policy clear function

* added # to path so that navigation is correctly handled

* added logic to read the forward agent policy id

* remove inline select integration package from fleet add integration

* updated toast notification

* using query parameter to pass policy id back to create policy package page

* removed policyId from route path

* fix type issue

* updated the select agent field layout per the designs

* simpified item rendering in combobox and fixed combobox z-index issue

* added comment

* fix types and i18n

* updated icon and removed unused i18n

* refactor to using styled components for cusomt z-index styling

* attempt to fix integration test

* added scroll functionality for dealing with fixed footers that might be obstructing content

* fix scroll direction!

* attempting another scroll algorithm

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

Co-authored-by: Jean-Louis Leysens <jloleysens@gmail.com>
2021-06-15 09:33:09 +00:00
Kibana Machine
a6841dadad
rename beta badge (#101884) (#102153)
Co-authored-by: Joe Reuter <johannes.reuter@elastic.co>
2021-06-15 05:32:36 -04:00
CJ Cenizal
1dbdc326f9
Discourage use of legacy index templates (#101533) (#102144)
* Hide legacy index templates table if the user doesn't have any.
* Render deprecation warning above legacy index templates table and in legacy index template wizard.
* Update index template doc link to point to the new docs.
2021-06-14 20:29:43 -04:00
Aaron Caldwell
ad6c40a313
[Maps] Fix geo alerts handling of multi-fields (#100348) (#102142) 2021-06-14 19:56:32 -04:00
Kibana Machine
e0f2ed9f1f
Add comments to some alerting plugin public API items (#101551) (#102130)
* Add comments. Remove ruleType as the second param, not needed.

* Add comments. Remove ruleType as the second param, not needed.

* Fix bad type check and update docs

* update docs

* Remove unused import

* change exports to type to avoid increasing bundle size

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

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

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

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

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

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

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: ymao1 <ying.mao@elastic.co>

Co-authored-by: Stacey Gammon <gammon@elastic.co>
Co-authored-by: ymao1 <ying.mao@elastic.co>
2021-06-14 17:51:30 -04:00
Kibana Machine
fabd28a8ff
[ML] Adds Authentication module with six ML jobs for ECS data (Auditbeat, Winlogbeat, Filebeat and Logs) (#101840) (#102127)
* Adding Security Authentication jobs in 7.14

* Renamed some jobs

* Changing memory limits and linting change

* Linting fix

* Changed the order

* Adding module to ml_modules.tsx

* Update recognize_module.ts

this test modules uses older Auditbeat data which predates the event.category field so the test has to be skipped per https://elastic.zoom.us/j/93000943632?pwd=TmpvNWhtYUNzMUc0c0N6Tlc2QlVPZz09

* Update recognize_module.ts

needs to be a single line

* Update recognize_module.ts

Some linters want spaces and some linters want no spaces. This linter wants spaces.

* descriptions

added description text

* Update auth_rare_hour_for_a_user.json

removed a wayward newline char

* Minor nitpicking

* memory limits

raised memory limits to 128mb which is larger than the highest observed peak model bytes for the most memory hungry jobs in this event class.

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

Co-authored-by: Apoorva Joshi <30438249+ajosh0504@users.noreply.github.com>
Co-authored-by: Craig <mailredirector36@gmail.com>
2021-06-14 21:44:57 +00:00
Kibana Machine
57e3f8c3e2
Fix esArchiver path in the Jenkins context (#102095) (#102126)
Co-authored-by: Domenico Andreoli <domenico.andreoli@elastic.co>
2021-06-14 17:41:57 -04:00
Kibana Machine
54256e353b
[Logs / Metrics UI] Convert logs and metrics pages to the new Observability page template (#101239) (#102112)
* Convert Logs and Metrics pages to use the Observability page template

Co-authored-by: Kerry Gallagher <471693+Kerry350@users.noreply.github.com>
2021-06-14 16:36:44 -04:00
Kibana Machine
129385a580
[Security Solution] Refactor rules for modularization by updating bulkCreate and wrapHits methods (#101544) (#102107)
creates bulkCreate and wrapHits factories for the modularization of the detection engine

Co-authored-by: Marshall Main <marshall.main@elastic.co>

Co-authored-by: Ece Özalp <ozale272@newschool.edu>
Co-authored-by: Marshall Main <marshall.main@elastic.co>
2021-06-14 15:52:48 -04:00
Kibana Machine
7d31209dce
[APM] Change View full trace button fill (#102066) (#102098)
Co-authored-by: Casper Hübertz <casper@elastic.co>
2021-06-14 14:54:34 -04:00
Kibana Machine
17563a2ac2
[APM] Change impact indicator size (#102060) (#102094)
Co-authored-by: Casper Hübertz <casper@elastic.co>
2021-06-14 18:42:58 +00:00
Kibana Machine
ca852e3691
[Fleet] Display NOTICE.txt from package if it exists (#101663) (#102093)
Co-authored-by: Nicolas Chaulet <nicolas.chaulet@elastic.co>
2021-06-14 14:42:03 -04:00
Kibana Machine
3195ccf763
Document platform security plugins in kibana.json (#101965) (#102091)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

Co-authored-by: Larry Gregory <larry.gregory@elastic.co>
2021-06-14 14:31:35 -04:00
Kibana Machine
cb92d45aba
[APM] Add AWS and Azure icons for additional services (#101901) (#102082)
Co-authored-by: Søren Louv-Jansen <sorenlouv@gmail.com>
2021-06-14 14:16:59 -04:00
Dima Arnautov
2f947a5cb5
[ML] Add usage collection for pages in the ML app (#101886) (#102088)
* [ML] setup usageCollection provider

* [ML] track page usage
2021-06-14 13:51:45 -04:00
Kibana Machine
a1705f0bc4
Fix delayed status API updates in alerting and task_manager (#101778) (#102084)
Co-authored-by: Josh Dover <1813008+joshdover@users.noreply.github.com>
2021-06-14 13:23:02 -04:00
Alison Goryachev
eca9c2dfe6
[ILM] Migrate to new page layout (#101927) (#102077) 2021-06-14 12:57:28 -04:00
Kibana Machine
f9edb4ee0d
stabilize opening of Lens from listing page (#101569) (#101903)
Co-authored-by: Joe Reuter <johannes.reuter@elastic.co>
2021-06-14 12:46:42 -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
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
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
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
Tyler Smalley
7b476b7e38 skip flaky suite (#102012) 2021-06-12 06:49:30 -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
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
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
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
Tiago Costa
079b0b412b skip flaky suite (#95707) 2021-06-10 12:51:08 -05:00
István Zoltán Szabó
15fe0f982a
[ML] Adds popover help for multiclass confusion matrix (#101732) (#101914)
Co-authored-by: Lisa Cawley <lcawley@elastic.co>

Co-authored-by: Lisa Cawley <lcawley@elastic.co>
2021-06-10 13:42:36 -04:00
Melissa Alvarez
0f36bd1888
[ML] Anomaly Detection: Visualize delayed - data Part 1 (#101236) (#101912)
* wip: add datafeed modal for chart

* Add arrows to navigate through time in the chart

* ensure runtime_mapping and indices_options in search query

* move chart data fetching behind single server endpoint

* remove success check as it is not returned in result

* load necessary modal data in modal

* remove extra legend and add text to action icons

* remove unused endpoint and types

* handle job not found and fix types

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

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-06-10 13:08:13 -04:00
Kibana Machine
b32927aa67
[Lens] Formula editor (#99297) (#101900)
* 💄 Hack to fix suggestion box

* 🐛 Fix validation messages

* 🐛 Relax operations check for managedReferences

* Change completion params

* 🏷️ Fix missing arg issue

*  Add more tinymath fns

* 🐛 Improved validation around math operations + multiple named arguments

* 🐛 Use new onError feature in math expression

* ♻️ Refactor namedArguments validation

* 🐛 Fix circular dependency issue in tests + minor fixes

* Move formula into a tab

* 🔥 Leftovers from previous merge

*  Move over namedArgs from previous function

*  Add tests for transferable scenarios

*  Fixed broken test

*  Use custom label for axis

* Allow switching back and forth to formula tab

* Add a section for the function reference

* Add modal editor and markdown docs

* Change the way math nodes are validated

* Use custom portal to fix monaco positioning

* Fix model sharing issues

* Provide signature help

* 🐛 Fix small test issue

* 🐛 Mark pow arguments as required

* 🐛 validate on first render only if a formula is present

* 🔥 Remove log10 fn for now

*  Improved math validation + add tests for math functions

* Fix mount/unmount issues with Monaco

* [Lens] Fully unmount React when flyout closes

* Fix bug with editor frame unmounting

* Fix type

* Add tests for monaco providers, add hover provider

* Add test for last_value

* Usability improvements

* Add KQL and Lucene named parameters

* Add kql, lucene completion and validation

* Fix autocomplete on weird characters and properly connect KQL

* Highlight functions that have additional requirements after validating

* Fix type error and move help text to popover

* Fix escape characters inside KQL

* 🐛 Fix dataType issue when moving over to Formula

* Automatically insert single quotes on every named param

* Only insert single quotes when typing kql= or lucene=

* Reorganize help popover

* Fix merge issues

* Update grammar for formulas

* Fix bad merge

* Rough fullscreen mode

* Type updates

* Pass through fullscreen state

* Remove more chrome from full screen mode

* Fix minor bugs in formula typing

* 🐛 Decouple column order of references and output

* 🔧 Fix tests and types

*  Add first functional test

* Fix copying formulas and empty formula

* Trigger suggestion prompt when hitting enter on function or typing kql=

* 🐛 Prevent flyout from closing while interacting with monaco

* refactoring

* move main column generation into parse module

* fix tests

* refactor small formula styles and markup

* documentation

* adjustments in formula footer

* Formula refactoring (#12)

* refactoring

* move main column generation into parse module

* fix tests

* more style and markup tweak for custom formula

* Fix tests

* [Expressions] Use table column ID instead of name when set

* [Lens] Create managedReference type for formulas

* Fix test failures

* Fix i18n types

* fix fullscreen flex issues

* Delete managedReference when replacing

* refactor css and markup; add button placeholders

* [Lens] Formulas

* Tests for formula

Co-authored-by: Marco Liberati <marco.liberati@elastic.co>

* added error count placeholder

* Add tooltips

* Refactoring from code review

* Fix some editor issues

* Update ID matching to match by name sometimes

* Improve performance of Monaco, fix formulas with 0, update labels

* Improve performance of full screen toggle

* Fix formula tests

* fix stuff

* Add an extra case to prevent insertion of duplicate column

* Simplify logic and add test for output ID

* add telemetry for Lens formula (#15)

* Respond to review comments

*  Improve the signatures with better documentation and examples

* adjust border styles to account for docs collapse

* refactor docs markup; restructure docs obj; styles

* Fix formula auto reordering (#18)

* fix formula auto reordering

* add unit test

* Fix and improve suggestion experience in Formula (#19)

*  Revisit documentation and suggestions

* 👌 Integrated feedback

*  Add query validation for quotes

* Usability updates & type fixes

* add search to formula

* fix form styles to match designs

* fix text styles; revert to Markdown for control

* 👌 Integrated more feedback

* improve search

* improve suggestions

* improve suggestions even more

* 🐛 Fix i18n issues (#22)

* Persist formula on leave, fix fullscreen and popovers

* Fix documentation tests

* 🏷️ fix type issue

* 🐛 Remove hidden operations from valid functions list

* 🐛 Fix empty string query edge case

* 🐛 Enable more suggestions + extends validation

* Fix tests that depended on setState being called without function

* Error state and text wrapping updates

*  Add new module to CodeEditor for brackets matching (#25)

* Fix type

* show warning

* keep current quick function

*  Improve suggestions within kql query

* 📷 Fix snapshot editor test

* 🐛 Improved suggestion for single quote and refactored debounce

* Fix lodash usage

* Fix tests

* Revert "keep current quick function"

This reverts commit ed477054c5.

* Improve performance of dispatch by using timeout

* Improve memoization of datapanel

* Fix escape characters

* fix reduced suggestions

* fix responsiveness

* fix unit test

* Fix autocomplete on nested math

* Show errors and warnings on first render

* fix transposing column crash

* Update comment

* 🐛 Fix field error message

* fix test types

* 📝 Fix i18n name

* 💄 Manage wordwrap via react component

* Fix selector for palettes that interferes with quick functions

* Use word wrapping by default

* Errors for managed references are handled at the top level

* 🐛 Move the cursor just next to new inserted text

* ⚗️ First pass for performance

* 🐛 Fix unwanted change

*  Memoize as many combobox props as possible

*  More memoization

* Show errors in hover

* Use temporary invalid state when moving away from formula

* Remove setActiveDimension and shouldClose, fixed by async setters

* Fix test dependency

* do not show quick functions tab

* increase documentation popover width

* fix functional test

* Call setActiveDimension when updating visualization

* Simplify handling of flyout with incomplete columns

* Fix test issues

* add description to formula telemetry

* fix schema

* Update from design feedback

* More review comments

* Hide callout border from v7 theme

Co-authored-by: dej611 <dej611@gmail.com>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Joe Reuter <johannes.reuter@elastic.co>
Co-authored-by: Michael Marcialis <michael.marcialis@elastic.co>
Co-authored-by: Joe Reuter <email@johannes-reuter.de>
Co-authored-by: Marco Liberati <marco.liberati@elastic.co>
Co-authored-by: Marco Liberati <dej611@users.noreply.github.com>

Co-authored-by: Wylie Conlon <william.conlon@elastic.co>
Co-authored-by: dej611 <dej611@gmail.com>
Co-authored-by: Joe Reuter <johannes.reuter@elastic.co>
Co-authored-by: Michael Marcialis <michael.marcialis@elastic.co>
Co-authored-by: Joe Reuter <email@johannes-reuter.de>
Co-authored-by: Marco Liberati <marco.liberati@elastic.co>
Co-authored-by: Marco Liberati <dej611@users.noreply.github.com>
2021-06-10 12:14:20 -04:00
Kibana Machine
5c55734ca0
[Lens] Memoize operationMatrix computation (#101745) (#101892)
Co-authored-by: Marco Liberati <dej611@users.noreply.github.com>
2021-06-10 14:58:33 +00:00
Kibana Machine
3eb9b6c392
[Lens] Do not use dynamic coloring for array values (#101750) (#101891)
Co-authored-by: Marco Liberati <dej611@users.noreply.github.com>
2021-06-10 10:56:08 -04:00
Kibana Machine
1d7c3d2769
Cleans comment state when submiting and when init the store (#101861) (#101890)
Co-authored-by: David Sánchez <davidsansol92@gmail.com>
2021-06-10 10:53:30 -04:00
Kibana Machine
aa3c54879e
Small clean up with Cases plugin API (#101668) (#101889)
* Clean up public API of cases plugin

1. Don't use export * on index.ts files that define the public API
2. Add comments to the interface show they show up in the API docs
3. Export types that are part of the public API so they show up in the API docs.
4. Fill in information for the up and coming `description` and `owner` items in kibana.json.

* Update returns comments to be more descriptive

* update api docs

* Remove kibana.json attributes, until PR supporting them is merged.

* Change all exports to export type to avoid increase page bundle size

Co-authored-by: Stacey Gammon <gammon@elastic.co>
2021-06-10 14:50:31 +00:00
Kibana Machine
dd7076b7c4
address code review comments (#101764) (#101887)
Co-authored-by: Stacey Gammon <gammon@elastic.co>
2021-06-10 14:42:47 +00:00
Kibana Machine
92630b7e50
[Security Solution][Endpoint] Adjust the Pending Actions API types (#101814) (#101882)
* Adjust Action Status API types
* add lib/service to fetch host pending actions

Co-authored-by: Paul Tavares <56442535+paul-tavares@users.noreply.github.com>
2021-06-10 10:14:36 -04:00
Pablo Machado
59b05c4dd8
Fix incorrect message displayed on importing Timeline Templates (#101288) (#101881)
Context:
The import button can be used to import both timelines and timeline templates.
In theory, one imported file could have multiple timelines and timeline templates at the same time.

Solution:
Since the import endpoint only returns the total count and not the type of the imported documents.
It seems like that rewording "timeline(s)" to "item(s)" is the most straightforward fix that solves
the user 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-10 09:47:42 -04:00
Pablo Machado
560517f679
Fix UI breaks on providing long search keyword in 'Search Box' (#101385) (#101880)
Allowing words to wrap on whitespaces fixes the issue.
I also added word-break for allowing long words to wrap.
2021-06-10 09:46:47 -04:00
Christos Nasikas
e47e1dcf7a
[Cases] Improve connectors mapping (#101145) (#101862) 2021-06-10 06:54:56 -04:00
Pete Harverson
96a5d4fa3d
[ML] Fixes display of job group badges in recognizer wizard (#101775) (#101858) 2021-06-10 06:21:52 -04:00
Kibana Machine
2fbfde1d32
Fix es_archives path (#101737) (#101857)
Co-authored-by: Domenico Andreoli <domenico.andreoli@elastic.co>
2021-06-10 05:43:21 -04:00
Tim Sullivan
c6d395fe97
[7.x] [Reporting] Make "ScreenCapturePanel" shareable for Canvas (#100623) (#101852)
* [Reporting] Make "ScreenCapturePanel" shareable for Canvas (#100623)

* use ScreenCapturePanel component in Canvas

* use smaller state object

* add comment about canvas-specific shared component

* fix example

* fix toast error

* fix i18n

* fix data-test-subj

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

* fix compatibility type ts

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-06-10 02:25:46 -04:00
Yuliia Naumenko
6b4b1e485e
[Alerting UI] Converted Rules and Connectors management pages to new layout. (#101697) (#101851)
* [Alerting UI] Converted Rules and Connectors management pages to new layout.

* fixed tests

* fixed tests

* fixed tests

* fixed tests
2021-06-09 21:58:16 -04:00
Kibana Machine
c7e8e4f28d
[Fleet] Support granular integrations in policy editor (#101531) (#101848)
* Adjust packageToPackagePolicy to support multiple policy_templates

* Adjust validatePackagePolicy to support multiple policy templates

* Create input for every policy template input instead of grouping

* Related adjustments for previous commit

* Don't key by policy template when package doesn't have integrations

* Adjust limited package check to support multiple policy templates

* First pass at UI support

* Fix imports, add missing schema

* Fix finding input agent templates, adjust tests

* Only enable specific integrations by default in the UI

* Fix import

* Make breadcrumbs and create package policy page title reflect integration, not package

* Only show specific integration inputs when adding integration to a policy

* Change predicate

* Simplify condition

Co-authored-by: Jen Huang <its.jenetic@gmail.com>
2021-06-09 20:27:33 -04:00
Kibana Machine
5f5cd721ff
[Security Solution][Detections] Update detection alert mappings to ECS v1.10.0 (#101680) (#101847)
## Summary

* Grabbed the ECS mappings from [v1.10.0 tag]( https://github.com/elastic/ecs/blob/v1.10.0/generated/elasticsearch/7/template.json)
* Updated the fields that had `constant_keyword` to `keyword` since we do many to 1 of source to signals index
* Wrote a unit tests which tests to ensure we don't have any `constant_keyword` fields
* Updated the `SIGNALS_TEMPLATE_VERSION` version by an increment of 10.

This should mostly fix:
https://github.com/elastic/kibana/issues/101572

Since agents add their data into `_source` even though they have a `constant_keyword`. When agents do not include the values in `_source` we will have to merge `fields` into `_source` before copying which are still planning on doing before release.

### 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

Co-authored-by: Frank Hassanabad <frank.hassanabad@elastic.co>
2021-06-09 20:11:50 -04:00
Nathan Reese
f55cfb3d0e
Change file data visualizer links to point to new location in home application (#101393) (#101844)
* Link to home file data visualizer

* remove unused import

* i18n cleanup

* remove unused import from EmptyState

* use const

* remove ml functional test cases checking for ml_file_data_visualizer

* more clean-up of ml_file_data_visualizer

* jest snapshot and nav to home page in no_ml_access tests

* revert change to functional test dual_privileges_all at everything_space

* revert another change to security_and_spaces/tests/catalogue.ts

* revert changes to x-pack/test/ui_capabilities/security_only/tests/catalogue.ts

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
# Conflicts:
#	src/plugins/index_pattern_management/public/components/index_pattern_table/index_pattern_table.tsx
2021-06-09 19:57:40 -04:00
Kibana Machine
35a5fd6547
[Fleet] Integrations UI: Adjust policies list UI (#101600) (#101838)
* Add "Add Agent" button to package policy list

- Add button to open enrollment flyout from package policy list screen
- Move necessary components up into `public` in order to open enrollment
  flyout from within Integrations application

* Create initial package policy table actions

* Fix context menu link + add a few tests

* Fix import in list_layout

* Unify package policy actions menu in shared component

* Update x-pack/plugins/fleet/public/applications/integrations/sections/epm/screens/detail/index.test.tsx

Co-authored-by: Jean-Louis Leysens <jloleysens@gmail.com>

Co-authored-by: Jean-Louis Leysens <jloleysens@gmail.com>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

Co-authored-by: Kyle Pollich <kyle.pollich@elastic.co>
Co-authored-by: Jean-Louis Leysens <jloleysens@gmail.com>
2021-06-09 19:09:45 -04:00
Kibana Machine
1c2d803e58
[Security Solution] fix security empty overview links (#101536) (#101832)
Co-authored-by: Joey F. Poon <joey.poon@elastic.co>
2021-06-09 18:13:42 -04:00
Kibana Machine
253da63f5a
Unskips migration tests now that elastic search is fixed (#101682) (#101831)
## Summary

Unskips signal migration tests now that elastic search is fixed get alias bug

ES ticket about get alias bug:
https://github.com/elastic/elasticsearch/pull/72953

Tickets related that should be fixed now:
https://github.com/elastic/kibana/issues/99915
https://github.com/elastic/kibana/issues/100305

### 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

Co-authored-by: Frank Hassanabad <frank.hassanabad@elastic.co>
2021-06-09 22:06:52 +00:00