Commit graph

42380 commits

Author SHA1 Message Date
Tiago Costa 00940dd0f5
chore(NA): moving @kbn/babel-code-parser into bazel (#97675)
* chore(NA): moving @kbn/babel-code-parser into bazel

* docs(NA): missing docs about new package

* chore(NA): removing quiet arg

* chore(NA): fix packages build srcs

* chore(NA): change source order on tinymath

* chore(NA): add babelrc

* chore(NA): clear package build migration

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-04-23 17:48:48 +01:00
Melissa Alvarez d6e0251111
[ML] API Integration tests: adds test for Data Frame Analytics evaluate endpoint (#97856)
* wip: add api test for evaluate endpoint

* Add api test for evaluate endpoint

* add tests for view only and unauthorized user

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-04-23 12:44:27 -04:00
Larry Gregory ec8ff3a7fc
Only add cloud-specific links for superusers (#97870)
Co-authored-by: Aleh Zasypkin <aleh.zasypkin@gmail.com>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-04-23 11:59:11 -04:00
Paul Tavares 485692dbf1
[Security solution][Endpoint] New Event Filters sub-section under Administration area (#97903)
* Add Event Filters section to the Admin area (behind feature flag)
* new `PaginatedContent` generic component
* Refactor Trusted Apps grid view to use PaginatedContent
* Refactor usages of `getTestId()` to use new hook
2021-04-23 11:56:18 -04:00
Chris Roberson c9ce295a0b
[Monitoring] Ensure Stack Monitoring UI works with metricbeat-* indices (#96205)
* WIP

* WIP

* Remove unnecessary fields

* Work on node detail page

* Cluster overview looking good

* Index page

* Fix types

* ML jobs

* CCR

* CCR

* We just need total here

* Standalone cluster fix

* Re-enable logstash

* FIx jest test

* Fix tests

* Fix tests

* Fix unused import

* Add new MB-based archives

* Add actual archives

* Fix types

* Add this file back in

* Fix tests and add more

* Update whitelist

* Renames

* Renames

* Only do ccs if enabled

* Updates

* Comment out

* More tests passing

* Another passing test

* More passing, yay

* Forgot to add the actual tests, wow

* CCR

* Fix CI issues

* Missed a field here

* Kibana tests passing

* Fix type issues

* Fix type

* Fix types

* Good chunk of logstash work

* Fix types

* Fix jest test

* Fix issue with get usage in logstash code

* Fix small bug here

* Update archives with proper mappings

* Handle both legacy and mb fields properly

* Fixes

* Fix jest test

* Fix issue

* Getting setup tests in a better state

* Only beats is failing now, which is good

* Progress on cluster listing

* Functional tests passing!

* More progress on cluster tests

* More cluster work

* Fix test

* Last recovery working

* Fix types

* Fix tests

* More tweaks

* Fix snapshot

* Use stats instead of kibana_stats

* Use node and node_stats for logstash

* Beats tests passing

* APM tests passing

* API tests passing!

* Fix types

* Fix tests

* Renames beats-with-restarted-instance archive dirs

Kebab case is disallowed for all newly added files.

* Renames logstash-pipeline dirs

Kebab case disallowed for all new files

* Renames multi-basic dirs

Kebab case disallowed for all new files

* Renames singlecluster-* dirs

Kebab case disallowed for all new files

* Fixes inaccurate path change for archive setup

* Reverts changes to rebuild_all script

Co-authored-by: Jason Rhodes <jason.matthew.rhodes@gmail.com>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-04-23 11:54:32 -04:00
Lisa Cawley 298eccb1ff
[ML] Add tooltip for interval in Anomaly Explorer (#97944) 2021-04-23 08:35:20 -07:00
Jean-Louis Leysens e1fa6b5d89
[Console] Fix handling of switching modes & handling of non JSON data (#97983)
* fix handling of switching modes, fix handling of non JSON data

* remove json guard since this updates the expandLiteralStrings API
2021-04-23 17:32:12 +02:00
Sébastien Loix be5f8a2288
[Form lib] Add documentation (#97309) 2021-04-23 16:29:30 +01:00
Jean-Louis Leysens 851ee69b06
[Console] Fix copy as cURL (#97968)
* updated code to use Clipboard API rather than document.execCommand

* added link to deprecation of document.execCommand

* removed legacy copy text method
2021-04-23 17:18:05 +02:00
Jean-Louis Leysens 00c62afaf8
initial migration (#97795)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-04-23 17:14:54 +02:00
Yulia Čech 5d0af1cd36
[Cloud plugin] Added README text (#97999)
* Added README text

* Update x-pack/plugins/cloud/README.md

Co-authored-by: Alejandro Fernández Haro <afharo@gmail.com>

* Updated README.md

* Updated docs build

Co-authored-by: Alejandro Fernández Haro <afharo@gmail.com>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-04-23 17:08:22 +02:00
Corey Robertson 4b42713156
Fix bug with plot sorting (#98084) 2021-04-23 10:31:00 -04:00
Melissa Alvarez 51a50efe05
add explain api endpoint test (#98060) 2021-04-23 10:27:25 -04:00
renovate[bot] fc9929e2e3
Update dependency @elastic/charts to v29 (master) (#98093) 2021-04-23 09:27:10 -05:00
Nicolas Chaulet 7a4a71cff7
[Fleet] Set fleet server host in cloud (#98070) 2021-04-23 09:57:13 -04:00
Marta Bondyra 2f66397b07
[Lens] Fix mobile view (#96957) 2021-04-23 15:56:02 +02:00
James Gowdy bda0a934d3
[ML] removing unused notification settings endpoint (#98109)
* [ML] removing unused notification settings endpoint

* removing route init function

* test commit

* removing test comment
2021-04-23 14:11:03 +01:00
James Gowdy 1b1d98be3c
[ML] Fixing categorization job wizard with CCS (#97855)
* [ML] Fixing categorization job wizard with CCS

* adding comment

* switching logic around

* updating text

* moving ccs check to util function

* fixing jest test mock

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-04-23 14:10:29 +01:00
Mike Côté 7598f57bcb
Log instead of throwing error when alert type doesn't exist (#98005)
* Log instead of throwing error when alert type doesn't exist

* Cleanup i18n

* Update error messages
2021-04-23 07:05:51 -04:00
Gidi Meir Morris 1dd5e1f13d
Expands docs on List rule types API (#97608)
Corrected docs for List rule types API
2021-04-23 10:58:07 +01:00
Marco Liberati 0423e7dfca
[Lens] Make Lens report internal code errors correctly (#97980) 2021-04-23 11:07:11 +02:00
Davey Holler 4eb6c22bcc
[App Search] UI polish - empty states (#97875)
* Empty State in Curations

* Adds Empty State to Documents View

* Updates Empty State in Engines Overview

* Updates Relevance Tuning empty state

* Updates the Result Settings empty state

* Updating test files.

* Display the empty state in the table only

* Copy changes

Small copy changes to bring it more inline with Elastic guidelines

* Update api_logs_table test

* Copy adjustments

* Fixing failing type check

* Copy adjustments on credentials empty state

* Copy changes on meta engines table

* Removes emptyState__prompt class

* Removes emptyState__prompt class

Forgot to save a file

* Update x-pack/plugins/enterprise_search/public/applications/app_search/components/engines/components/empty_state.tsx

* Adding the popout icon to docs links

* Removes the need  for the engineIcon class

Also allows EuiIcon props to be passed to metaEngineIcon

* Updates meta engine empty state button to docs link

* Adds a separate constant for the empty meta engine button

* Meta Engines empty state refactor

- pull it out to its own component
- simplify tests
- simplify constants, they're only in 1 location so prob don't need to be in DRY'd out
- fix some i18n IDs

* Curations refactor

* Documents empty state refactor

 - create components/ folder, move document creation button to there (feels like it belongs)
 - move empty state there
 - remove other empty state prompt from SearchExperienceContent??? Not sure why that wasn't showing up, but fixed tests/returns

* Relevance Tuning refactor

- create components/ folder
- move empty state + shared boost icon & value badge to it
- write test for missing value badge coverage

MISC
- Fix loading screen to an early return (matches UI of all other views)
- Remove extra EuiSpacer in layout (matches UI of all other views)

Sorry for the extra noise in your PR Davey!

* Result Settings refactor

- move empty state to its own component
- fix broken .html.html link

* Fix missing popout icon on documentation button link

* EnginesOverview cleanup

- Remove unnecessary CSS
- fix responsive behavior of icons
- standardize responsive behavior of create button actions
- standardize spacing between content headers & tables
- Tweak gap between 2 tables

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Constance <constancecchen@users.noreply.github.com>
Co-authored-by: Constance Chen <constance.chen.3@gmail.com>
2021-04-22 21:43:14 -04:00
Aaron Caldwell 9e8e6b227c
[Maps] Add geo alerts dirs to codeowners (#98076)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-04-22 17:40:44 -04:00
Jonathan Budzenski fde12bf145 skip flaky suite. #97954 2021-04-22 16:22:42 -05:00
Jason Stoltzfus fc45de9fd0
Don't hungry mock within mocks (#98040) 2021-04-22 16:25:07 -04:00
Constance 94e5acd147
Update synonyms API routes (#98046)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-04-22 16:24:36 -04:00
Dominique Clarke 8fff372e52
[Uptime] - monitors - update ExpandRowColumn to use isDisabled prop (#97883) 2021-04-22 15:31:35 -04:00
Dominique Clarke aee7787db9
[Uptime] open synthetics beta disclaimer in a new tab (#97822) 2021-04-22 15:31:04 -04:00
Michael Dokolin 49a18483d3
Refactor execution service to use observables underneath (#96065)
* Refactor execution service to use observables underneath
* Fix canvas plugin to initialize workspace after assets
* Update expression functions implementations to resolve observables instead of promises
2021-04-22 20:36:25 +02:00
Spencer 6bb289368b
Revert skips added while triaging ES OOMs (#97876)
* Revert "skip flaky suite (#97382)"

This reverts commit e321f57f64.

* Revert "skip flaky suite (#97387)"

This reverts commit a89b756710.

* Revert "Skip test to try and stabilize master" (#97378)

This reverts commit 194355fdd3.

* upload heap dumps when they are created

Co-authored-by: spalger <spalger@users.noreply.github.com>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-04-22 11:30:27 -07:00
Melissa Alvarez 2f25047cbd
[ML] DF Analytics map: deselect node after node action or flyout close (#97922)
* deselect node after node action or flyout close

* remove unnecessary wrapping function for deselect
2021-04-22 13:25:16 -04:00
Larry Gregory dc8786604a
Create privilege action to allow for decrypted telemetry payload (#96571)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-04-22 13:08:26 -04:00
Maja Grubic 55f3b8975e
[Discover Index Pattern management] Add more unit tests (#97749)
* [Discover Index Pattern management] Add more unit tests

* [Discover Index Pattern management] Fix typo

* Fix failing unit test
2021-04-22 18:02:21 +01:00
Tiago Costa a8a8289b20
chore(NA): chore(NA): moving @kbn/utils into bazel (#97833)
* chore(NA): chore(NA): moving @kbn/utils into bazel

* chore(NA): run kbn-test integration test with preserve-symlinks
2021-04-22 17:55:38 +01:00
Zacqary Adam Xeper 57f84f8593
[Fleet] Refactor setup to load default packages/policies with preconfiguration (#97328)
Co-authored-by: Nicolas Chaulet <nicolas.chaulet@elastic.co>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-04-22 11:25:10 -05:00
Quynh Nguyen 97ebe11aac
[ML] Fix Anomaly Detection influencer filter icons spacing too big (#97713)
* [ML] Fix entity button too big

* [ML] Consolidate sizing to eui size

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-04-22 11:02:24 -05:00
Wylie Conlon d25bd680eb
Switch Tinymath to use peggy instead of pegjs (#97906) 2021-04-22 12:01:45 -04:00
Jason Stoltzfus 8bbf9c0e28
[App Search] Disabled Save button when nothing selected (#97896) 2021-04-22 11:50:38 -04:00
Lisa Cawley 5c94911543
[ML] Adds tooltip for top influencers (#97762)
Co-authored-by: Dima Arnautov <arnautov.dima@gmail.com>
2021-04-22 08:18:49 -07:00
Dima Arnautov 49cdc9066d
[ML] Improve functional tests for Anomaly detection alert rule (#97998)
* [ML] ensureAdvancedSectionOpen for assertion

* [ML] delete alert rules after tests execution

* [ML] add isAdvancedSectionOpened
2021-04-22 11:16:54 -04:00
Frank Hassanabad 2f679e6df3
[Security Solutions] Critical bug to add network responses to error toasters (#97945)
## Summary

When we updated our codebase to use the newer bsearch/async search, we ended up using error messages which were not the same as we had before which would show the network errors in the full message when the "see full error button" was clicked.

This has been bad lately as users and quality assurance people have been posting screen shots that have very little information, blank error messages, and/or stack traces instead of network errors. This makes them think the code has issues when it is a configuration issue or a networking issue that is happening.

This PR does the following:
* Changes all the bsearch queries to use the use useAppToasts
* Modifies the useAppToasts to be able to transform bsearch with the kibana global notification
* Cleans up the useAppToasts some
* Deprecates the GlobalErrorToaster in favor of the useAppToasts
* Fixes and adds a few i18n missing strings found
* Removes most of the deprecated error dispatch toasters from detection_engine except for 1 place where it is not a hook.
 
Before screen shot of errors with no buttons and messages that were not pointing to network errors:
<img width="422" alt="Screen Shot 2021-04-21 at 4 24 45 PM" src="https://user-images.githubusercontent.com/1151048/115642119-9a942300-a2d7-11eb-955a-b51097a8d3ec.png">


After screen shot where you have a button and that button will show you the network error:
<img width="395" alt="Screen Shot 2021-04-21 at 3 26 12 PM" src="https://user-images.githubusercontent.com/1151048/115642216-c6170d80-a2d7-11eb-8c94-0a1c15186fab.png">

<img width="786" alt="Screen Shot 2021-04-21 at 3 26 21 PM" src="https://user-images.githubusercontent.com/1151048/115642222-ca432b00-a2d7-11eb-9ddd-4ed6c6270b94.png">

You can manually test this easily by making non ECS indexes to cause errors and then add them as a kibana index and use them in the data sourcer.

### Checklist

- [x] [Unit or functional tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html) were updated or added to match the most common scenarios
2021-04-22 08:57:18 -06:00
Scotty Bollinger 65287dffad
[Enterprise Search] Fix unstyled UI for Schema Errors (#97776)
* Refactor main component

* Refactor faux view button

The original design called for a button-looking component on the accordion header so it looks clickable to reveal the error underneath. Using a button element caused the console to error because the entire header is a button and this is a child. Adding an href fixes the error and allows for styling as a button

* Use empty button rather than styles components for view button

* Remove extra classNames and fix layout to stretch cells

* Add stylesheet

Without the width: 100% on .euiIEFlexWrapFix, the header table does not stretch across the screen. Couldn’t find another way around this and happy to take suggestions of a better idea.

* Add prop to prevent line break on IDs

Existing implementation was causing multi-character IDs to break to a new line. So for 12, its was:

1
2
2021-04-22 09:43:53 -05:00
Melissa Alvarez 967b17275b
ensure progress is updated correctly (#97889) 2021-04-22 10:32:22 -04:00
Eric Wei 98c7d7da0a
#95263 Set kbn-href when location changed (#95377)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-04-22 10:32:02 -04:00
Quynh Nguyen fecdd45d93
[ML] Fix Data Visualizer event rate chart empty for some indices when using long time range (#97655)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-04-22 08:59:24 -05:00
Nathan Reese 158fff3297
[Maps] fix cannot read propery 'getImage' of undefined (#97829) 2021-04-22 07:51:30 -06:00
Pierre Gayvallet ff0276b6a2
Block value 0 for terms.min_doc_count aggregation (#97966)
* Block value `0` for terms.min_doc_count aggregation

* do the same for histogram
2021-04-22 15:14:17 +02:00
Scotty Bollinger 649a2e01fc
[Workplace Search] PR#3358 to Kibana (#97921)
* Render flash message when server sends back an error

* Fetch data on all route changes

This produced a bug where the nav and loading states were triggered between route changes. Added conditional to prevent resetting between in-source changes
2021-04-22 08:01:45 -05:00
Alejandro Fernández Haro 4295f85124
[flaky-test] Unskip SOM edit_saved_object tests (#97846) 2021-04-22 13:22:42 +01:00
Angela Chuang f094d9fdc2
[Security Solution] Events integration test (#97519)
* events integration test

* add constants

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-04-22 12:50:35 +01:00