Commit graph

36592 commits

Author SHA1 Message Date
Brandon Kobel 57d10144f9
elasticsearch::Client#child performance improvements (#77836)
* Updating the version of the elasticsearch-js Client

* ES Client methods aren't implicitly bound to the Client anymore

* Adjusting mocks to work with prototypical inheritance

* Fixing effects of ping returning a Boolean, now.

* Updating @elastic/elasticsearch to 7.9.1

* Responding to @restrry's feedback

* Now with destructuring...
2020-09-24 09:08:50 -07:00
Liza Katz 0e1796acc5
[Search] Generic search request and response types (#78268)
* Improve search types to support EQL strategy

* doc

* Update types.ts

* update demo strategy

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-09-24 18:59:27 +03:00
Tim Sullivan 38f517ae9f
[Reporting] TS changes to reference an interface instead of class as the logger object (#78359)
* [Reporting] TS changes to reference an interface instead of class, making functions more shareable

* rename the interface

* less flexible interface
2020-09-24 08:54:34 -07:00
Mikhail Shustov 8ba60a4004
bump query-string version to remove manual type definitions (#78143)
* bump query-string version to remove manual type definitions

* remove manual type declaration

* fix cypress tests

* add )
2020-09-24 17:15:15 +02:00
Felix Stürmer 3f2e9f7705
[Logs UI] Add dataset-specific categorization warnings (#75351)
This adds dataset-specific categorization warnings for the categorization module. The warnings are displayed in call-outs on the relevant tabs as well as the job setup screens if a prior job with warnings exists. To that end this also changes the categorization job configuration to enable the partitioned categorization mode.

Co-authored-by: Alejandro Fernández Gómez <antarticonorte@gmail.com>
2020-09-24 17:02:23 +02:00
Brandon Morelli 5ff0c00529
docs: typo fix (#77927) 2020-09-24 07:56:36 -07:00
Josh Dover d571358254
Add more robust error handling to OsCgroupMetricsCollector (#78213)
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-09-24 08:54:46 -06:00
Jean-Louis Leysens 6345acaf35
[Ingest Node Pipelines] New patterns component for Grok processor (#76533)
* wip, issues with use fields getting cleared somehow

* New drag and drop text list component

- updated use array to add its own field so that we hook into form
- added new drag and drop list component
- wip on validation (empty lists validate immediately, which it should not)

* remove box shadow from editor fields

* Style grok patterns based on drag and drop in component templates

- still have the issue with validation
- need to get some design review at this point

* fix i18n

* update use_array - maintain the same API though

* Grok processor should use the new use array interface

- also fix the documentation using links in the processor type
  description. react was unhappy about hook order changing

* fix patterns field validation to check validity of pattern entires

* fix drag item styling

* fix use of form in use effect and update behaviour of submit button

* added smoke test for grok component

* fix i18n

* Implement PR feedback

* Implemented design feedback

- decreased spacing between list items and button
- fixed a11y issue between label and first text field
- moved help text to under label
- refactored all of the field layout logic into drag and drop
  text list component.

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-09-24 16:51:26 +02:00
Oliver Gupte 1dd0c6a570
[APM] Service maps grouped external resource nodes (#78136)
* Closes #78135 by implementing node grouping on service map data before it's rendered in the Cytoscape.

* Truncates resource list items and updates api test snapshot

* Added type for ConnectionElement rather using an ad hoc type, removed some unneeded ts-ignores
2020-09-24 07:48:24 -07:00
Jean-Louis Leysens 38e63d1029
[ES UI Shared] Remove 'brace' from es_ui_shared public (#78033)
* major wip

* major wip

* fix worker creation leak

* just copy the file over for now

* Remove xjson from static and from es_ui_shared entirely

- moved expand and collapse logic back to es_ui_shared. It has
  nothing to do with ace
- refactor the useXJson hook which bundled XJsonMode with it.
  This was convenient but ultimately inflates the amount of code
  Kibana needs to first load up in the client. Users will need to
  import XJsonMode and instantiate it when they want to use it.
  Updated existing usage.
- Cleaned up Monaco namespace from es_ui_shared because of how
  useXJsonMode was refactored -- no longer exporting an editor
  specific instance means this code does not know about anything
  to do with code editors so it is decoupled from ace and monaco.

* fix export of collapse and expand string literals

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-09-24 16:02:14 +02:00
Caroline Horn ba635340be
[Lens] Add a better drag/drop illustration (#78245)
Fixes #76021
2020-09-24 09:46:18 -04:00
Tim Roes cfad030ed1
Change CODEOWNERS of visualizations plugin (#78419) 2020-09-24 15:21:17 +02:00
Alejandro Fernández Haro 18f7f042c1
[Usage Collection] Add schema to stack_management (#77897)
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-09-24 14:05:19 +01:00
Anton Dosov 89e1f087a2
bump @testing-library (#78270) 2020-09-24 15:02:59 +02:00
Shahzad 3618cef1a4
[UX] Update csm app name to UX (#78179) 2020-09-24 13:26:00 +02:00
Alejandro Fernández Haro 4d08763af7
[Usage Collection] [schema] lens (#77929)
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-09-24 11:40:59 +01:00
Matthias Wilhelm 8ad53d5203
[Discover] Context - Fix bug when document id contains a slash (#77435) 2020-09-24 12:29:29 +02:00
Alejandro Fernández Haro 9ca22382fb
[Usage Collection] [Schema] "kibana" collector (#77893)
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-09-24 10:51:42 +01:00
Alejandro Fernández Haro 88b03d943b
[Usage Collection] [schema] static_telemetry (#77902)
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-09-24 10:49:31 +01:00
Joe Reuter 5d5ce40168
fix drilldown in tsvb (#78005) 2020-09-24 11:42:35 +02:00
Mikhail Shustov 29bc00c04c
disable incremental build for x-pack tests (#78131)
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-09-24 11:15:25 +02:00
Joe Reuter 839817ca9a
[Lens] show meta field data in Lens (#77210) 2020-09-24 09:55:32 +02:00
Patryk Kopyciński 62ddaa9e20
[Security Solution] Cleanup IP Details graphql (#78318) 2020-09-24 09:36:22 +02:00
Shahzad 477f6a182e
[CSM] Fix pie chart legend (#78253) 2020-09-24 09:10:00 +02:00
spalger c02e42ad01 skip flaky suite (#78373) 2020-09-23 23:35:45 -07:00
spalger 9b1883d51e skip flaky suite (#78375) 2020-09-23 23:30:50 -07:00
Spencer d4232c5b02
skip security solution tests that are preventing es snapshot promotion (#78366)
Co-authored-by: spalger <spalger@users.noreply.github.com>
2020-09-23 22:40:03 -07:00
Scotty Bollinger 6a04a6410a
[Enterprise Search] Update Product Selector and add Setup Guide (#78233)
* Add conditional button text

- Only shows error connectign if host is set
- Removes conditional rendering of cards
- Changes the action text from “Launch” to “Setup”

* Add setup guide

* Extract ProductSelector to component

* Update index and add routes

* Change setup guide text

* Fix imports

* Add missing mock

* Update x-pack/plugins/enterprise_search/public/applications/enterprise_search/index.test.tsx

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

* Remove Literals

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

* Remove Literals II - The Force Awakens

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

* Add back access checks

* Remove hard-coded props 🤦🏼‍♂️

* Remove data-test-subj attr

* Reafactor access check variables

* Remove unused beforeEach

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

* Add newline

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

* Update image to compressed

* Remove unused things

* Update to new way of using lodash things 🤷🏽‍♀️

Co-authored-by: Jason Stoltzfus <jastoltz24@gmail.com>
Co-authored-by: Constance <constancecchen@users.noreply.github.com>
2020-09-23 22:55:02 -05:00
Spencer 1f03ce41ad
[ci-metrics] add docs describing the metrics collected (#78363)
Co-authored-by: spalger <spalger@users.noreply.github.com>
2020-09-23 20:51:07 -07:00
Josh Dover 66d11bd1c3
Optimize status lookup for plugins that have no custom statuses (#78342) 2020-09-23 20:09:11 -06:00
Davis Plumlee 34e8a3f139
[Security Solution] Changes rule details default stack-by value (#78357) 2020-09-23 18:13:15 -06:00
Matthew Kime 441ebf65f7
make QueryStringInput props explicit (#78336) 2020-09-23 18:53:21 -05:00
Chris Cowan ca27ec8385
[Metrics UI] Fix EC2 Query to only include aws.ec2 nodes (#78236)
* [Metrics UI] Fix EC2 Query to only include aws.ec2 nodes

* Making the filter more generic so we can apply it easily to any inventory model
2020-09-23 16:32:24 -07:00
Chris Cowan 8ea5c575eb
[Metrics UI] Reduce the pagination size for snapshot request (#78051)
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-09-23 16:31:34 -07:00
gchaps 298d5c1c9f
[DOCS] Removes duplicate entry from settings doc (#78343) 2020-09-23 15:23:20 -07:00
Devon Thomson 32abbff685
[Time to Visualize] Lens By Value With AttributeService (#77561)
Used the attribute service to make lens work properly with by value embeddables.
2020-09-23 17:40:52 -04:00
Sandra Gonzales a00b3ee671
[Ingest Manager] add upgrade action (#77412)
* at agents/agent-id/upgrade endpoint

* handle upgrade ack

* let upgrade endpoint accept url and version

* wrap action data in data prop

* decrypt data of actions

* type upgrade action and decrypt data in ack

* error if trying to update to diff version of kibana

* add some integration tests

* untype

* fix test

* update integration test

* reset upgraded_at when upgrading

* use defaultIngestErrorHandler

* use ack_data instead of data

* copy data to ack_data
2020-09-23 16:49:26 -04:00
Patryk Kopyciński 27c32edd23
[Security Solution] Cleanup Overview graphql (#78272)
* [Security Solution] Cleanup Tls graphql

* [Security Solution] Cleanup Uncommon Processes graphql

* [Security Solution] Cleanup Overview graphql
2020-09-23 22:21:34 +02:00
Xavier Mouligneau 94a4e38053
[Security Solution] Options to select index patterns (#77192)
* init commit

* lots of cleanup

* starting on tests... problems

* Ready for review

* remove sample data

* remove comment and fix type

* pr changes

* fix type

* scratchy

* sourcerer in timeline

* sourcerer in timeline

* wip

* moving to redux

* working on types

* fixed

* more adjustments, tests fixed

* FF off

* pr ready

* renaming

* url state working, hoc not working

* url state working for timeline and default scope

* script to build fields for beat doc

* refactor sourcerer

* refactor host to useSourcerer

* refactor network to useSourcerer

* refactor overview  to useSourcerer

* refactor detections to useSourcerer

* wip for timelines to remove all useSource

* wip indexes timeline

* do component tests

* start container tests

* start container tests

* update selection widget of index patterns + remove last useWithSource

* add indexeNames in network kpi

* fix type errors

* fix type

* missing merge master

* get existing index from config file

* fixing broken tests

* add saving button to avoid to many queries to be aborted

* reducer timeline tests broke

* need to rewind

* much better

* timeline saving index names + clean up url state to only manage default

* more test fixing

* more test changes

* remove all the useWithSource + deprecated the graphql until we delete it in a new PR + delete all the beat doc

* default timeline to all index when creation + filter index patterns to make sure you do not add one who we do not know

* fix types

* test for stateful timeline render

* we should not have change that

* no chnages + snapshot

* fix test + bugs from review

* fix uncommon processes indexNames

* review III

* change design for main page of the sourcerer from design

* bug fixes when opening old timeline + implementation of new design

* fix circular deps

* remove unused attributes for event details

* design cleanup

* fix api integration test with the new search strategy

* add reset + manage accordion state

* fix bugs + types issues

* cleanup

* update docs

* review -> remove tooltip when popover is open

* cypress fixing

* fix for ml_condition_links and url_state cypress tests

* add cy wait for race condition in pagination tests

* missing plumbing kpi host

Co-authored-by: Steph Milovic <stephanie.milovic@elastic.co>
Co-authored-by: Patryk Kopycinski <contact@patrykkopycinski.com>
2020-09-23 15:49:52 -04:00
spalger a54cc17f0f skip flaky suite (#61612) 2020-09-23 12:42:16 -07:00
spalger abb1cbfa5f skip flaky suite (#39842) 2020-09-23 12:35:54 -07:00
Zacqary Adam Xeper f9e0679682
[Metrics UI] Minor fixes to inventory timeline (#78226) 2020-09-23 13:53:16 -05:00
gchaps 792db1726a
[DOCS] Redirects CCR and Remote Clusters docs to ES reference (#77909)
* [DOCS] Redirects CRR and Remote Clusters docs to ES reference

* [DOCS] Updates link for remote clusters
2020-09-23 11:52:04 -07:00
Constance 0db3159a9f
[Enterprise Search] Move LicenseContext to Kea (#78231)
* Fix licensing to use start service + refactor

- I noticed my IDE complaining that we were using LicensingPluginSetup (deprecated) instead of LicensingPluginStart, and decided to factor plugin.ts to DRY out / ensure all the dependencies we were passing on app mount were start services and not setup

- The number of args we were passing to renderApp was getting a little ridiculous, so I created small helpers to group them up by type (Kibana's args (dependencies/services) vs our plugin's args (data, config, etc.)

+ bonus remove unused CoreStart type/arg

* Add LicensingLogic + mount

- replaces useObservable with a manual subscription that updates the license value/state
- moves hasXLicense checks to selectors vs helper functions

* Update components w/ license checks to use LicensingLogic

* Update tests for components now calling LicensingLogic

- Add mockLicensingValues to basic kea mock
- Minor comment update to mockAllValues obj that I forgot to add in a previous PR

* 🔥 Remove old LicensingContext
2020-09-23 11:36:13 -07:00
Phillip Burch 14921a037e
[Metrics UI] Anomaly Detection setup flow for Metrics (#76787)
* adds metrics ml integration

* Add ability to create ml jobs from inventory

* Fix i18n stuff

* Fix typecheck

* renames jobs, updates datafeeds

* adds allow_no_indices: true for datafeeds

* Revert "[Metrics UI] Replace Snapshot API with Metrics API (#76253)"

This reverts commit 0ca647286a.

* Add ability to fetch anomalies

* Fix typecheck

* Fix typecheck

* Fix i18n

* Fix lint, use the right partition field

* Delete log files

* Fix merge

* Fix merge issues

* Update name of jobs

* Remove CPU job

* [Metrics UI] Replace Snapshot API with Metrics API (#76253)

- Remove server/lib/snapshot
- Replace backend for /api/infra/snapshot with data from Metrics API
- Fixing tests with updates to the snapshot node

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>

* Add links back to ML for anomalies and manage jobs

* Fix typecheck

* Remove unecessary validation

Co-authored-by: Michael Hirsch <michaelahirsch@gmail.com>
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
Co-authored-by: Chris Cowan <chris@chriscowan.us>
2020-09-23 13:27:28 -05:00
Anton Dosov e0f93233bd
Code-split kibanaReact & kibanaUtils (#78140) 2020-09-23 19:35:22 +02:00
Robert Austin cb451cdaca
[Resolver] add comments. (#78301) 2020-09-23 13:26:13 -04:00
Nicolas Chaulet e1782c1bab
[Ingest Manager] Rewrite config rollout rate limiter (#78045) 2020-09-23 13:24:46 -04:00
Devon Thomson 346c90a77b
Made visualize editor update embeddable title on save rather than overwriting the output title on embeddable update (#78212) 2020-09-23 12:48:00 -04:00
Yuliia Naumenko 12153a436a
Removed delete confirmation timeout to avoid flaky failing because deletion to be a little slower on CI (#77963)
* Removed delete confirmation timeout to avoid flaky failing because deletion to be a little slower on CI

* Changed delete flow to close confim dialog immediately and set data to the loading state
2020-09-23 09:41:35 -07:00