Commit graph

42079 commits

Author SHA1 Message Date
Thomas Watson 5d54e2990b
Update developer docs for upgrading Node.js (#96422) 2021-04-08 08:50:23 -05:00
Jonathan Budzenski 02ba7c4543
[kbn-ui-shared-deps] Remove outdated polyfills (#96339) 2021-04-08 08:49:13 -05:00
Pete Harverson 75e4aeedbc
[ML] Excludes metadata fields from jobs caps fields service response (#96548) 2021-04-08 14:16:31 +01:00
Yulia Čech 0316787ead
[Remote clusters] Cloud deployment form when adding new cluster (#94450)
* Implemented in-form Cloud deployment url input

* Fixed i18n files and added mode switch back for non-Cloud

* Added cloud docs link to the documentation service, fixed snapshot tests

* Fixed docs build

* Added jest test for the new cloud url input

* Added unit test for cloud validation

* Fixed eslint error

* Fixed ts errors

* Added ts-ignore

* Fixed ts errors

* Refactored connection mode component and component tests

* Fixed import

* Fixed copy

* Fixed copy

* Reverted docs changes

* Reverted docs changes

* Replaced the screenshot with a popover and refactored integration tests

* Added todo for cloud deployments link

* Changed cloud URL help text copy

* Added cloud base url and deleted unnecessary base path

* Fixed es error

* Fixed es error

* Changed wording

* Reverted docs changes

* Updated the help popover

* Deleted unneeded fragment component

* Deleted unneeded fragment component

* Updated tests descriptions to be more detailed

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-04-08 14:18:18 +02:00
ymao1 03a51f4eec
[Alerting] Update feature privilege display names (#96083)
* Updating feature display names

* Updating feature display names
2021-04-08 07:47:29 -04:00
Dario Gieselaar bfc940c146
[APM] Extract server type utils to package (#96349) 2021-04-08 13:26:43 +02:00
Dima Arnautov d9ef5c28d5
[ML] Fix switches positioning on the Transform and DFA wizards (#96535)
* [ML] fix edit runtime mapping switch positioning

* [ML] fix transform wizard switches
2021-04-08 07:10:52 -04:00
Anton Dosov 7984745a9d
Don't trigger auto-refresh until previous refresh completes (#93410) 2021-04-08 13:00:11 +02:00
hardikpnsp d39701fc97
[Telemetry] enforce import export type (#96487)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-04-08 06:37:01 -04:00
Mike Côté 81ba969cfa
Skip rendering empty add action variables button as disabled (#96342)
* Skip rendering empty add action variables button

* Fix jest tests

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-04-08 05:24:16 -04:00
spalger f9317281d1 skip suite blocking es promotion (#96515) 2021-04-08 02:09:29 -07:00
Justin Ibarra bc14f2415d
[Detection Rules] Resolves regression where Elastic Endgame rules would warn about unmapped timestamp override field (#96394)
related to https://github.com/elastic/detection-rules/pull/1082

## Summary

Endgame promotion rules in Kibana/7.12 are at version 5 and have timestamp_override defined (which should not be). These same rules are at version 4 in the detection-rules repo 7.12 branch and kibana/master and timestamp_override is not defined. These updates are targeted for 7.12.1

There most likely was an issue with the maze of backports and interlaced updates.

To fix the rules, they need to be reconciled across:

detection-rules 7.12 & main
kibana 7.12.1 and master
bump detection-rules/7.12 to v6 -> PR to kibana/master -> backport to 7.12.1
### Checklist

Delete any items that are not applicable to this PR.

- [x] Any text added follows [EUI's writing guidelines](https://elastic.github.io/eui/#/guidelines/writing), uses sentence case text and includes [i18n support](https://github.com/elastic/kibana/blob/master/packages/kbn-i18n/README.md)


### 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-04-07 23:53:02 -06:00
Shahzad 391e92ead3
[Exploratory view] Use index patterns for formatting (#96280) 2021-04-08 07:16:23 +02:00
Ross Wolf 93965343e5
[Fleet] Install security_rule assets as saved objects (#95885)
* [Fleet] Install security_rule assets as saved objects

* Add security-rule to update_assets.ts

* Update UUIDs for security_rule asset

* Change .type to match the saved object type not the asset type

* Add saved object mapping for security-rule

* Make SO non-hidden

* Fix SO mapping for security-rule

* Make security-rule a non-hidden asset
2021-04-08 00:52:10 -04:00
Garrett Spong d5b3829210
[Security Solution][Detections] Fixes Closing Alerts Cypress Test (#96523)
## Summary

As identified in https://github.com/elastic/kibana/pull/96505#issuecomment-815392671, this fixes the flakiness in the `Closing alerts` cypress test. Method used was to just delete the rule after the initial batch of alerts were generated. Alternatively we could add a function for disabling the rule (didn't see one in there), but the outcome is the same, no more alerts generated while the test is being performed. 🙂 

> Passing locally, though upon further inspection, this test is definitely going to be flakey as it's checking counts on alerts as they move through different states and there are new alerts that keep coming in (hence the count mis-match in the above failure). Potential fixes would be to use an absolute daterange to after the first round of alerts were generated, or just stop generating alerts before performing the alert state changes.


##### Before:
<p align="center">
  <img width="500" src="https://user-images.githubusercontent.com/2946766/113952824-ae1d9500-97d3-11eb-9021-6737544b9c50.png" />
</p>


##### After:

<p align="center">
  <img width="500" src="https://user-images.githubusercontent.com/2946766/113958216-ed50e380-97dd-11eb-9d22-d1c6aafc97d2.png" />
</p>
2021-04-08 00:25:47 -04:00
spalger 0cf31ae22f skip suite block es promotion (#96515)
(cherry picked from commit f06be93a40)
2021-04-07 18:59:01 -07:00
Garrett Spong d63fbb19cd
[Security Solution][Detections]Fixes Rule Management Cypress Tests (#96505)
## Summary
Fixes two cypress tests:

> Deleting prebuilt rules "before each" hook for "Does not allow to delete one rule when more than one is selected"
https://github.com/elastic/kibana/issues/68607

This one is more of a drive around the pot-hole fix as we were waiting for the Alerts Table to load when we really didn't need to. Removed unnecessary check.
<p align="center">
  <img width="500" src="https://user-images.githubusercontent.com/2946766/113932347-b9ab9480-97b0-11eb-8e07-5f3e0c4b6c78.png" />
</p>

> Alerts rules, prebuilt rules Loads prebuilt rules
https://github.com/elastic/kibana/issues/71300

This one was fixed with a `.pipe()` and `.should('not.be.visible')` to ensure the click was successful. Also removed unnecessary check on the Alerts Table loading that was present here as well too..
<p align="center">
  <img width="500" src="https://user-images.githubusercontent.com/2946766/113932285-ac8ea580-97b0-11eb-90e1-618c510d33a7.png" />
</p>
2021-04-07 20:57:24 -04:00
Matthew Kime a6b2a84775
fix index pattern field editor console error (#96497) 2021-04-07 18:33:18 -05:00
spalger fc9f97e03b skip suites failing es promotion (#96515)
(cherry picked from commit 7fdf7e1d79)
2021-04-07 16:10:19 -07:00
Yuliia Naumenko c2d5fa1dda
[Actions] Added action configuration settings maxResponseContentLength and responseTimeout. (#96355)
* [Actions] Added action configuration settings `maxResponseContentLength` and `responseTimeout` which define max response content size (in bytes) and awaiting timeout for action executions based on axios requests.

* replaced pasceDuration with moment

* fixed due to comments

* renamed internal options
2021-04-07 15:06:44 -07:00
Nathan L Smith 8d2d2ad864
Replace EuiPanel with EuiCard when using beta badges (#96147)
In elastic/eui#4649 the `betaBadgeLabel` and related props have been removed from `EuiPanel` and it's now recommended to use an `EuiCard` instead.

Replace these in APM and Observability plugins and update stories so examples can be viewed.
2021-04-07 16:51:05 -05:00
Constance e6e3b16ee1
[Enterprise Search] Change last breadcrumb to inactive/non-linked breadcrumb (#96489)
* Update our EUI breadcrumb helper to skip generating links for the last breadcrumb in the list

* Fix useEuiBreadcrumbs tests

- add a describe block to make it clear we're testing link behavior in non-last breadcrumbs
- add a helper that automatically adds a last breadcrumb so that link generation still works

* Add comment/note as to why I didn't add last-breadcrumb-specific logic to useGenerateBreadcrumbs
2021-04-07 17:18:36 -04:00
Spencer d8ef85e85b
[globby] normalize paths for windows support (#96476)
Co-authored-by: spalger <spalger@users.noreply.github.com>
2021-04-07 14:08:28 -07:00
Melissa Alvarez 71c326c8bf
handle runtime fields in validation step (#96340) 2021-04-07 15:43:06 -04:00
Patrick Mueller ad06d16beb
[actions] adds proxyBypassHosts and proxyOnlyHosts Kibana config keys (#95365)
resolves https://github.com/elastic/kibana/issues/92949

This PR adds two new Kibana config keys to further customize when the proxy
is used when making HTTP requests.  Prior to this PR, if a proxy was set
via the `xpack.actions.proxyUrl` config key, all requests would be
proxied.

Now, there's a further refinement in that hostnames can be added
to the `xpack.actions.proxyBypassHosts` and `xpack.actions.proxyOnlyHosts`
config keys.  Only one of these config keys can be used at a time.

If the target URL hostname of the HTTP request is listed in the
`proxyBypassHosts` list, the proxy won't be used.

If the target URL hostname of the HTTP request is **NOT** listed in the
`proxyOnlyHosts` list, the proxy won't be used.

Depending on the customer's environment, it may be easier to list the hosts to
bypass, or easier to list the hosts that should only be proxied, so they can
choose either method.
2021-04-07 15:20:47 -04:00
David Sánchez 21f38afd27
[SECURITY SOLUTION] Add new exception list type and feature flag for event filtering (#96037)
* New exception list type for event filtering
* New feature flag for event filtering
2021-04-07 15:01:54 -04:00
Thomas Neirynck 324c6c05a4
[Maps] Support query-time runtime fields (#95701) 2021-04-07 15:00:55 -04:00
Thomas Watson 88847b9845
Bump Node.js from version 14.16.0 to 14.16.1 (#96382) 2021-04-07 14:31:10 -04:00
Thomas Watson 0aa348d9be
Bump ssri from 8.0.0 to 8.0.1 (#96452) 2021-04-07 14:22:42 -04:00
Zacqary Adam Xeper c8e23ad440
[Fleet] Fixes to preconfigure API (#96094) 2021-04-07 13:07:39 -05:00
Davey Holler 8e1bd9ccf3
App Search Polish (#96345)
* Button adjustments to Engine Overview page

* Subdued preview panel color

* Vertically aligns "manage fields" and "preview"

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-04-07 10:37:14 -07:00
Søren Louv-Jansen f123084961
[APM] Remove dynamic index pattern caching (#96346)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-04-07 19:30:15 +02:00
Thomas Watson b89776db6d
Bump color-string from 1.5.3 to 1.5.5 (#96433) 2021-04-07 13:25:19 -04:00
Nicolas Chaulet 22f7f17fdf
[Fleet] Move fleet server indices creation out of Kibana (#96338) 2021-04-07 13:07:35 -04:00
Scotty Bollinger 92b659dae0
[Workplace Search] Add AccountHeader to Personal dashboard (#96353)
* Revert change to wrap setContext in useEffect

A recommendation was made to wrap the setContext call in a previous PR, which lets the app know if the context is org or account, in a useEffect call, for potential performance reasons. Unfortunately, this causes the lifecycle to change so that changing routes from org to personal dashboard does not register the change in time. This commit changes it back to a working state.

* Add constants and routes for Account nav

* Add AccountHeader component

* Add header to layout and fix height

The main layout stylesheet, https://github.com/elastic/kibana/blob/master/x-pack/plugins/enterprise_search/public/applications/shared/layout/layout.scss gives a static height that includes the main Kibana navigation. The height with the account nav only is added to the existing privateSourcesLayout css class

* Refactor test
2021-04-07 13:01:26 -04:00
spalger 6b9ba10958 Revert "[Telemetry] enforce import export type (#96199)"
This reverts commit ac46802830.
2021-04-07 09:50:36 -07:00
Paul Tavares 9a0c73e515
[Security Solution][Endpoint] Endpoint Event Filtering List, Test Data Generator and Loader (#96263)
* Added new const to List plugin for new Endpont Event Filter list
* Data Generator for event filters ++ script to load event filters (WIP)
* refactor `generate_data` to use `BaseDataGenerator` class
2021-04-07 12:36:28 -04:00
Thomas Watson e6ef368cfe
Correctly specify css-minimizer-webpack-plugin as a dev-dependency (#96417) 2021-04-07 12:35:36 -04:00
spalger 752308f6d8 skip flaky suite (#96372) 2021-04-07 09:16:50 -07:00
hardikpnsp ac46802830
[Telemetry] enforce import export type (#96199)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-04-07 17:16:39 +01:00
Thomas Watson b96f60f727
Bump postcss-svgo from 4.0.2 to 4.0.3 (#96409) 2021-04-07 12:11:42 -04:00
Jason Stoltzfus 818a740033
[App Search] Added a query performance rating to the Result Settings page (#96230) 2021-04-07 11:56:31 -04:00
Kaarina Tungseth 532145b418
[DOCS] Add s an example for Timelion yaxis function (#96429) 2021-04-07 10:26:34 -05:00
Kaarina Tungseth 63a177e3fd
Adds canvas clog function (#96418)
* Add canvas `clog` function in the doc

* Add basic example to the `clog` canvcas function

* clog canvas function: switch definition/purpose

Co-authored-by: Laurent HUET <laurent.huet@gmail.com>
2021-04-07 10:19:29 -05:00
Kaarina Tungseth 5de5f23fc3
Updated asset code for canvas-expression-lifecycle (#96414)
The demo code need the asset to be wrapped in "' and asset- to be appended onto the id.

Co-authored-by: Zachary E Baxter <zachary.baxter@elastic.co>
2021-04-07 10:16:39 -05:00
Brian Seeders c89922a55c
[project-assigner] remove extra bracket in issue-mappings config (#96428) 2021-04-07 11:08:12 -04:00
spalger df46dc1900 skip flaky suite (#91107) 2021-04-07 08:05:11 -07:00
Yuliia Naumenko 76ed8dbeab
[Alerting UI] Changed alerting UIs use new rule APIs. (#96018)
* [Alerting UI] Changed alerting UIs use new rule APIs.

* added unit tests

* fixed types

* fixed types

* fixed types

* fixed due to comments
2021-04-07 07:54:12 -07:00
ymao1 bb109b533c
[Actions] Hiding time field selector if no field with date mapping in index in Index Connector flyout (#96080)
* Hiding time field selector if no field with date mapping in index

* Fixing types check

* Updating tooltip

* PR fixes
2021-04-07 10:44:12 -04:00
Walter Rafelsberger f945f3a425
[ML] Transforms: Wizard displays warning callout for source preview when used with CCS against clusters below 7.10. (#96297)
The transforms UI source preview uses fields to search and retrieve document attributes. The feature was introduced in 7.10. For cross cluster search, as of now, when a search using fields is used using cross cluster search against a cluster earlier than 7.10, the API won't return an error or other information but just silently drop the fields attribute and return empty hits without field attributes.

In Kibana, index patterns can be set up to use cross cluster search using the pattern <cluster-names>:<pattern>. If we identify such a pattern and the search hits don't include fields attributes, we display a warning callout from now on.
2021-04-07 16:39:11 +02:00