Commit graph

13564 commits

Author SHA1 Message Date
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