Commit graph

13873 commits

Author SHA1 Message Date
Nathan L Smith 31a481a9dd
Remove dependency between alerts and infra (#88342)
The alerts plugin was importing `JsonObject` from the infra plugin. The infra plugin imported `JsonObject`, `JsonValue`, and `JsonArray` from kibanaUtils and then re-exported them.

Remove the re-export from the infra plugin and instead always import these types from kibanaUtils.
2021-01-15 08:44:28 -06:00
John Schulz 11d4457d97
Don't retry if icon isn't in initial response (#88403) 2021-01-15 09:33:19 -05:00
Aleh Zasypkin 1bd4086032
Move Spaces, Security and EncryptedSavedObjects plugins to separate TS projects (#88365) 2021-01-15 14:55:53 +01:00
Mike Côté a0b787c39a
Fix flaky test for legacy authorization (#87642)
* Unskip test

* Increase attempts to 2 for retryIfConflicts

* Cleanup authorization for updateApiKey
2021-01-15 08:13:15 -05:00
James Gowdy 686ece9aea
[ML] Improving existing job check in anomaly detection wizard (#87674)
* [ML] Improving existing job check in anomaly detection wizard

* fixing job id validation

* allow group ids to be reused

* updating module exists endpoint

* fixing issuse with job without group list

* fixing test and translation ids

* fixing validator when model plot is disabled

* changes based on review

* adding group id check to edit job flyout

* small refactor and fixing edit job issue

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-01-15 12:57:41 +00:00
Jean-Louis Leysens 3dcb98ec67
[ILM] Absolute to relative time conversion (#87822)
* cleaning up unused types and legacy logic

* added new relative age logic with unit tests

* export the calculate relative timing function that returns millisecond values

* added exports to index.ts file

* copy update and test update

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-01-15 13:32:16 +01:00
Aleh Zasypkin abfd8bb9d3
Use documentation links service provided by the core directly. (#88158) 2021-01-15 13:31:51 +01:00
MadameSheema 91a23b7df0
[Security Solution] Fixes and unskips cypress tests (#87972)
* waits for the timeline modal before doing validations

* unskips search bar test

* unskips URL compatibility tests

* unksips attach timeline to a case tests

* unksips sourcerer test

* unskips pagination

* unskips inspect tests

* unskips fields browsers tests

* unskips toogle column in timeline tests

* unskips persistent timeline test

* removes comment

* fixes drag and drop test

* fixes adds a field to the timeline when the user drags and drops a field test

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-01-15 12:27:38 +01:00
James Gowdy df8f9c6f34
[ML] Fixing cloning of anomaly detection job with sparse data (#88322)
* [ML] Fixing cloming of anomaly detection job with sparse data

* removing from population wizard
2021-01-15 09:47:39 +00:00
Aleh Zasypkin 951aa66fe4
Expose AnonymousAccess service through Security OSS plugin. (#87091) 2021-01-15 10:18:58 +01:00
Cauê Marcondes 6beef61f93
[APM] Add license check for significant terms (#88209)
* only shows significant terms under platinum license

* addressing PR comments

* addressing PR comments

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-01-15 09:48:57 +01:00
Dario Gieselaar a0da8bda04
[APM] Optimize anomaly data loading strategy (#87522)
* [APM] Optimize anomaly data loading strategy

Closes #86423.

* Fix tests/types

* Review feedback

* Optimize ML calls for latency chart

* Optimize ML loading for latency chart

* Remove unused optimization

* Update snapshots for E2E tests

* Make sure area is stacked in correct order

* Review feedback + log warning if more than one ML job was found

* Review feedback
2021-01-15 09:35:41 +01:00
Scotty Bollinger 86218a46af
[Workplace Search] Remove user icon from source details (#88218)
* [Workplace Search] Remove user icon from source details

Removes user icons from source details group list, since the users don't exist in Kibana.

* Refactor to remove entire GroupAvatars component

* Remove unused interface

* Remove flex group

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-01-14 21:04:08 -06:00
Constance ca42e9a59f
[App Search] New log retention components + major i18n refactors (#88237)
* Add remaining log retention components

- Will shortly be used by Analytics view

* [i18n] Change log retention date from moment to react-intl FormattedDate

- this correctly localizes the dates when Kibana is in different languages, e.g. zh-CN, ja-JP

* Refactor log_retention/messaging

- Convert to all JSX/React vs plain strings (makes it easier to deal with FormattedDate/FormattedMessages)

- Consolidate to single component that takes various log types (e.g. analytics, api)

- This is important for adding future switches & toggles - there is *significantly* less complex strings to localize this way (2 short strings vs 5+ long sentences)

* Update existing instances to use new LogRetentionMessage

* Update translation strings
- to account for new i18n logs type values & IDs

* Attempt to fix test timezone shenanigans

* [PR feedback] Types

* [PR feedback] i18n pluralization

* Update LogRetentionTooltip and LogRetentionCallout to manage fetching log retention

+ change ILM to LogRetention per PR feedback

* Update LogRetentionLogic to prevent duplicate fetches

- e.g. if both LogRetentionTooltip and LogRetentionCallout are on the same page (which they will be)
2021-01-14 16:01:24 -08:00
Nathan L Smith 0325014b66
Fix links to upgrade assistant (#88393)
We had fixed the link in the header menu a while back, but there were a couple other places where the link had not beed updated.

Replace `KibanaLink` component with a function to get the href for the upgrade assistant and use that everywhere.

Fixes #87647.
2021-01-14 17:36:28 -06:00
Liza Katz d4c31ff096
[Search Sessions] Replace search session constants with kibana.yml configs (#88023)
* Replace search session constants with kibana.yml configs

* fix test

* jest

* rename feature flag

* @lukasolson code review

* Code review - config retreival

* jest fix
2021-01-15 01:14:02 +02:00
Jen Huang d8678ded03
[Fleet] Prevent long names from breaking agent details page (#88383)
* Fix long policy name breaking agent details page

* Fix long agent host name breaking agent details page
2021-01-14 13:39:05 -08:00
Oliver Gupte bc50f66657
[APM] Fixes mixed units in service overview latencies (#88277)
* Closes #87726. Uses ms as the unit for latencies in service overview.

* removes optional chaining in those cases where it is not needed

* updates test snapshot with correct value

* Revert "updates test snapshot with correct value"

This reverts commit 9a1bdd7b44.

* update param name from time -> value

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-01-14 13:19:26 -08:00
Constance 53efccbc3b
[App Search] Analytics - initial logic file & server API routes (#88250)
* Set up server API routes

* Set up very basic AnalyticsLogic file

- mostly just contains API call & basic loading/error state for now - actual usable vars will be defined in a future PR

* [PR feedback] Unnecessary exports

* [PR feedback] Clean up analyticsAvailable reducer

* [PR feedback] Types order

* [PR feedback] Unnecessary API validation
2021-01-14 13:15:39 -08:00
Oliver Gupte e4293a85fc
[APM] Fixes incorrect throughput tpm values in service overview (#88273)
* Closes #88268. Divides the throughput count of the selected range by deltaAsMinutes

* update old test snapshot

* update values in test snapshot

* update values in test snapshot

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-01-14 11:47:15 -08:00
Mike Côté a77f0a63c3
Change some UI copy to reflect guidelines and feedback (#88215)
* Change some labels to reflect copy feedback

* Fix test failures
2021-01-14 14:13:03 -05:00
Anton Dosov f33225d34d
Fix "data-title" attribute in map embeddable (#88337) 2021-01-14 18:46:47 +01:00
Larry Gregory d080128cde
Allow custom index privileges for role management (#88076)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-01-14 12:17:00 -05:00
Sonja Krause-Harder d37852a343
[EPM] Install Lens assets from packages if present. (#88189)
* Install Lens assets from packages if present.

* Add integration tests for Lens assets.
2021-01-14 18:01:00 +01:00
Liza Katz 20bf774d10
[Search] Add cancel function to pollSearch (#85787)
* Add cancel functionality to pollSearch
Makes sure that DELETE requests are properly sent even if consumer unsubscribes.

* Update poll_search.test.ts

* cancel on abort

* fix jest

* ADded jest test

* Cancel to be called once

* Only cancel internally on abort

* ts + addd defer

* ts

* make cancel code prettier

* Cancel even after unsubscribe

* Throw abort error if already aborted

* Only delete once

Co-authored-by: Lukas Olson <olson.lukas@gmail.com>
2021-01-14 09:36:39 -07:00
Paul Tavares 9f578445db
[Security Solution][Endpoint] Fix server start to ensure it does not prevent Kibana from starting if optional plugin dependencies are not available (#88291)
* Ensure that services that depend on fleet are only initialized if fleet dependency is available
* rename "Ingest manager" to "Fleet" in UI strings/code comments
2021-01-14 11:19:29 -05:00
MadameSheema b7516ce034
[Security Solution] Fixes rules persistency problem (#88198)
* deletes existing rules

* fixes threshold rule test

* unskips ml rule test

* improves rule deletion

* unskips and fixes rules tests

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-01-14 16:58:27 +01:00
Nicolas Chaulet 2bde8aa5fb
[Fleet]Fix updaing package policy without input (#88326) 2021-01-14 11:54:41 -04:00
Joe Portner a62d6939bd
Fixes incomplete client cert chain when using PKI authentication with the login selector (#88229) 2021-01-14 09:15:41 -05:00
Alison Goryachev 8678954122
[Watcher] Update skipped jest tests (#88225) 2021-01-14 09:00:18 -05:00
John Schulz ca87bc495d
Fix broken icon key for Maps (#88093)
## PR Summary
Show [`emsApp` icon from EUI](https://eui.elastic.co/#/display/icons#apps) if integration includes map assets.

<img width="229" alt="Screen Shot 2021-01-12 at 3 14 14 PM" src="https://user-images.githubusercontent.com/57655/104367878-65628280-54e9-11eb-8d9c-fa838e2c15ae.png">

Looking at https://github.com/elastic/kibana/pull/62059#discussion_r401211966, I believe it landed with the incorrect key at a time when that part of the page wasn't visible. When we enabled that section, we likely didn't notice the missing key since most integrations don't have Maps assets

## Bug: `master` doesn't have an icon for Map assets
 1. Visit an integration with map assets, like AWS http://localhost:5601/app/fleet#/integrations/detail/aws-0.3.16
 2. Observe missing icon for Map in right column summary & HTTP request for `/app/mapApp`
    <img width="1013" alt="Screen Shot 2021-01-12 at 3 10 44 PM" src="https://user-images.githubusercontent.com/57655/104367875-64c9ec00-54e9-11eb-81d8-982bec862f5f.png">

## This PR adds one
 1. Visit an integration with map assets, like AWS http://localhost:5601/app/fleet#/integrations/detail/aws-0.3.16
 2. Observe EMS icon is present in right column summary
    <img width="1087" alt="Screen Shot 2021-01-12 at 3 11 39 PM" src="https://user-images.githubusercontent.com/57655/104367877-65628280-54e9-11eb-91da-578fec6ff769.png">
2021-01-14 08:53:16 -05:00
Gil Raphaelli c7b963e6fc
Add agent logos (#88128) 2021-01-14 08:06:24 -05:00
Shahzad c2fc58310a
[Uptime] simple monitor status alert fix for page duty and other connectors (#87460)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-01-14 12:00:56 +01:00
Shahzad 6ec868b54e
[Uptime] keep filters state between tabs (#87997)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-01-14 11:51:01 +01:00
Cauê Marcondes 75891b78ea
[APM] Blank page when selecting a future time range (#87298)
* fixing blank page

* fixing blank page

* addressing PR comments

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-01-14 09:55:16 +01:00
spalger 850242cd42 skip suites failing es promotion (#88302) 2021-01-13 22:03:44 -07:00
Andrew Wilkins 0eb5c7bf0e
[Fleet] add "traces" type to data stream list (#87985)
Update the index pattern uysed for populating
the list of data streams to include traces-*-*.

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-01-14 09:29:31 +08:00
Mikhail Shustov bc06280451
[DX] SavedObjectsManagement to TS project (#88240)
* som to ts project

* global_search_providers to ts projecvt
2021-01-13 22:23:06 +01:00
Mikhail Shustov 5814ca6e05
[DX] move some ES UI plugins to TS project (#88050)
* es_ui_shared to ts project

* console to ts project

* console_extensions to ts project

* searchprofiler to ts project

* update includes
2021-01-13 21:58:34 +01:00
Nicolas Chaulet 28d61bf5fa
[Fleet] Fix agent status updating count, and mitigate performance issue (#88019) 2021-01-13 16:29:32 -04:00
Madison Caldwell 66129efc15
Fix timeline query for threshold rules (#88217) 2021-01-13 15:29:14 -05:00
Oliver Gupte 5ed91585a8
[APM] Fixes inconsistent labels for throughput & latency (#88101)
* Closes #87483. Updates several labels to be consistent accross views.

* Updates integration tests/snapshots with new term

* Changes "traffic" => "throughput" in the labels

* addresses feedback from PR

* includes tpm unit in Observability overview page and updates test
2021-01-13 12:09:03 -08:00
Søren Louv-Jansen d1b348e621
[APM] Fix incorrect table column header (95th instead of avg) (#88188) 2021-01-13 21:01:44 +01:00
Søren Louv-Jansen de5a97e1f1
[APM] Hide recording setting from from RUM agents (#88152) 2021-01-13 20:53:44 +01:00
Alison Goryachev d9bd7b4fd6
[ILM] Surface linked hidden indices for policies (#87960) 2021-01-13 14:50:01 -05:00
Anton Dosov febe1f5900
[Search Session] Fix integration in vega, timelion and TSVB (#87862) 2021-01-13 20:45:14 +01:00
Thom Heymann 3d749ad444
Bumped axios to 0.21.1 (#87776)
* Bumped axios to 0.21.1

* Update dist

* Consolidated dependencies

* Added missing mime-type types

* Rebuild dist

* Consolidated octokit/auth-token

* Fix axios wrapper ensuring non-200 throws error

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-01-13 19:41:31 +00:00
Constance c1e21deac6
[App Search] Set up Analytics router (#88095)
* [Setup] Analytics routes & page title consts

* Add AnalyticsRouter
- with TODO views

* Update EngineRouter to use AnalyticsRouter

+ minor rearranging of import order

+ update EngineNav to show active flag for subroutes

* [Polish] Add 404 fallback to Analytics subroutes

+ add custom breadcrumb trail prop to NotFound component

* [PR feedback] DRY out typing
2021-01-13 11:08:20 -08:00
Nathan L Smith e07c541036
Reset time range if either value changes (#88186)
Previously we had `getStart` and `getEnd` methods used in `useUrlParams` that would give a new value if the respective `rangeFrom`/`rangeTo` had change.

This had the effect of sometimes making the end time sooner than the start time, causing errors on the page.

`getStart` and `getEnd` have been replaced with a `getDateRange` method that checks if *either* value has changed and recaluates the start/end, but leaves them the same if both values have not changed.

Fixes #85238.
2021-01-13 13:07:00 -06:00
Constance 0e118c2099
[App Search] EnginesLogic + minor UX fix (#87561)
* [Misc cleanup] DRY out type def

EnginesTableData was made before we started importing more types over from ent-search; we should reuse the more complete EngineDetails instead of re-declaring our own

* Add EnginesLogic file + tests
- based on current state inside EnginesOverview

- Not a 1:1 translation from ent-search's EnginesLogic b/c the table component/view is different
- also missing engine creation which will be a separate PR

* Update EnginesOverview to use EnginesLogic

- should be significantly simpler
- tests no longer need mountAsync

* [Extra] Make up for lost icon.tsx coverage

- because we no longer use mount() in the engines overview tests, I'm adding an extra set of quick shallow render tests to cover the icon .tsx lines

* [Misc] Rename fetchX to loadY (copying Kea)
2021-01-13 10:24:04 -08:00
Quynh Nguyen 6e3a06b4aa
[ML] Fix Anomaly Explorer & Single Metric Viewer not plotting correctly for detectors with non zero count function (#87903) 2021-01-13 12:19:01 -06:00
Søren Louv-Jansen badd2b35f2
[APM] Hide “Create configuration” for users without write access (#88149)
* [APM] Hide “Create configuration” for read-only user

* also hide description

* disable create button

* fix ts error for EuiButton
2021-01-13 19:00:01 +01:00
Nathan Reese e2dc9464fa
[Maps] create Elasticsearch search source layer descriptor (#87855)
* [Maps] create Elasticsearch search source layer descriptor

* tslint

* tslint

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-01-13 10:56:18 -07:00
Justin Kambic eb2018b642
[Uptime] Unskip jest tests for ExecutedStep component (#88105)
* Revise skipped tests to use RTL.

* Rename a test.

* Add a test covering default status badge text.

* Refactor a test to remove redundant code.
2021-01-13 12:24:52 -05:00
Constance 64275cd11a
[App Search] Minor log retention refactors (#88140)
* Move reused log retention components to own folder

- e.g., logic file, helpers used by other views & not just settings

* Update settings-specific views to reference top-level folder

- I'm leaving the panel and the confirmation modal within settings as that isn't used anywhere outside the settings page, but we can revisit this if needed or if people think it makes more sense to keep everything log related together

* [bug] Fix nested <p> error in log retention confirmation modal
2021-01-13 08:23:56 -08:00
Joe Reuter 94ca8ab1c3
Migrate most kibana app plugins to TS projects (#87636) 2021-01-13 17:15:41 +01:00
spalger f4a348f762 skip flaky test (#75106) 2021-01-13 09:14:39 -07:00
spalger 05f5192d1d skipping flaky suite (#87988) 2021-01-13 08:51:30 -07:00
spalger 3953f9647e skip flaky suite (#88177) 2021-01-13 08:38:41 -07:00
Sonja Krause-Harder 6a55d46b2e
[EPM] Include both kibana and elasticsearch assets in package information (#88036)
* Return both kibana and elasticsearch assets.

* Fix type complaints.
2021-01-13 16:32:55 +01:00
Joe Reuter 40b65630be
set aria-pressed for function buttons (#87825) 2021-01-13 16:05:52 +01:00
Matthew Kime 109bed0768
revert runtime fields editor plugin (#88132) 2021-01-13 08:34:30 -06:00
Christiane (Tina) Heiligers 2eca6aa11e
Converts Telemetry Management Section to TS project refs (#88073) 2021-01-13 07:09:32 -07:00
Robert Oskamp e274a60927
[ML] Functional tests - stabilize AD job delete test (#88148)
This PR stabilizes the AD job delete tests by waiting for the job to not exist anymore before checking the job list.
2021-01-13 15:04:38 +01:00
Nicolas Chaulet 4c5d8be8da
[Fleet] Remove misleading information from enrollment token revoke modal (#88094) 2021-01-13 10:00:26 -04:00
ymao1 7334b96516
CSS fix for connector list (#87831) 2021-01-13 08:12:58 -05:00
ymao1 2c8b518f69
Fixes Failing test: Chrome X-Pack UI Functional Tests.x-pack/test/functional_with_es_ssl/apps/triggers_actions_ui/alerts_list·ts - Actions and Triggers app alerts list should display total alerts by status and error banner only when exists alerts with status error (#88119)
* Unskipping test

* Adding refresh before checking status
2021-01-13 08:01:08 -05:00
Joe Reuter ed9479738d
make sure filter object is persistable (#87828) 2021-01-13 13:32:14 +01:00
Joe Reuter cea39d90b7
close popover on repeated button click (#87834) 2021-01-13 13:31:24 +01:00
Nicolas Chaulet 156fb3d33c
[Fleet] Only display logs UI for agent >= 7.11 (#87926) 2021-01-13 07:30:21 -04:00
Dominique Clarke ff17581f45
[Uptime] update synthentics screenshot preview images (#87602)
* update PingTimestamp caption and add spinner for loading images

* use FETCH_STATUS to determine render state for PingTimestamp

* add tests for ping timestamp

* adjust ping timestamp caption

* update screenshot to use EuiImage

* remove deprecated translations

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-01-13 04:48:37 -05:00
Madison Caldwell af02f3d83f
[Security Solution][Threshold Rules] Fixes for 7.11 (#88120)
* Use OR for threshold timeline query (not AND)

* Speed up aggregatable fields filter with mutation
2021-01-13 04:44:08 -05:00
Marius Dragomir a98052bc72
dismiss telemetry banner for ems_test (#88096)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-01-13 10:29:16 +01:00
Dima Arnautov 1f131b250f
[Transform] Functional tests for latest method (#86966)
* [ML] create latest transform from index pattern

* [Transform] refactor, tests for saved search

* [Transform] cloning tests for latest transform

* [Transform] fix cloning test, add editing tests

* [Transform] fix typo

* [Transform] disable cloning tests

* [Transform] add assertion for selected tranform function

* [Transform] disable editing tests

* [Transform] disable editing and cloning tests for latest function
2021-01-13 10:05:05 +01:00
Shahzad ba05b7b007
fix waterfall scroll color for dark theme (#87833) 2021-01-13 09:18:45 +01:00
Tyler Smalley d306c85d03 skip flaky suite (#88130) 2021-01-12 21:18:29 -08:00
Oliver Gupte ed531bb4c2
Closes #85328. Adds 'repositionOnScroll' prop to expression popovers (#88085) 2021-01-12 21:15:27 -08:00
Devin W. Hurley e339018285
[Security Solution] [Detections] Fix bug to allow lower privileged users to close alerts (#87761)
* remove canUserCRUD from signal actions and remove refresh param from open_close_signals route. 'refresh' requires maintenance / manage / all privileges for signals index

* adds 'maintenance' to privileges route

* fix unit teset typing

* update tests, updated lists e2e tests since it relies on the readPrivileges function of SIEM so any changes to the expected response from there must also be changed in the lists privileges route

* update scripts roles to include maintenance for roles that do not have privileges higher than 'maintenance'

* fix open-close signals integration test
2021-01-12 21:16:06 -05:00
Patryk Kopyciński 500edba975
[Security Solution] Fix Investigate in Timeline Threshold rule signal… (#87907)
* [Security Solution] Fix Investigate in Timeline Threshold rule signals logic

* fix tests

* PR comments

* Fix positioning of FieldsBrowser

* update cypress tests
2021-01-12 20:56:08 -05:00
Yuliia Naumenko fb67443e6d
[EventLog] Added event log API to get events for multiple saved objects. (#87596)
* Added alerting API to get all active instances

* modofied event log findEventsBySavedObject to support bulk ids, renamed to findEventsBySavedObjectIds

* fixed faling typechecks

* fixed crash on zpd/api/event_log/alert/84c00970-5130-11eb-9fa7/_find for non existing id

* fixed faling typechecks

* fixed faling typechecks

* fixed due to comments

* fixed due to comments

* fixed failing test

* fixed due to comments
2021-01-12 16:25:23 -08:00
Gidi Meir Morris 5e4402c374
[Alerting] Shift polling interval by random amount when Task Manager experiences consistent claim version conflicts (#88020)
This PR Introduces a `pollingDelay` which is applied to the polling interval whenever the average percentage of tasks experiencing a version conflict is higher than a preconfigured threshold (default to 80%).
2021-01-12 23:34:07 +00:00
Thomas Neirynck 14d96da750
[Maps] Show plus sign for term join metrics (#88049) 2021-01-12 17:01:55 -05:00
Nathan L Smith d53f832f16
TS project references for translations plugin (#88022)
Observability has this as a dependency, so adding TS project references in service of that.
2021-01-12 15:07:27 -06:00
Justin Kambic 1094274556
[Uptime] Remove prototype overwrite in unit test (#73709)
* Remove prototype overwrite in unit test.

* Wrap calls to prototype functions with jest.spyOn.

* add additional component test helpers

* add test examples

* uptime testing utils remove custom prefix from props and parameter options

* skip executed step tests

* adjust MlJobLink test

* add testing util interfaces

* Move updated test files to correct locations.

* Move other test file to correct location.

* Revert unintended changes from merge.

* Revert unintended changes from merge.

* update mock core

* combine wrappers into one custom render function

* Move mock helpers to helper file. Update snapshots.

* Refactor tests to use RTL over enzyme.

* Refactor \`PingHistogram\` component tests to prefer RTL to Enzyme.

* Drop obsolete snapshot file.

* Remove obsolete file leftover from merge error.

* Fix outdated import path.

* Prefer custom render to vanilla.

* Fix formatting issue uncovered by unit test, and update test assertion.

* Add test for single location.

Co-authored-by: Dominique Clarke <dominique.clarke@elastic.co>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-01-12 15:08:10 -05:00
Melissa Alvarez 1ab46afef1
disable actions if no permissions (#88034) 2021-01-12 15:02:32 -05:00
Oliver Gupte 440123e958
Closes #86989. Disable caching for fetched custom links (#87932) 2021-01-12 12:02:18 -08:00
Constance 04739d851c
[App Search] Add AnalyticsChart component to EnginesOverview (#87752)
* Set up Kibana charts plugin dependency

- required for using shared colors/themes/etc.
- see https://github.com/elastic/kibana/tree/master/src/plugins/charts

* Add reusable AnalyticsChart component

+ util for converting data from our server API to data that Elastic Charts can use

* Update EngineOverview to use AnalyticsChart

+ remove now-unnecessary endDate value (we don't really need it just IMO)

* [PR feedback] Return type

* [Self feedback] naming - remove pluralization
2021-01-12 11:43:01 -08:00
Quynh Nguyen a1c2422261
[ML] Fix inconsistent padding for long top_values in Data Visualizer & hover color of expanded row (#87937) 2021-01-12 12:57:21 -06:00
Thomas Neirynck d321950b93
[Maps] Support geometry-collection (#87867) 2021-01-12 13:49:59 -05:00
Chris Roberson 33603e749d
[Monitoring] Cloud property not properly passed when no monitoring data found (#87649)
* Fix parameter usage

* Fix up incorrect usage again

* Add another check

* Fix tests

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-01-12 13:15:08 -05:00
Joe Portner 07a3756a62
Create Spaces OSS plugin (#87585) 2021-01-12 12:26:40 -05:00
Tiago Costa 5fb5605ffa
chore(NA): move missing monitoring plugin tests out of __tests__ folder (#88016) 2021-01-12 17:23:11 +00:00
Tiago Costa 47cac6c401
chore(NA): move missing canvas plugin tests out of __tests__ folder (#87898) 2021-01-12 17:21:16 +00:00
Jen Huang 44ccf285e5
Move creation of state container to render-time in order to initialize state from URL correctly (#87955) 2021-01-12 09:15:07 -08:00
Patrick Mueller 8fe204fcab
[actions] fixes action proxies to set the right agent based on target url (#86415)
Previously, the http and https proxy agents used by actions were created based
on the protocol of the proxy URL itself - if the proxy was an http URL, both
the generated http and https agents supplied to axios were actually both
http proxy agents; if the proxy was an https URL, both the generated http and
https agents supplied to axios were both https proxy agents.

This PR changes so that both an http and https proxy agent are created and
assigned as the appropriate agents for axios.  Similar changes were made to
the slack action, which does not directly use axios.
2021-01-12 11:54:40 -05:00
Chris Roberson a21ad0d126
[Monitoring] Remove deprecated watcher-based cluster alerts (#85047)
* First draft

* Update to use actual API

* Remove this file

* Update translation key

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-01-12 11:48:18 -05:00
Chris Roberson fc994dfe97
Update logstash files to ts where we read from source (#86787)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-01-12 11:47:49 -05:00
Chris Roberson 04d4d8523d
Use fetchClustersRange (#87882)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-01-12 11:47:30 -05:00
Anton Dosov 86d53b683e
[Search Sessions][Discover] Send to background integration improvements and fixes (#87311) 2021-01-12 17:45:37 +01:00
Lisa Cawley 78dea4f03f
Use documentation link service for security links (#87409) 2021-01-12 08:40:10 -08:00
Alejandro Fernández Gómez 1a9836b296
[Logs UI] Add <LogStream/> documentation to the infra Storybook (#87169)
Co-authored-by: Felix Stürmer <weltenwort@users.noreply.github.com>
2021-01-12 17:33:50 +01:00
Joe Reuter 807e8bdeb2
Kibana app and presentation ts projects (#87639) 2021-01-12 17:33:07 +01:00
Alexey Antonov 0b7e83f736
[TSVB] Allow custom label for fields via index pattern field management (#84612)
* [TSVB] Allow custom label for fields via index pattern field management

Closes: #84336

* replace saveObject, elasticsearch client to new one

* fix CI

* update schema

* fix Top Hit

* some changes

* partially move getting fields into client side

* fix PR comments

* fix issue with getting fields

* move SanitizedFieldType to common types

* fix issue on changing index pattern

* fix issue

* fix regression

* some work

* remove extractFieldName, createCustomLabelSelectHandler

* request/response processors should be async

* some work

* remove tests for createCustomLabelSelectHandler

* fix table

* fix placeholder

* some work

* fix jest

* fix CI

* fix label for table view

* test: visualize app visual builder switch index patterns should be able to switch between index patterns

* fix functional tests

* fix sorting

* fix labels for entire timerange mode

* add createFieldsFetcher method

* table view - fix pivot label

* fix PR comments

* fix issue with selecting buckets scripts

* fix types

* Update create_select_handler.test.ts

* fix PR comments

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-01-12 19:28:45 +03:00
igoristic ef441cca24
Alerts Status on clusters listing page (#87969) 2021-01-12 11:06:48 -05:00
Davis Plumlee 25bac19321
[Security Solution][Detection Rules] Fixes Threshold rule schema validator (#87946) 2021-01-12 08:57:06 -07:00
Bohdan Tsymbala 752a2bd943
Extracted some parts of server side validation from schema into shared space. Changed the schema structure a bit to avoid casting inside validation code. (#87523) 2021-01-12 16:31:35 +01:00
Anton Dosov d3303f28bb
[Search] Search Sessions with relative time range (#84405) 2021-01-12 14:51:04 +01:00
Paul Tavares 02695ef5ad
[Fleet] Show Count of Agent Policies on Integration Details (#86916)
* component to show count of agent policies for integration
* API route and service to return stats of package usage
2021-01-12 07:56:05 -05:00
Aleh Zasypkin 31e66979b9
Do not embedd credentials into ES URL and enable anonymous tests. (#87987) 2021-01-12 13:51:54 +01:00
Dima Arnautov 83e8fe8ef0
[Transform] Show destination index mapping warning for the latest transform (#87858)
* [Transform] show callout for the latest transform

* [Transform] fix flex styles

* [Transform] change to vertical layout, update warning message

* [Transform] fix messages
2021-01-12 13:03:47 +01:00
Joe Reuter 94b02d97ed
[Lens] Implement deep linking and embedding (#84416) 2021-01-12 10:45:53 +01:00
Andrew Goldstein 46083c0973
[Security Solution] Accessibility (a11y) fixes (#87783)
## [Security Solution] Accessibility (a11y) fixes

This PR fixes the following accessibility (a11y) issues:

- Fixes an issue that prevented tabbing through all elements on pages with embedded Timelines
- Fixes an issue where the Timeline data providers popover menu was not displayed when Enter is pressed
- Fixes an issue where duplicate draggable IDs caused errors when re-arranging Timeline columns
- Fixes an issue where Timeline columns could not be removed or sorted via keyboard
- Fixes an issue where focus is not restored to the `Customize Columns` button when the `Reset` button is pressed
- Fixes an issue where filtering the `Customize Event Renderers` view via the input cleared selected entries
- Fixes an issue where the active timeline button wasn't focused when Timeline is closed
- Fixes an issue where the `(+)` Create / Open Timeline button's hover panel didn't own focus
2021-01-12 01:02:53 -07:00
Tiago Costa 5dca937c01
chore(NA): move reporting plugin test fixtures out of __tests__ folder (#87888)
* chore(NA): move reporting plugin test fixtures out of __tests__ folder

* fix(NA): fix a test import
2021-01-12 02:44:07 +00:00
Tiago Costa e8285668a7
chore(NA): move missing apm plugin tests out of __tests__ folder (#87894) 2021-01-12 02:43:03 +00:00
Dominique Clarke ca31bd80b6
[Uptime] Tests/uptime testing utils (#87650)
* add additional component test helpers

* add test examples

* uptime testing utils remove custom prefix from props and parameter options

* skip executed step tests

* adjust MlJobLink test

* add testing util interfaces

* update mock core

* combine wrappers into one custom render function

* split enzyme helpers and rtl helpers into different files and adjust types

* adjust types

* spread core on render function

* remove unnecessary items from MLJobLink test

* update use_monitor_breadcrumbs test

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-01-11 20:02:23 -05:00
Phillip Burch f54f155305
[Metrics UI] Add APM, uptime and create alert links to overlay (#87883)
* Add APM, uptime and create alert links to overlay

* Remove unused i18n
2021-01-11 18:36:39 -06:00
Nathan Reese ddf1b67559
[Maps] move map embeddable display properties to map settings (#86395)
* [Maps] move map embeddable display properties to map settings

* update uptime EmbeddedMap

* tslint

* more cleanup

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-01-11 16:18:01 -07:00
Patryk Kopyciński 1e7c3f88ec
[Security Solution] Fix sorting on unmapped fields in Timeline Events… (#87241)
* [Security Solution] Fix sorting on unmapped fields in Timeline Events table

* set unmapped_type to the column type

* add missing types

* Update saved_object_mappings.ts

Co-authored-by: Xavier Mouligneau <189600+XavierM@users.noreply.github.com>
2021-01-11 18:09:38 -05:00
Søren Louv-Jansen 7cd1fa3167
[APM] Cleanup: Remove isValidCoordinateValue and getResponseTimeTooltipFormatter (#87836) 2021-01-11 23:43:42 +01:00
Constance cf086b678b
[App Search] Minor const cleanup (#87885)
* DRY out repeated DOCUMENTS_TITLE

* Move temporary title const's in engine folder to their own respective folders

- might as well get it set up early + prevents us from forgetting to clean this up later

* Update engine nav & engine router files
2021-01-11 13:52:24 -08:00
Dominique Clarke 02f7956db3
[Uptime] Waterfall Chart - enable timings for local files by leveraging total time (#87424)
* uptime waterfall enable timings for static files by leveraging total time

* update cases for when their is no waterfall timing available

* add showTooltip propertier to WaterfallDataSeriesConfigProperties

* remove content downloading from the legend

* add mime type to content downloading label

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-01-11 16:35:02 -05:00
ymao1 666af32be4
[Alerting] Showing confirmation modal on Alert Add/Edit when flyout closed without saving and changes made. (#86370)
* Adding hasChanged check and showing confirmation modal if something has changed

* Showing confirmation always on close

* Adding functional test

* Setting name and tags for APM alerts using initial values instead of setAlertProperty

* Checking for alert param changes separately

* Checking for alert param changes separately

* Fixing functional test

* Resetting initial alert params on alert type change

* Fixing duplicate import

* Cloning edited alert

* PR fixes

* PR fixes

* Updating modal wording

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-01-11 16:16:10 -05:00
Rudolf Meijering f8b1cdd81d
Prevent kibana crashing when multiple processes start APM telemetry task in parallel (#87645)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-01-11 21:38:54 +01:00
Lisa Cawley a9797999a1
[ML] Use documentation link service in more ML pages (#87389) 2021-01-11 11:39:04 -08:00
Chris Roberson ff8d30bc6c
[Monitoring] Stop using constructor.name for logstash pipelines (#87386)
* Use typeString instead

* Used wrong type string

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-01-11 14:32:19 -05:00
Nathan Reese 89e7cd6808
[maps] abort sync data if any data request fails (#87381)
* [maps] abort sync data if any data request fails

* review feedback

* fix broken rename of e to error

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-01-11 12:28:24 -07:00
Kevin Logan 379f9c9646
[Security Solution] ensure that license is preserved when loading policy details (#87780) 2021-01-11 13:55:15 -05:00
Gidi Meir Morris f384c484b7
[Task Manager] adds additional polling stats to Task Manager monitoring (#87766)
Adds additional polling stats to Task Manager monitoring:

- **duration**: Running average of polling duration measuring the time from the scheduled polling cycle start until all claimed tasks are marked as running
- **claim_conflicts**: Running average of number of version clashes caused by the markAvailableTasksAsClaimed stage of the polling cycle
- **claim_mismatches**: Running average of mismatch between the number of tasks updated by the markAvailableTasksAsClaimed stage of the polling cycle and the number of docs found by the sweepForClaimedTasks stage
- **load** - Running average of the percentage of workers in use at the end of each polling cycle.
2021-01-11 18:32:24 +00:00
Chris Roberson d4b3ea9c3d
Ensure we use the right duration for messaging on this alert (#87579)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-01-11 13:27:32 -05:00
Justin Ibarra f12228e635
[Detection Rules] Add 7.11 rules (#87422)
* [Detection Rules] Add 7.11 rules
* add empty array for missing technique
2021-01-11 08:54:38 -09:00
Sandra Gonzales 61987df922
[Fleet] use package storage when getting a package (#85337)
* getPackageFromSource to use package storage

* fix type

* use bulkGet

* add data streams and policy templates to package info from storage

* fix merge conflict

* comment out policy_templates for now

* add policy_templates to package info, remove required inputs from parseAndVerifyPolicyTemplates

* add storage assets to cache

* tidy up

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-01-11 12:35:11 -05:00
Cauê Marcondes e3455ce35b
[APM] latencyAggregationType is not persisted when navigation to Transaction overview to detail (#87046)
* persisting latency aggregation type

* addressing PR comments

* removing useLatencyAggregationType hook

* addressing PR comments

* addressing PR comments

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-01-11 18:31:16 +01:00
Tiago Costa 183cf56fcd
chore(NA): move maps plugin test fixtures out of __tests__ folder (#87764)
* chore(NA): move maps plugin test fixtures out of __tests__ folder

* chore(NA): last missing __tests__ folders renamed

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-01-11 17:14:46 +00:00
Marco Liberati 132e85144b
[Lens] Add specific IP and Range/Interval sorting to datatable (#87006)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-01-11 16:51:00 +01:00
Christos Nasikas a1931acdc5
[Security Solution][Case] Attach alerts to cases: Tests (#86305)
Co-authored-by: Steph Milovic <stephanie.milovic@elastic.co>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-01-11 17:44:35 +02:00
Shahzad 8d385a4ebd
[Uptime] Fix kuery bar dark theme (#87827) 2021-01-11 16:30:01 +01:00
Liza Katz 3eeec0f571
[Search] Search Sessions Monitoring Task (#85253)
* Monitor ids

* import fix

* solve circular dep

* eslint

* mock circular dep

* max retries test

* mock circular dep

* test

* jest <(-:C

* jestttttt

* [data.search] Move search method inside session service and add tests

* merge

* Move background session service to data_enhanced plugin

* Better logs
Save IDs only in monitoring loop

* Fix types

* Space aware session service

* ts

* initial

* initial

* Fix session service saving

* merge fix

* stable stringify

* INMEM_MAX_SESSIONS

* INMEM_MAX_SESSIONS

* use the status API

* Move task scheduling behind a feature flag

* Update x-pack/plugins/data_enhanced/server/search/session/session_service.ts

Co-authored-by: Anton Dosov <dosantappdev@gmail.com>

* Add unit tests

* Update x-pack/plugins/data_enhanced/server/search/session/session_service.ts

Co-authored-by: Anton Dosov <dosantappdev@gmail.com>

* Use setTimeout to schedule monitoring steps

* Update request_utils.ts

* settimeout

* tiny cleanup

* Core review + use client.asyncSearch.status

* update ts

* fix unit test

* code review fixes

* Save individual search errors on SO

* Don't re-fetch completed or errored searches

* Rename Background Sessions to Search Sessions (with a send to background action)

* doc

* doc

* jest fun

* rename rfc

* translations

* merge fix

* merge fix

* code review

* update so name in features

* Move deleteTaskIfItExists to task manager

* task_manager to ts project

* Move deleteTaskIfItExists to public contract

* mock

* use task store

* ts

* code review

* code review + jest

* Alerting code review

Co-authored-by: Lukas Olson <olson.lukas@gmail.com>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Anton Dosov <dosantappdev@gmail.com>
Co-authored-by: restrry <restrry@gmail.com>
2021-01-11 16:36:38 +02:00
Christiane (Tina) Heiligers 0549f94332
[DX] Management to TS projects (#87660)
* Adds management to tsconfig refs

* removes preemptive script fix
2021-01-11 07:14:22 -07:00
Jean-Louis Leysens 8a21b64007
prettify json (#87612)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-01-11 13:26:46 +01:00
Robert Oskamp 55fe83d4d1
[ML] API integration tests - fix sorting in saved object status test (#87800)
This PR fixes the sorting of response body jobs in the saved object status test.
2021-01-11 12:26:55 +01:00
Casper Hübertz c545b32755
[APM] Define placement “Right” to offset tooltip (#87729) 2021-01-11 10:58:06 +01:00
Pierre Gayvallet a0d33dc3a9
Fix UI glitch on SOM delete confirmation modal (#87623)
* extract delete confirm modal

* extract the export modal

* add data-test-subj to confirm modal

* add comment on why we can't use EuiConfirmModal
2021-01-11 10:26:02 +01:00
Dominique Clarke 0ff6965cb3
[Uptime] Fix/details page tabs (#86296)
* Remove tabs from details page

* update

* fix monitord id

* var name

* add Uptime PageHeader tests to test for the presences of tabs or header

* add Uptime MonitorPageTitle test

* Uptime adjust auto generated monitor id regex

* Uptime add tests for MonitorPageTitle to test behavior for missing monitor names and auto generated monitor ids

* remove history from MonitorPageTitle test

* adjust uptime tabs tests

* adjust MonitorPageTitle tests to mock useSelector

* adjust uptime PageHeader tests

* adjust import order in page_header.test

* add props to Uptime PageHeader to determine render, rather than route context

* alphabetize props in Uptime PageHeader

* remove header from individual pages

* add indepdent page header route that matches all paths

* adjust monitor tests to use mockReduxHooks helper, and add mockReactRouterDomHooks

* update tests

* adjust header spacing

Co-authored-by: Shahzad <shahzad31comp@gmail.com>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-01-10 20:55:43 -05:00
Quynh Nguyen db022a3550
[ML] Fix earliest and latest texts for date fields (#87482)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-01-08 13:23:54 -06:00
Tiago Costa e20817e57c
chore(NA): move grokdebugger plugin test fixtures out of __tests__ folder (#87765) 2021-01-08 16:23:55 +00:00
Patryk Kopyciński 5c4e23045c
[Security Solution] Refactor Cypress scenarios to use internal contex… (#86609) 2021-01-08 11:10:37 +01:00
Angela Chuang 4986bea8b6
[Security Solution] Unskip cypress tests (#86653)
* unskip data provider cypress test

* remove extra whitespace for filter classes

* remove cy.wait

* update functional test

* fix cypress and add tabType to dataTestSubj

* fix cypress test

* revert createNewTimeline task

* fix dependency

* fix line error

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-01-08 06:59:05 +00:00
Tyler Smalley 91d73cf981 skip flaky suite (#87105) 2021-01-07 15:32:01 -08:00
Davis Plumlee 285809e6b5
[Security Solution][Detections] Alert table status update bug (#87243) 2021-01-07 15:14:30 -07:00
Tiago Costa 354a79a280
chore(NA): move watcher plugin tests out of __tests__ folder (#87599)
* chore(NA): move watcher plugin tests out of __tests__ folder

* chore(NA): renaming client_integration into tests_client_integration

* chore(NA): rename test helper config file

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-01-07 21:44:26 +00:00
Sébastien Loix 6d6a805734
[Index templates] Keep configuration of data stream when editing (#87666) 2021-01-07 21:42:12 +00:00
Yara Tercero d03b20a38c
[Security Solution][Detections] - Exceptions table endpoint list bug fix (disable delete of endpoint list) (#87694)
## Summary

Addresses issue 87112 .

With the addition of the exceptions table, users were able to now delete exception lists from the UI. However, the "endpoint_list" is particular in some ways and should not be so easily deleted from the UI. Moved to disable the delete button for "endpoint_list exception list.
2021-01-07 15:48:35 -05:00
Corey Robertson fdfe6559b0
[Canvas] Register addons async (#86977)
* Make canvas registries accept async functions

* Remove some comments

* Remove comment

* Update x-pack/plugins/canvas/public/registries.ts

Co-authored-by: Clint Andrew Hall <clint@clintandrewhall.com>

* Update x-pack/plugins/canvas/public/registries.ts

Co-authored-by: Clint Andrew Hall <clint@clintandrewhall.com>

* Add ts error types

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Clint Andrew Hall <clint@clintandrewhall.com>
2021-01-07 15:45:46 -05:00
Yuliia Naumenko 1c30525d46
[Alerting UI] Make connector reducer as generic type. (#86857)
* -

* fixed failing tests

* fixed typescript checks

* fixed typescript checks

* fixed failing build

* fixed typescript checks

* removed typo cast

* fixed failing test

* fixed faling build
2021-01-07 11:50:48 -08:00
Wylie Conlon 52e3371c39
[Lens] Transitions for reference-based operations (#83348)
* [Lens] Transition between functions involving references

* Organize transition cases and cover all the basic transitions

* Add functional test

* Change logic for displaying valid transitions

* Show valid transitions more accurately

* Fix transition to only consider valid outputs

* Update test names and style

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-01-07 14:37:27 -05:00
Matthew Kime 021bb4e3e9
Create runtime field plugin, runtime field editor plugin (#87387)
* create runtime field plugin, runtime field editor plugin
2021-01-07 13:10:30 -06:00
Alison Goryachev a22f2853ba
[ILM] Fix hot phase serialization (#87213) 2021-01-07 14:08:46 -05:00
Michael Olorunnisola 94b6087d74
[Security Solution][Resolver] Updated baselines to account for re-centering (#87547) 2021-01-07 13:50:42 -05:00
Candace Park cf641f7303
[Security Solution][Endpoint][Admin] malware custom notify user message tests (#87603) 2021-01-07 13:44:51 -05:00
Corey Robertson 19687765b1
[Canvas] Remove recompose and convert to Typescript expression component (#86969)
* Remove recompose from expression component

* Fix type check

* Fix expression not updating

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-01-07 13:27:31 -05:00
Mikhail Shustov 1b6f737546
task_manager to ts project (#87646) 2021-01-07 19:27:18 +01:00
Tiago Costa d6816384a7
chore(NA): move apm plugin tests out of __tests__ folder (#87601)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-01-07 18:26:16 +00:00
Nathan Reese 0ac6e6223e
[Maps] labels for polygons and lines (#86191)
* [Maps] labels for polygons and lines

* remove x-pack yarn.lock

* add labels to choropleth map wizard

* clean up comment

* add mvt tile support

* only add centroids if there may be lines or polygons

* tslint

* tslint

* do not add centroid to too many features polygon

* update get_tile expect statements

* move turf dependencies from devDependencies to dependencies

* update jest snapshot and functional test expects

* fix functional test expect

* another functional test expect update

* functional test updates

* expect

* pew pew source expect updates

* update joins expect

* update mapbox style expects

* update join visibility expects for geocentroids

* update join visibility expects for geocentroids

* another functional test expect update

* review feedback

* update yarn.lock

* tslint

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-01-07 11:10:20 -07:00
Nathan Reese 8cb622617c
[Maps] fix multi-select query from Controls visualization not always getting applied to map in dashboard (#87310)
* [Maps] fix multi-select query from Controls visualization not always getting applied to map in dashboard

* fix underlying problem in blended layer

* clean-up

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-01-07 10:47:52 -07:00
Tiago Costa 9d4ef37f4e
chore(NA): move monitoring out of __tests__ folder (#87556)
* chore(NA): move server and common from monitoring out of the __tests__ folder

* chore(NA): move monitoring public out of __tests__ folder

* chore(NA): add missing skip on test

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-01-07 17:47:17 +00:00
Lisa Cawley 9a17446495
Fix broken link to Lens documentation (#87392) 2021-01-07 09:13:19 -08:00
Devon Thomson cdee8599d1
[Time to Visualize] Align Lens & Visualize Top nav Buttons & Behaviour (#86922)
* Aligned Lens & Visualize Top nav behaviour and look
2021-01-07 12:02:11 -05:00
Paul Tavares 14df31b6a0
[SECURITY_SOLUTION][ENDPOINT] Trusted Apps List page Empty State when no trusted apps exist (#87252)
* Show loading spinner while trying to determine if entries exist
* Handle display of the 3 conditions: loading, entries exist, no entries
2021-01-07 11:22:23 -05:00
Shahzad b203eaf370
[uptime] Fix tab focus issue for settings page (#87466)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-01-07 16:58:39 +01:00
Liza Katz 91aed6f961
[Search][Sessions] Rename Background Sessions to Search Sessions (#87500)
* Rename Background Sessions to Search Sessions (with a send to background action)

* doc

* doc

* jest fun

* rename rfc

* translations

* update so name in features

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-01-07 17:28:27 +02:00
Steph Milovic 130a8e766e
[Security Solution] [Case] Fix Jira connector test form (#87580) 2021-01-07 08:23:19 -07:00
Yuliia Naumenko 794c6b3b08
[Alerting] Replaced single invalidateApiKey request with the bulk. (#87401)
* Replaced single invalidateApiKey request with the bulk

* fixed failing test

* Extended invalidate method to support multiple invalidation. Updated fleets plugin usage of this API.

* fixed due to comments
2021-01-07 07:17:24 -08:00
Alison Goryachev f4042dd566
[ILM] Minor UX improvements (#87515) 2021-01-07 09:47:58 -05:00
Felix Stürmer f170ce29cc
[Logs UI] Fix the ability to switch to the ratio alert type (#87563)
This fixes a bug introduced with #86488, which prevents the user from changing the log threshold alert type to `ratio`.
2021-01-07 14:58:50 +01:00
Joe Reuter 3c7bd2fdd0
[Lens]Test color syncing (#86906) 2021-01-07 14:28:58 +01:00
Kerry Gallagher 81f71086c6
[Logs UI] Fix alerts recovery (#87369)
* Ensure that if alert instances are instantiated they are used in a way recognised by the framework
2021-01-07 13:22:50 +00:00
Mikhail Shustov b75cd4bb29
[DX] Home & SO tagging OSS to TS projects (#87610)
* so tagging oss to ts project

* home to ts project
2021-01-07 13:58:09 +01:00
Cauê Marcondes 2d564ddf19
[APM] Refactoring service and transaction links (#86986)
* refactoring service and transaction links

* refactoring links

* addressing PR comments

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-01-07 13:00:39 +01:00
Pierre Gayvallet f59711945d
Expose SO import/export APIs from the service's contract instead of exporting static functions (#86264)
* Add user doc for SO tagging

* add link to new page

* handle review feedbacks

* second pass

* create SO exporter class

* adapt spaces code

* typo fix

* adapt tests

* some doc

* update generated doc

* fix spaces tests

* move ALL the import things

* adapt / move types

* create context, adapt core code

* adapt integration tests

* rename for consistency

* adapt spaces usages

* adapt spaces routes usages

* remove unused getImportExportObjectLimit

* fix tsdoc

* update generated doc

* doc nits

* review comments

* add test for fetchByObjects failure

* add custom errors for exporter

* remove `getImportExportObjectLimit` API

* fix IT

* update generated doc

* adapt UT

* forgot one Boom usage

* rename import error to failure

* remove Boom usages from importer

* update generated doc

* fix spaces types
2021-01-07 11:23:28 +01:00
Jean-Louis Leysens ba20a74be3
added missing brace theme import (#87498) 2021-01-07 09:42:02 +01:00
Mikhail Shustov 69e2c38bd3
Migrate App services plugins to TS projects (#87294)
* migrate expressions to ts project refs

* bfetch to ts project

* ui_actions to ts project

* move fitures to data plugins

* add data ts project

* remove outdated ts-expect-error

* add data to x-pack tsconfigs

* navigation to ts project

* cleanup licensing tsconfig

* saved_objects to ts project

* embeddable to ts project

* ui_actions_enhanced to ts project

* embeddable_enhanced to ts project

* features to ts project

* data_enhanced to ts project refs

* fix i18n check

* fix find_plugins_ready_to_migrate_to_ts_refs script

* add a comment for bug ignoring json for composite projects

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-01-07 09:30:30 +01:00
Dima Arnautov 1d49166203
[Transform] Fix transform preview for the latest function (#87168)
* [Transform] retrieve mappings from the source index

* [Transform] fix preview for nested props

* [Transform] exclude meta fields

* [Transform] use agg config to only suggest term agg supported fields

* [Transform] refactor

* [Transform] remove incorrect data mock

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-01-07 00:28:05 +01:00
Steph Milovic e5cb55d377
[Security Solution] [Cases] Fix flaky jest test (moment.js) (#87518) 2021-01-06 15:31:27 -07:00
Tim Sullivan 5d135359d7
[Reporting] set viewport to include clip area (#87253)
* [Reporting] set viewport to include clip area

* remove getViewport

* fix tests

* simpler

* fix 1

* revert

* hacks

* scope the logging variables

* polish

* hacky fix

* quieter logging

* make less hacky

* fix functional test

* revert lowering log level of browser console messages

* revise comments

* setViewport only to happen once

* fix snapshot of layout type tests

* fix comment text

* Revert "setViewport only to happen once"

This reverts commit 15977f9db4.

* fix disgusting bug

* use x/y ordering for width/height

* fix fn test snapshots

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-01-06 15:30:35 -07:00
Tiago Costa 693775ce03
chore(NA): move canvas plugin tests out of __tests__ folder (#87519)
* chore(NA): move canvas plugin tests out of __tests__ folder

* chore(NA): fix types import on fixtures

* chore(NA): rename helpers to test_helpers

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-01-06 22:11:22 +00:00
Nicolas Chaulet 3b602f8668
[Fleet] Make the encryptedSavedObject plugin optionnal (#87470) 2021-01-06 17:54:56 -04:00
Zacqary Adam Xeper 6df7498a41
[Metrics UI] Disable recovery action scheduling (#87061)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-01-06 15:45:45 -06:00
ymao1 ff2d0f4659
[Alerting] Edit alert should show and update all actions with deleted connectors (#86838)
* Showing all broken connectors and updating all matching broken connectors on new connector create

* Adding unit test

* Adding functional test

* Fixing functional test

* Simplifying logic

* Fixing functional test

* Fixing functional test

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-01-06 15:11:28 -05:00
Christiane (Tina) Heiligers 70c70875c6
Telemetry plugins esclient migration (#87356) 2021-01-06 12:57:18 -07:00
Tiago Costa f09f19ac28
chore(NA): move beats_management plugin tests out of __tests__ folder (#87530) 2021-01-06 19:56:38 +00:00
Kevin Qualters ebc119d43e
[Security Solution] Fixes elastic/kibana#84757 Use basePath in getAppOverviewUrl (#87245)
* Use basePath in getAppOverviewUrl


Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-01-06 14:20:10 -05:00
Tiago Costa 9a0c331ab5
chore(NA): move uptime plugin tests out of __tests__ folder (#87416)
* chore(NA): move uptime plugin tests out of __tests__ folder

* chore(NA): re-add file into __mocks__ folder
2021-01-06 19:11:03 +00:00
Robert Oskamp 50bda81a05
[ML] API integration tests - stabilize saved objects endpoint tests (#87288)
This PR stabilizes some saved objects endpoint tests by making sure a different order of objects in a response array is still accepted.
2021-01-06 19:48:38 +01:00
Thom Heymann 2b5071ff36
Report audit logging feature usage (#87457)
* Report audit logging feature usage

* Fix mock

* Added unref
2021-01-06 18:47:41 +00:00
spalger c57efbb56d skip flaky suite (#87541) 2021-01-06 11:43:59 -07:00
Georgii Gorbachev e50ad384f7
[Security Solution][Detections] Follow up cleanup after two bugfixes (#87516)
## Summary

This is a follow-up PR addressing some of the comments in:

- https://github.com/elastic/kibana/pull/86908
- https://github.com/elastic/kibana/pull/87004
2021-01-06 19:37:36 +01:00
Constance 8c74bb3345
Also reset engineName and engineNotFound on clearEngine (#87259) 2021-01-06 10:04:58 -08:00
Nathan Reese bd91c16036
[Maps] show map saved objects in visualize listing page (#87165)
* [Maps] show map saved objects in visualize listing page

* tslint

* tslint

* tslint fixes

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-01-06 11:01:56 -07:00
Gidi Meir Morris e0db4a3f0b
[Task Manager] adds more granular polling results to monitoring stats (#87494)
Added the following values to the Polling stats:

- **NoAvailableWorkers**: This tells us when a polling cycle resulted in no tasks being claimed due to there being no available workers 
- **RunningAtCapacity**: This tells us when a polling cycle resulted in tasks being claimed at 100% capacity of the available workers
- **Failed**: This tells us when the poller failed to claim
2021-01-06 18:00:52 +00:00
Ahmad Bamieh 93262ba736
[i18n] Integrate 7.11.0 Translations (#87452) 2021-01-06 19:51:49 +02:00
Constance b4f3a15458
[Enterprise Search] Kea mount test helper (#87247)
* Add Kea logic mount helper

* Update existing mount() helpers to use new DRY helper

* Add additional unmount helper + example test update
2021-01-06 09:48:44 -08:00
Gidi Meir Morris a95fdbdec3
[Actions] Exposes the typing for Actions Type Params (#87465)
This PR exposes the types for the Params & ActionTypeIds of all Action Types
2021-01-06 17:18:57 +00:00
Shahzad 4b4d6a6bb8
[Uptime] fix multiple scrolls on waterfall view (#87281)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-01-06 18:17:16 +01:00
spalger 316346ac3a skip flaky suite (#87425) 2021-01-06 09:16:52 -07:00
Nathan Reese 8a0c8f35bd
[Maps] term join limit (#86491)
* [Maps] term join limit

* update region map migration to set size

* display size in join expression

* tslint

* update jest snapshots

* remove default size and just default to max buckets

* add size to sourceMeta so join data is re-requested on size change

* tslint

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-01-06 08:43:10 -07:00
Ryan Keairns 6c87222e67
Updated favicons (#87271)
* Replace favicons

* update build process to swap favion version

* Replace favicons with built, branded version at build time

* update snapshot

* Addressing feedback
2021-01-06 09:13:07 -06:00
Kate Farrar 086bc58a65
[Metrics UI] Responsive fixes for Legend Options / Bottom Drawer (#86009)
Responsive fixes for Legend Options / Bottom Drawer
2021-01-06 08:12:17 -07:00
Oliver Gupte a9820a53f1
Closes #85549 by always rendering the datepicker regardless of data (#87393)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-01-06 06:40:38 -08:00
Chris Roberson 450d297ddf
Tweak timeout for failing cloud test (#86671)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-01-06 09:13:57 -05:00
Joe Portner e68d9f3822
Fixes 500 error when using PKI authentication with an incomplete certificate chain (#86700) 2021-01-06 09:00:43 -05:00
Alison Goryachev 57afacfef2
[ILM] Delete index_codec option if disabled in UI (#87267) 2021-01-06 08:24:41 -05:00
Alison Goryachev c012977eec
[ILM] Update doc links (#87216) 2021-01-06 08:22:20 -05:00
Patryk Kopyciński 74731ef7dd
[Security Solution] Refactor Save Timeline modal to use useForm hook (#87103) 2021-01-06 14:13:35 +01:00
Thomas Watson b0a66da8f0
Remove support for setting server.host to '0' (breaking) (#87114) 2021-01-06 13:12:01 +01:00
Gidi Meir Morris b99ca969e0
[Alerting] revert the revert of Enforces typing of Alert's ActionGroups (#87382)
The https://github.com/elastic/kibana/pull/86761 PR was reverted due to a small typing issue.

This PR reverts that revert and adds a commit to address the issue: 9e4ab2002c.
2021-01-06 10:38:33 +00:00
Christos Nasikas 8ead390813
[Security Solution][Case] Attach/Sync alert to case: Fix toast messages (#87206) 2021-01-06 11:43:18 +02:00
Christos Nasikas 34a3982f3a
[Security Solution][Case] Fix comment content when pushing alerts to external services (#86812)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-01-06 11:40:40 +02:00
Casper Hübertz e63e3d869d
[APM] Remove top padding from Waterfall container (#87312)
* Removed unused imports and props
2021-01-06 08:45:22 +01:00
Davis Plumlee 8c9c72a6ba
[Security Solution][Detections Rules] Adds larger options for page sizes (#87410) 2021-01-06 00:36:11 -07:00
Devin W. Hurley b4bbd937c0
[Security Solution] [Detections] Update search after to use one single date range filter (#86921)
## Summary

Ref: https://github.com/elastic/kibana/issues/86874



replaces `should` with a single lower bounded and upper bounded date range filter.

### Checklist

Delete any items that are not applicable to this PR.

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

### For maintainers

- [ ] This was checked for breaking API changes and was [labeled appropriately](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)
2021-01-05 22:16:40 -07:00
Davis Plumlee 327d0b5a9c
[Security Solution][Detection Rules] Adds a catch-all display tag for Mitre descriptions (#87240) 2021-01-05 21:38:46 -07:00
Oliver Gupte c0eeb86f52
Closes #87026 by ensuring the user also has save privileges for APM (#87343)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-01-05 17:13:37 -08:00
Georgii Gorbachev a1f949ba9c
[Security Solution][Detections] Fix severity and risk score overrides when field mapping exists but the mapped fields do not (#87004)
* Fix Source field combobox in Severity override and Risk score override sections

* Clean up

* Fix unit and Cypress tests
2021-01-05 17:53:13 -06:00
Georgii Gorbachev 933c6a5ae9
[SecuritySolution][Detections] Fix "Closing a signal silently fails with reduced privileges" (#86908)
## Summary

This PR introduces the following changes. If the user has insufficient write privileges on the signals index:

- we disable the status-changing actions on detection alerts ("Open alert", "Close Alert", "Mark in progress") in the context menu of an alert in alerts table
- we make sure to show the corresponding callout that tells about read-only access to detection alerts
- in the callout we provide links to docs for understanding why/how to fix
2021-01-05 18:50:42 -05:00
Nathan L Smith af4658fce9
Fix service name wrapping on mobile on inventory (#87390)
Fixes #85752.
2021-01-05 17:48:06 -06:00
Scotty Bollinger 3e3a809b4f
[Enterprise Search] Add a helper for clearFlashMessages (#87383)
This PR adds a convenience function for clearing flash messages to align with others.
2021-01-05 16:54:44 -06:00
Steph Milovic b0ba4f47ab
[Security Solution] [Case] Fixes "Case connector cannot be updated when created with a wrong field" (#87223) 2021-01-05 15:33:36 -07:00
Ryland Herrick e954306786
[Security Solution][Detections] Re-enable skipped integration test (#87254)
* Re-enable test skipped due to temporary failure

This failure may still be present/intermittent, but it passes reliably
locally; trying again on CI to check status.

* Triggering build

This should fail on the latest snapshot

* Update EQL integration tests to reflect new default pipe

We were previously using what is effectively `results | head` to
retrieve the desired amount of results. The default behavior was changed
in elastic/elasticsearch#66387, which caused these tests to fail as
different results were returned over such a large dataset.

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-01-05 16:08:13 -06:00
Devon Thomson 38a7e2b00a
[Time to Visualize] Align Lens & Visualize Breadcrumbs (#86941)
* Aligned Lens & Visualize Breadcrumbs
2021-01-05 17:01:04 -05:00
Yuliia Naumenko dddd8e4fe7
[Alerting UI] Alert and Connector flyouts Save and Save&Test buttons should be active by default. (#86708)
* Alert and Connector flyouts Save and Save&Test buttons should be active by default.

* fixed typechecks

* fixed typechecks

* refactored repeted code

* fixed typechecks

* fixed typechecks

* fixed typechecks

* fixed due to comments

* fixed failing tests

* fixed due to comments

* fixed due to comments

* fixed due to comments

* fixed typescript checks
2021-01-05 11:49:44 -08:00
Jonathan Budzenski 051be28c69 Revert "[Alerting] Enforces typing of Alert's ActionGroups (#86761)"
This reverts commit 76b8c491ee.
2021-01-05 13:24:59 -06:00
Gidi Meir Morris 76b8c491ee
[Alerting] Enforces typing of Alert's ActionGroups (#86761)
This PR tightens the typing on the Alerting framework's `AlertType` and its deeper typing around `AlertServices ` and `AlertExecutorOptions`.

This ensures the following:

1. It's now impossible<sup>✴</sup> to schedule actions on any ActionGroup other than the groups specified on the AlertType (including the Recovery group)
2. It's now impossible<sup>✴</sup> to schedule actions with incorrect `InstanceState` or `InstanceContext`

✴ Unless they bypass the Typescript typing, which is an explicit choice to bypass type safety
2021-01-05 18:44:57 +00:00
Michael Olorunnisola bb3659c54d
[Security Solution][Resolver] - Maintain active node (#86682)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-01-05 13:27:12 -05:00
Yuliia Naumenko 9d12b1c71b
Flaky test fix for Actions and Triggers app alerts should delete all selection (#86175)
* Removed skip test for delete all alerts integration test

* fixed typechecks

* reduced nuber of selected alert to delete to a single one

* fixed due to comments

* removed long timing retry

* fixed typechecks

* fixed failing tests
2021-01-05 10:10:52 -08:00
Yara Tercero 51efc19920
[Security Solutions][Detections] - Fix exception list table referential deletion (#87231)
### Summary

This PR concentrates on fixing the deletion on the exceptions list table view. This fix is intermediary and a more thorough, backend solution is needed. Currently, if you delete an exception list, it deletes the exception list SO, but does not remove references to it from rules. This PR allows for a quick fix conducting this logic client side.
2021-01-05 12:49:53 -05:00
Nicolas Chaulet a4bbf470e2
[Fleet] Do not display inactive enrollment token in the agent enrollment flyout (#87300) 2021-01-05 13:48:33 -04:00
Dominique Clarke 16ad4d6685
[Uptime] only render ping status code badge when status code is available (#87096)
* uptime only render ping status code badge when status code is available

* uptime update ResponseCodeColumn error state

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-01-05 12:45:59 -05:00
ymao1 eabd7088bb
Disabling connectors for invalid connector types (#86910)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-01-05 12:44:48 -05:00
Constance 3fba4763fb
[App Search] Minor var names follow-up (#87258)
* Var rename

- so it doesn't sound negative or like a bug, but is instead an anticipated load/use case
- remove unncessary function
- move declaration down to right before it's used

* [Proposal] Other misc cleanup

- Rename engineNameParam to engineNameFromUrl to make reading flow a little bit more nicely + hopefully make the var source a bit clearer

- Change other references back to engineName for simplicity (they should really only be running after engineName has already been set, so there shouldn't be any race conditions there - moving engineBreadcrumb to after Loading should also solve that)
2021-01-05 08:36:40 -08:00
Scotty Bollinger 24748bff77
[Workplace Search] Add routes for settings (#87239) 2021-01-05 10:12:49 -06:00
Scotty Bollinger c69eaf872a
[Workplace Search] Move Personal Dashboard link to header (#87244)
* Remove comment

We aren’t going to use icons like we have in ent-search

* Add new constant

* Use constant instead of inline i18n

* Add link to top bar

The external href to sources will be changed once that component is built

* Remove link from sidebar

* Update i18n translation key names

CI was failing and this should fix it

* Alphabetize items
2021-01-05 10:12:03 -06:00
Angela Chuang 81887b7400
[Security Solution] JSON view for data is not displayed properly (#87008) 2021-01-05 17:07:04 +01:00
Christiane (Tina) Heiligers ff94674919
Use new es client in Uptime usage collector (#86718)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-01-05 08:32:39 -07:00
Lukas Olson a2b4517b9e
[data.search.session] Add extend functionality to server-side search service (#86195)
* [data.search.session] Store search strategy in saved object

* [data.search.session] Add extend functionality

* Update docs

* Update unit test to check strategy

* Throw kbnServerError instead of error

* Fix test

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-01-05 08:26:06 -07:00
Cauê Marcondes b9ff88f988
[APM] Alert preview threshold color doesn't match design.(#86958)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-01-05 16:24:41 +01:00
Cauê Marcondes 86d37ae2f3
[APM] transactionType should be required on service-specific endpoints (#86893)
* making transaction type required on some apis

* addressing PR comments

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-01-05 16:23:51 +01:00
Dominique Clarke f0f88437b2
uptime add title to waterfall sidebar truncated text (#87102)
* uptime add title to waterfall sidebar truncated text

* Uptime add tooltip and screen reader only text to MiddleTruncatedText

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-01-05 09:06:43 -05:00
Mike Côté 875fde58fe
Improve webhook errror messages (#87044)
* Initial work

* Fix variables to pull from

* Rename some variables

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-01-05 08:04:58 -05:00
Marius Dragomir bece599856
Add standlone EMS server integration test (#87070)
* Initial EMS integration test

* Convert to TS

* extra cleanup and comments

* Removed common page objects

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-01-05 13:45:42 +01:00
Larry Gregory d6cf633e4f
Introduce mechanism to request default capabilities (#86473)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-01-05 07:37:14 -05:00
Casper Hübertz fdea747fb3
[APM] Settings: Move "HomeLink" into the sidebar (#87167)
* Fixed responsive state when opening the menu

* Update x-pack/plugins/apm/public/components/app/Settings/index.tsx

Co-authored-by: Cauê Marcondes <55978943+cauemarcondes@users.noreply.github.com>
2021-01-05 13:19:13 +01:00
Shahzad fb8a1ef505
[Uptime] Remove link to journey details page (#87146)
* Disable link to details page

* removed underline
2021-01-05 10:51:40 +01:00
Josh Dover 0af81310b6
Remove dynamic mapped types from UiActions (#87075)
* Remove dynamic mapped types from UiActions

* Remove import between data <-> embeddables

* remove outdated comments, export action types from discover_enhanced

* fix notice.txt

Co-authored-by: restrry <restrry@gmail.com>
2021-01-05 10:11:05 +01:00
Ryland Herrick 1363a2aa73
[Security Solution] Cypress documentation updates (#86835)
* Update/refactor some cypress documentation

* Fixes some whitespace/grammar/typos
* Condenses the explanation/instructions for the different modes of
  execution

* Condense Artifacts section

This is a big sprawling file; trying to cut down on the noise.

* Move test-running section to top of README

This is going to be what 90% of readers are looking for, methinks.

* Adds Security Solution's cypress suite to x-pack testing README

* Fix broken link

This file was moved as part of #64368.

* Remove broken link

This file was deleted in #67138.

* Apply suggestions from code review

Co-authored-by: Devin W. Hurley <snowmiser111@gmail.com>

* Fix typo

Co-authored-by: Devin W. Hurley <snowmiser111@gmail.com>
2021-01-04 18:47:08 -06:00
Nathan L Smith 42ba5a8e9f
Toggle action and service icon menus (#87220)
Make it so clicking the icon menu or action menu while the popover is open closes the popover. This also fixes the issue where the action menu would not close at all.

Rename the `onOpen` prop to `onClick` to match what it does.

Fixes #87161. Fixes #87131.
2021-01-04 18:40:10 -06:00
Lukas Olson 8ac632b068
[data.search.session] Store search strategy in saved object for background sessions (#86057)
* [data.search.session] Store search strategy in saved object

* Update unit test to check strategy

* Fix test

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-01-04 17:39:57 -07:00
John Schulz 52f6c7cf5c
Revert "[Fleet][EPM] Revert es-storage-related commits (#85942) (#86017)" (#87183)
This reverts commit 70fbe91fb1.
2021-01-04 18:23:11 -05:00
Nicolas Chaulet a0f330cc8c
[Fleet] Handle errors happenning during Fleet setup in the UI (#87185) 2021-01-04 19:02:25 -04:00
Spencer e3856a9e45
[security/apiKeys] migrate from id to ids in ES request (#87053)
Co-authored-by: spalger <spalger@users.noreply.github.com>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-01-04 15:46:37 -07:00
Aaron Caldwell 284f422642
Set containment alert recovery action group to 'No longer contained' (#87182) 2021-01-04 14:21:20 -07:00
Christiane (Tina) Heiligers 8b2690723b
Migrates security solution usage collector es client from legacy to new (#86853)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-01-04 14:17:56 -07:00
Zacqary Adam Xeper e9b43cdd3f
[Metrics UI] Fix Process List layout issues (#87005)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-01-04 14:52:20 -06:00
Lisa Cawley 96e9fdd78c
[ML] Add doc link in help menu on more ML pages (#86500) 2021-01-04 12:32:41 -08:00
John Schulz a0b4aa35b9
Add the existing route to openapi schema (#87196) 2021-01-04 15:23:28 -05:00
Henry Harding 7dc7ac5303
update Logs/Metrics add data icons for consistency (#87193) 2021-01-04 15:12:10 -05:00
Jason Stoltzfus 0f04a8ee60
Fixed links to meta engine documents (#86702) 2021-01-04 14:56:09 -05:00
Chris Roberson aeaa0c2932
[Monitoring] Fully control the in memory table pagination/sorting properties (#85862)
* Fully control the basic table pagination/sorting properties

* Not necessary

* Support index listing page

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-01-04 14:43:29 -05:00
Constance 5241603297
[App Search] Final Document Creation API, Logic, & Summary/Error views (#86822)
* [Setup] Server API route

* [Cleanup] Remove unnecessary DocumentCreationSteps

- errors can/should be shown in the EuiFlyoutBody banner (better UX since the JSON/file is right there for reference) vs its own page
- No need to distinguish between ShowErrorSummary and ShowSuccessSummary

+ placeholder Summary view for now

* Add DocumentCreationLogic file upload logic

* Update creation form components to show error/warning feedback

* Add final post-upload summary view

- split up into subcomponents for easier reading/testing

* [lint] oops, double licenses

* [PR feedback] map -> forEach

* [PR feedback] Reset form state on flyout close

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-01-04 11:09:43 -08:00
Liza Katz 4415e548b5
[Search] Session feature controls (#85846)
* Use filter to bulk find

* Update x-pack/plugins/data_enhanced/server/search/session/session_service.ts

Co-authored-by: Lukas Olson <olson.lukas@gmail.com>

* Dashboard in space test

* Add warning on update failure

* fix merge

* Added functional test for sessions in space

* snapshot

* test cleanup

* sub perms

* test snapshots

* Update tests

* test

* code review

* snap

* Added discover test

* Update x-pack/plugins/data_enhanced/public/search/ui/connected_background_session_indicator/connected_background_session_indicator.tsx

Co-authored-by: Anton Dosov <dosantappdev@gmail.com>

Co-authored-by: Lukas Olson <olson.lukas@gmail.com>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Anton Dosov <dosantappdev@gmail.com>
2021-01-04 20:57:51 +02:00
Angela Chuang 9ed0bbddde
[Security Solution] Fix pop up message (#86973)
* fix wording

* update wording

* remove logic in translation

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-01-04 18:38:45 +00:00
Constance b66bf2b2db
[Enterprise Search] Misc test branch coverage (#86847)
* Remove unnecessary || {} branch

schema is always required / should never be undefined

* Cover if (addFieldFormErrors) branch

* Increase coverage of determineTooltipContent by simplifying branching

- most of these checks aren't necessary due to early returns

* Cover branch in WS source_icon

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-01-04 10:34:40 -08:00
Christiane (Tina) Heiligers d6eda39cec
Switches rollup usage collector's fetch es client to the new client (#86684)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-01-04 11:32:14 -07:00
Shahzad 0188b9f7ef
[Uptime] Fix breadcrumb for link back to monitor from waterfall page (#87125) 2021-01-04 19:16:39 +01:00
Jonathan Buttner d2b9fb3bde
[Security Solution][Resolver] Remove deprecated resolver routes (#86475)
* Removing old backend routes and cleaning up types

* updating the docs

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-01-04 13:14:40 -05:00
Lisa Cawley 28e60d47ad
[ML] Use doc links service for transforms (#86919) 2021-01-04 09:59:18 -08:00
Michael Olorunnisola bba076d45a
[Security Solution][Resolver] Fix text overflow in panel breadcrumb (#86905)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-01-04 12:49:38 -05:00
Katrin Freihofner 9c092d5264
[Logs UI] Adds purely visual changes to to the popovers and the settings view. (#86764)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-01-04 17:56:36 +01:00
Tiago Costa 8f82459647
skip failing es promotion suite (#87180) 2021-01-04 16:48:56 +00:00
Cauê Marcondes df1bfcc87f
[APM] Forbidden Error when opening Indices page with read only user (#87147)
* disabling create/edit button when user does not have write permission

* addressing PR comments
2021-01-04 17:33:01 +01:00
Gidi Meir Morris 084bc7be9b
[Alerting] Ensure a component is specified on the actionParamsFields field in all tests (#86789)
This PR makes the `actionParamsFields` field required, as it is in use by all plugins anyway and only tests were omitting it.
To make this change more streamlined I've added a `createMockActionTypeModel` helper which generates a basic mock `ActionTypeModel`.
2021-01-04 16:17:53 +00:00
Kevin Logan 5e5a410204
[Fleet] add leading dot to hidden indices (#86277)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: John Schulz <github.com@jfsiii.org>
2021-01-04 10:50:54 -05:00
Tiago Costa 4c3c2ac156
skip failing es promotion suite (#87166) 2021-01-04 15:23:18 +00:00
Tiago Costa 77d03eed09
skip failing es promotion suite (#87163) 2021-01-04 15:17:37 +00:00
Pete Hampton 757eece2e6
Update index name for diagnostic telemetry. (#86468)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-01-04 15:04:25 +00:00
Tiago Costa 16fa35cc2b
skip failing es promotion suite (#87157) 2021-01-04 15:03:06 +00:00
ymao1 b22210d7e3
[Alerting] Saved object remover for all e2e triggers_actions_ui tests (#86837)
* wip

* Using object remover for alerts list

* wip - using supertest instead of axios

* wip - using supertest instead of axios

* Removing custom services in favor of supertest

* Fixing test

* Fixing test

* Fixing types check

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-01-04 09:59:41 -05:00
Jonathan Buttner c8a349e713
[Security Solution][Resolver] Adding docs for loading states and schema (#85480)
* Adding some docs for the new features

* Adding schema docs

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-01-04 09:51:12 -05:00
Casper Hübertz 1445c9f058
[APM] Change services panel guttersize to “xs” (#87137) 2021-01-04 15:49:17 +01:00
Tiago Costa 90a1961639
skip flaky suite (#82226) 2021-01-04 14:47:38 +00:00
Katrin Freihofner c6229c86a1
[Synthetic check UI] waterfall view: moves arrow icon of next check btn to the right (#86878)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-01-04 15:32:54 +01:00
Dominique Clarke 7f71ca128d
adjust monitor status badge failed color (#87097)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-01-04 08:49:39 -05:00
Vadim Dalecky 5591e00717
URL encoding for URL drilldown (#86902)
* feat: 🎸 use EuiSwitch for "Open in new window" toggle

* feat: 🎸 add "URL encoding" option and "Additional options"

* feat: 🎸 make "Open in new window" true by default

* feat: 🎸 respect encoding config setting

* test: 💍 add encoding tests

* feat: 🎸 add URI encoding Handlebars helpers

* docs: ✏️ add URL encoding methods to URL Drilldown docs

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-01-04 13:56:21 +01:00
Patryk Kopyciński f654e06f76
[Security Solution] Fix few styling issues (#87045) 2021-01-04 13:53:23 +01:00
Cauê Marcondes cd06251fc4
[APM] Custom links can still be created with a read only user. (#87089)
* disabling buttons when user does not permission

* fixing test

* disabling create/edit button when user does not have write permission

* addressing PR comments

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-01-04 13:50:04 +01:00
Cauê Marcondes 1ae33d945b
[APM] Every time the new Header Icon is clicked it fetches data (#87093)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-01-04 12:02:44 +01:00
Dario Gieselaar 1934d34ee7
[APM] Add range query to service map trace walk (#86631)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-01-04 11:37:10 +01:00
Jonathan Budzenski 308827a67c skip "should schedule actions on legacy alerts" #87010 2021-01-01 11:22:10 -06:00
Spencer 1da5fcf444
[logstash] remove "upgrade" functionality now that .logstash is a system index (#87056)
Co-authored-by: spalger <spalger@users.noreply.github.com>
2020-12-31 12:16:33 -07:00
Kevin Logan 602584a228
[Security Solution] add a consistent spelling of ES in Policy Response (#87073) 2020-12-30 16:30:20 -05:00
Paul Tavares e067f557de
[SECURITY_SOLUTION][ENDPOINT] Delete Endpoint Policy List code (#87063)
* Remove Endpoint Policy List code from security_solution plugin
2020-12-30 15:08:29 -05:00
Spencer 71f74314ce
[test/functional_cors] 9000 is sometimes in use, make getPort random (#87050)
Co-authored-by: spalger <spalger@users.noreply.github.com>
2020-12-30 10:32:48 -07:00
Patryk Kopyciński 0c9a573515
[Security Solution] Fix Timeline filter EuiSuperSelect styling (#87033) 2020-12-30 18:05:31 +01:00
Wylie Conlon 83d9ef0f2d
[Lens] Fix duplicate suggestions on single-bucket charts (#86996) 2020-12-30 11:01:54 -05:00
Paul Tavares 5dd9c7d3c5
[Fleet] Fix Page title on Integrations Edit Package Policy (#87012) 2020-12-30 08:54:47 -05:00
Paul Tavares 9202fc845a
[SECURITY_SOLUTION][ENDPOINT] Fixes endpoint data generator (#87018)
* Fix enroll message not containing host information
* Ensure all Agent Policies created are unique
2020-12-30 08:53:50 -05:00
Kevin Logan 0d32640ab7
[Security Solution] Change 'anti-virus' text to 'antivirus' (#87001) 2020-12-29 15:05:29 -05:00
Tim Sullivan b120cb3218
[AppServices/Examples] Add the example for Reporting integration (#82091)
* Add developer example for Reporting

Refactor Reporting plugin to have shareable services

* Update plugin.ts

* use constant

* add more description to using reporting as a service

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2020-12-29 09:55:48 -07:00
Tim Sullivan e699d91b2c
[Build Chromium] Improve git checkout (#83225)
* [Build Chromium] Document steps for local build, improve checkout

commit e817796d107d554504870cdb8e6dd10db1079a1e
Merge: 19e6b300260 61b4e052fdd
Author: Timothy Sullivan <tsullivan@elastic.co>
Date:   Thu Nov 12 13:25:09 2020 -0700

    Merge branch 'chore/build_chromium/improvements' of github.com:tsullivan/kibana into chore/build_chromium/improvements

commit 19e6b300260822418cea4dc594bdfdf621a331e0
Author: Timothy Sullivan <tsullivan@elastic.co>
Date:   Thu Nov 12 13:23:01 2020 -0700

    fixes

commit 9de24ec298792a46e88207f41c9f6aff1997dbf1
Author: Timothy Sullivan <tsullivan@elastic.co>
Date:   Thu Nov 12 13:22:52 2020 -0700

    add instructions to build local

commit 872c0f68e0077ad50c541b605a87253befd1a891
Author: Timothy Sullivan <tsullivan@elastic.co>
Date:   Thu Nov 12 11:58:25 2020 -0700

    simplify

commit 8dae9484efcdc483ad20ceab32cae4e97735ab1c
Author: Timothy Sullivan <tsullivan@elastic.co>
Date:   Thu Nov 12 10:28:18 2020 -0700

    fixes

commit 492f5cfe25e2c7ccffce55a8733383a30aae1cb6
Author: Timothy Sullivan <tsullivan@elastic.co>
Date:   Wed Nov 11 20:15:43 2020 -0700

    --wip-- [skip ci]

commit acba359b121f7be8e6c353f90e938bc5d88658a1
Author: Timothy Sullivan <tsullivan@elastic.co>
Date:   Wed Nov 11 15:47:50 2020 -0700

    [Build Chromium] Improve git checkout

commit 61b4e052fdd04456fe23956ad8ce99c8e771c01e
Author: Timothy Sullivan <tsullivan@elastic.co>
Date:   Wed Nov 11 20:15:43 2020 -0700

    --wip-- [skip ci]

commit 58300c9deeca15cce838b3956c55c2994f99f530
Author: Timothy Sullivan <tsullivan@elastic.co>
Date:   Wed Nov 11 15:47:50 2020 -0700

    [Build Chromium] Improve git checkout

* Apply suggestions from code review

Co-authored-by: Joel Griffith <joel@joelgriffith.net>

Co-authored-by: Joel Griffith <joel@joelgriffith.net>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2020-12-29 09:54:19 -07:00
Mike Côté f3b43cbf3f
Deprecate services.callCluster in alerts and actions executors (#86474)
* Deprecate callCluster in alerts and actions services

* Update deprecation comment

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2020-12-29 11:21:48 -05:00
Patryk Kopyciński 262a204bb4
[Security Solution] Use system node version for Cypress and increase exec command timeout (#86985) 2020-12-29 14:51:09 +01:00
Marco Liberati 2781bf3855
[Lens] Add more chart editor tests based on the debug state (#86750)
Co-authored-by: Joe Reuter <johannes.reuter@elastic.co>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2020-12-29 14:18:54 +01:00
Marco Liberati bd908c6ba3
[Lens] Integrate searchSessionId into Lens app (#86297)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2020-12-29 14:18:30 +01:00
Jonathan Budzenski d843450620 skip "pagination updates results and page number" #86975 2020-12-28 17:34:19 -06:00
Jonathan Budzenski 62fd430fdf skip "Custom detection rules" #83772 2020-12-28 15:24:15 -06:00
Jonathan Budzenski 54390f02f9 skip network and timeline inspection. #85677, #85678 2020-12-28 14:55:14 -06:00
Jonathan Budzenski 4290b58b6a skip "adds correctly a filter to the global search bar" #86552 2020-12-28 14:49:05 -06:00
Jonathan Budzenski 3ddc527d50 skip "Fields Browser rendering. #60209 2020-12-28 13:29:16 -06:00
Jonathan Budzenski 83f6440c03 skip "Closes and opens alerts" #83773 2020-12-28 11:10:36 -06:00
Patryk Kopyciński fd81692b98
[Security Solution] Skip failing Cypress tests (#86967) 2020-12-28 10:00:42 -06:00
MadameSheema c0d6e12c3c
Removes archives (#86537) 2020-12-28 08:08:04 +01:00
Dima Arnautov 47ce575cc0
[ML] Fix charts grid on the Anomaly Explorer page (#86904)
* [ML] fix AR charts grid items width

* [ML] update test snapshot
2020-12-24 13:52:09 +01:00
Cauê Marcondes 6fc041c1d4
filtering inventory page by transaction type (#86434)
* filtering inventory page by transaction type

* addressing pr comments

* addressing pr comments

* addressing pr comments

* addressing pr comments

* addressing pr comments

* addressing pr comments

* addressing pr comments

* fixing test

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2020-12-24 09:36:58 +01:00
Devin W. Hurley 113634a66b
[Security Solution] [Detections] Multiple timestamp fields (#86368)
* query timestamp override and default @timestamp field, adds functional test for this

* fix logic for when to filter out timestamp override documents

* update the total hits field of the search result if we find hits within the secondary search. Without updating the total hits field, we could be finding events but not indexing them based on the bulk create logic

* update integration test, updates logic for performing second search and excluding documents with timestamp override field

* cleanup comments, remove commented out console logs, fix logic to break out of loop during secondary search after

* default param to 'succeeded'

* remove commented out code

* always perform a secondary search when timestamp override field is present

* perf improvement and fix bug where sortIds were being mixed between search after calls

* set sortIds to undefined when not present on search result

* exit loop and prevent extraneous searches from occurring if we exhaust sort ids
2020-12-23 21:44:57 -05:00
Xavier Mouligneau deae756756
[Security Solution] Fix flow/draggable in details event (#86834)
* fix details event

* fix types + add unit test

* review with angela

* fix lint error

Co-authored-by: Angela Chuang <yi-chun.chuang@elastic.co>
2020-12-23 21:13:20 -05:00
Yara Tercero 0ffb9e72ed
[Security Solution][Exceptions][Tech Debt] - Refactor exceptions api file to follow value lists pattern (#86903)
## Summary

Currently working on issues related to exceptions and it was noted on a separate PR that the request payload validation being done in the client side API calls was unnecessary. It was helpful in development, but not of any added value in production. Not only that, but the extra validations also add to the performance hit. 

Removed the payload validation and formatted the code to follow the same pattern as that in the value lists api file.

Tested that exceptions flows not affected by testing out exceptions CRUD flows.
2020-12-23 19:25:21 -05:00
Joe Reuter a5cfc7fb4a
[Lens] Add percentile function (#86490) 2020-12-23 21:13:03 +01:00
Dominique Clarke cf6afe04ad
[Uptime] Fix/85236 user experience display low values (#86026)
* add hasVitals prop to CoreVitalItem

* pass hasVitals prop to CoreVitalsItem based on coreVitalPages

* adjust criteria for displaying no core vital item data

* add stories for CoreVitalItem edge cases

* remove comment from core web vitals index page

* update test comment in CoreVitalItem

* adjust APM get_web_core_vitals endpoint to return a number for cls value, and adjust corresponding observability components

* remove hasVitals from CoreVitalItem props and adjust storybook stories

* add comment to EuiStat aria-label in CoreVitalItem

* adjust CoreVitalItem tests

* adjust APM KeyUXMetrics test

* adjust APM get_web_core_vitals endpoint to return null for cls when cls is undefined

* adjust unit and integration tests that rely on apm get_web_core_vitals

* add comment in get_web_core_vitals

* update CLS value in Observability core_web_vitals index

* add withKibanaIntl to CoreVitalItem test to wrap in Intl Provider and KibanaReact provider

* update CoreVitalItem test to use testing-library/react test_helper

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2020-12-23 14:25:34 -05:00
Christiane (Tina) Heiligers f7961998d9
Migrates spaces usage collector es client from legacy to new (#86900) 2020-12-23 12:18:13 -07:00
Constance 2cc2312f6d
[App Search] Result component - a11y enhancements (#86841)
* Refactor Result card layout

- Move toggle action to the bottom of the card content
- [TODO] Action button to the right will be used for new link button (separate for accessibility/screen readers)
- Use grid to get the layout we want without extra div wrappers

* Add action button link to document detail

+ remove <a> tag on article content - should have onClick only
- this allows screenreaders to granularly navigate through the card content while allowing mouse users the entire card to click
- the new actionButton details link is accessible to both keyboard & screen reader users

* [Polish] Hover effects to help guide mouse users

* [i18n] Add pluralization to fields copy

* Update tests

* [Cleanup] Remove unneeded wrapper

* [??] More specific title for result group

- since the aria-label for the new detail button link is basically that
2020-12-23 10:39:21 -08:00
Paul Tavares 0f838bfea1
[Fleet] Consistent display of agent counts on lists (#86827)
* move LinkedAgentCount component to top-level components and adjust output
* refactor integration details Policies list to use LinkedAgentCount component
* test cases for agent counts on integrations
2020-12-23 09:41:49 -05:00
Dima Arnautov d4d70f22cf
[ML] Enforce pause when it's set to false with 0 refresh interval (#86805)
* [ML] Enforce pause when it's set to false with 0 refresh interval

* [ML] add mocks, fix unit tests
2020-12-23 14:00:59 +01:00
Cauê Marcondes cfec38eea6
[APM] "View job" link from latency charts leads to a malfunctioning page (#86788)
* fixing ML links

* fixing ML links
2020-12-23 13:00:52 +01:00
Katrin Freihofner 0d3daa564f
[Logs UI] removes unnecessary panel in categories tabL (#86769) 2020-12-23 09:38:35 +01:00
Cauê Marcondes 15b80dd771
[APM] Filter out service nodes if there are no metrics (#86639)
* filtering out metrics without service.node.name

* filtering out metrics without service.node.name

* addressing pr comments

* fix TS issue
2020-12-23 09:31:01 +01:00
Cauê Marcondes 4613da5c27
[APM] Truncate long service names in Trace overview (#86759)
* truncating service name

* truncating service name
2020-12-23 09:02:15 +01:00
Christos Nasikas 21b34bcd24
[Security Solution][Case] Fix case status dropdown on modals (#86243) 2020-12-23 09:36:38 +02:00
Yara Tercero 3dfb1aba2a
[Security Solution][Detections] - Fix export on exceptions list view (#86135)
## Summary

This PR addresses a fix on the exceptions list table export functionality. A dedicated route for exception list export needed to be created. List is exported into an `.ndjson` format. 

Exception lists consist of two elements - the list itself, and its items. The export file should now contain both these elements, the list followed by its items.
2020-12-23 00:27:37 -05:00
Devin W. Hurley 35b10b5354
[Security Solution] [Detections] Bug fix for read privilege check during rule exec (#86852) 2020-12-22 21:14:22 -05:00
Constance e3896050fc
[App Search] Misc credentials key UI enhancements (#81817)
* Fix screen reader still reading out bullet bullet bullet

* Even out horizontal spacing

* Break long password text

* Make EUI table cell full width on mobile
2020-12-22 17:53:07 -08:00
Constance 62b5ef9459
Minor responsive text overflow tweaks to ApiCodeExample POST (#86848) 2020-12-22 17:52:32 -08:00
Tyler Smalley c9879c6fbd Skip test preventing ES snapshot promotion
Signed-off-by: Tyler Smalley <tyler.smalley@elastic.co>
2020-12-22 16:31:14 -08:00
Melissa Alvarez 39dc4d0237
fix group edit popup format (#86836) 2020-12-22 17:58:22 -05:00
Devin W. Hurley 59298c5f91
[Security Solution] [Detections] Add "read index" privilege check on rule execution (#83134)
* adds privilege check in rule execution function, need to abstract these lines into a util function to be used in create rules and use that check on the UI too

* fixes tests

* cleanup code, adds a unit test

* set rule to failure status if the rule does not have read privileges to ANY of the index patterns provided
2020-12-22 17:01:39 -05:00
Dominique Clarke 23c9c7e302
fix uptime monitors donut chart labels (#86319)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2020-12-22 15:41:33 -05:00
Pete Hampton 978fa4325c
Add run and alert count to task state. (#86776) 2020-12-22 19:55:40 +00:00
Quynh Nguyen a75ca7abe9
[ML] Stabilize data visualizer functional tests (#86790) 2020-12-22 13:12:06 -06:00
Greg Thompson c0d6bd95b7
Upgrade EUI to v31.0.0 (#86689)
* eui to 31.0.0

* snapshot updates

* remove obsolete snapshot
2020-12-22 12:59:05 -06:00
Felix Stürmer 24db3a0070
[Logs UI] Fix initial selection of log threshold alert condition field if missing from mapping (#86488)
This avoid selecting the `log.level` field as the default in log threshold alerts if it is not present in the mapping of at least one source index.
2020-12-22 19:36:02 +01:00
Christiane (Tina) Heiligers a98550b4f1
Reporting usage collector fetch migration (#86675) 2020-12-22 11:23:54 -07:00
Quynh Nguyen 61eb83b467
[ML] Fix error callout for Anomaly detection jobs using runtime_mappings (#86407)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2020-12-22 12:22:56 -06:00