Commit graph

39229 commits

Author SHA1 Message Date
ymao1 e863bfb198
[Alerting UI] Fixing bug when switching between threshold comparators (#85844)
* Fixing bug when switching between comparators with different number of inputs

* Triggering onThresholdChange call on next render cycle
2020-12-16 15:51:51 -05:00
Scotty Bollinger 0ad88af894
[Workplace Search] Add unit tests for Add Source components (#86020)
* Add mocks

* Make mergeServerAndStaticData available to tests

This method is needed to combine the 3 types of data to use in the logic files. Exporting this so that the mock data can be combined for testing in components.

It was discovered that the serverData had the wrong typings. This was only discovered when actully mocking the real server data, so it was changed here.

* Add tests for AddSourceHeader

* Add tests for AddSourceList

* Add tests for AvailableSourcesList

* Add tests for ConfigCompleted

* Add tests for ConfigDocsLinks

* Add tests for ConfigurationIntro

* Add tests for ConfigureCustom

* Add tests for ConfigureOauth

* Fix typo

* Add coverage for missing functions

The converage tool was complaining and this change assures formSubmitSuccess and  handleFormSubmitError are covered

* Fix mocks

Needed an accountOnly source in this test so changed and update other tests where used

* Add tests for ConfiguredSourcesList

* Add tests for ReAuthenticate

Also changes the syntax of the redirect to use the replace method for easier testing

* Add sourceConfigData mock

* Add tests for SaveConfig

* Add tests for SaveCustom

* Add tests for SourceFeatures

* Add tests for ConnectInstance

As with the ReAuthenticate component, changes the syntax of the redirect to use the replace method for easier testing.
2020-12-16 14:25:16 -06:00
Dmitry 2fcce0bcbc
[coverage] re-enable jest (#85946)
* [coverage] re-enable jest

* fix coverage script for x-pack

* use presets in entry configs

* set max workers

* run tests from x-pack folde

* remove duplicate 'reporters' prop

* remove reporters for x-pack config

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2020-12-16 20:20:55 +01:00
ymao1 7933f0458c
Fixes Failing test: Chrome X-Pack UI Functional Tests.x-pack/test/functional_with_es_ssl/apps/triggers_actions_ui/alert_create_flyout·ts - Actions and Triggers app create alert should show save confirmation before creating alert with no actions (#85623)
* Unskipping test

* Using simpler alert type during test

* Fixing test

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2020-12-16 14:04:21 -05:00
Melissa Alvarez a0898715b3
[ML] Data Frame Analytics map: add initial functional tests (#86032)
* initial functional tests for job map

* move tests to own statement
2020-12-16 13:44:59 -05:00
Xavier Mouligneau 0586c06ffc
[Security Solution] Add Pinned Event tabs on Timeline (#85905)
* wip

* finish drag & drop from pinned events + fix top n

* Fix types

* update cypress

* Fix unit tests

* fix cypress test

* fix filter out/in

* remove unused components

* fix pagination cypress test

* cypress timelines selectors

* review and skip cypress test

* more to skip

* fix type

* skip case

* Fix types

* Fix tests

* skip resolver

* only query pinned events

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Christos Nasikas <christos.nasikas@elastic.co>
Co-authored-by: Angela Chuang <yi-chun.chuang@elastic.co>
2020-12-16 18:44:37 +00:00
Eric Davis 42ee51b67d
Update index.tsx to note use can go to docs for DEB/RPM Agent deploy instructions (#86128) 2020-12-16 13:41:35 -05:00
Mike Côté 4e6189436e
Fix codeowners file for alerting stack alerts (#86148) 2020-12-16 13:35:53 -05:00
Lukas Olson 272b2d0628
[KQL] Fix handling of backslashes when autocompleting values (#85457)
* [KQL] Fix handling of backslashes when autocompleting values

* Revert change to test

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2020-12-16 11:21:51 -07:00
Nathan Reese 4b2c9de638
[Maps] convert MBMap component to TS (#85192)
* [Maps] convert MBMap component to TS

* clean up imports messed up by eslint fix

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2020-12-16 11:21:04 -07:00
Tyler Smalley 0921a7a1e1
[backportrc] Adds 7.11 branch and bumps 7.x (#86131)
Signed-off-by: Tyler Smalley <tyler.smalley@elastic.co>
2020-12-16 10:10:39 -08:00
Tiago Costa 1e3a483b06
chore(NA): rebalance x-pack cigroups (#85797) 2020-12-16 09:58:46 -08:00
Mikhail Shustov 0be9230ff3
add tests for response headers (#86091) 2020-12-16 17:52:51 +01:00
Lisa Cawley 5c64db9695
[ML] Add transforms to doc links service (#86036) 2020-12-16 08:23:39 -08:00
Brandon Morelli e48dbf3c57
[APM] docs: update agent instructions (#85855)
Co-authored-by: Casper Hübertz <casper@formgeist.com>
Co-authored-by: Casper Hübertz <casper@formgeist.com>
2020-12-16 07:57:39 -08:00
Søren Louv-Jansen 744d6809de
[APM] Fix broken link to ML when time range is not set (#85976) 2020-12-16 16:17:03 +01:00
Melissa Alvarez 201b456a62
fix classification matrix actual label (#86060) 2020-12-16 10:03:01 -05:00
James Gowdy ed250faabc
[ML] Adding runtime_mappings to job wizards (#85817)
* [ML] Adding runtime_mappings to job wizards

* fixing test

* adding runtime fields to fields list in datafeed preview

* fixing cardinality count for runtime field

* fixing cardinality check in data visualizer

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2020-12-16 14:55:01 +00:00
Jonathan Buttner fa2db85eac
[Security Solution][Resolver] Fix node data refresh and time range (#86014)
* Pass filters from SIEM to resolver

* Fix test type errors

* Revert loading state change, update snapshots

* Make correct check in nodeData selector

* Fix inverted logic in nodeData selector

* Adding request id to node data

* Working time range filters and node data stale selector

* Fixing random name from generator and panel icons

* Fixing unused import

* Remove hardcoded node id

* Ensure that the actions array is reset before each test

Co-authored-by: Kevin Qualters <kevin.qualters@elastic.co>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2020-12-16 09:52:55 -05:00
DeFazio 2f5f1481fb
Changes alerting search bar to use EuiFieldSearch component (#85821)
* Changes search bar to use search field specific eui component

* Update type checks
2020-12-16 09:42:29 -05:00
Daniil 5b1006189f
Fix auto time interval preselection if disabled (#85937)
* Hide auto interval when it is filtered

* Add unit tests

* Fix types
2020-12-16 17:39:05 +03:00
Thom Heymann 4e1a27a468
Added log file rotation settings to docs (#85835)
* Added log file rotation settings to docs

* Fix heading level

* Fix table alignment

* Added code block explanations

* Fix asciidoc syntax

* Fix asciidoc syntax attempt 2

* Apply suggestions from code review

Co-authored-by: Larry Gregory <larry.gregory@elastic.co>

* Add tip

* Apply suggestions from code review

Co-authored-by: gchaps <33642766+gchaps@users.noreply.github.com>

* Add cloud icons

Co-authored-by: Larry Gregory <larry.gregory@elastic.co>
Co-authored-by: gchaps <33642766+gchaps@users.noreply.github.com>
2020-12-16 13:47:26 +00:00
Dario Gieselaar 003efb1cc4
expectSnapshot: throw on CI when snapshot is new (#85376) 2020-12-16 13:21:48 +01:00
Thomas Watson a1bd35f212
Bump Node.js from version 14.15.1 to 14.15.2 (#86087) 2020-12-16 12:45:01 +01:00
James Gowdy 168782d261
[ML] Adding job sychronization warning to job list pages (#85794)
* [ML] Adding job sychronization warning to job list pages

* fixing overview page callout

* improving check logic

* adding render lock

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2020-12-16 09:30:53 +00:00
Marta Bondyra 800f79e588
[Lens] add typeToAgg for median (#86078) 2020-12-16 10:27:00 +01:00
Mikkel Malmberg 39543e84e9
[APM] Add sanitize_field_names and transaction_ignore_urls config options to Ruby agent (#85646)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2020-12-16 09:41:54 +01:00
Silvia Mitter a8d8b7fc4c
update apm index pattern (#86000) 2020-12-16 08:45:04 +01:00
Robert Oskamp ba7111752e
[ML] Functional tests - stabilize summary count field input (#85974)
This PR stabilizes the summary count field input by adding a retry.
2020-12-16 08:42:39 +01:00
Andrew Goldstein d559f0c3b9
[Security Solution][Timeline] Timeline and Draggable Accessibility (a11y) Improvements (#85767)
# [Security Solution][Timeline] Timeline and Draggable Accessibility (a11y) Improvements

This PR improves the accessibility of Timeline and the draggables used throughout the Security Solution.

- ⌨️ Keyboard support for all draggables
  - 🖱 Click on any draggable with the mouse to give it keyboard focus

  - 🕵️‍♀️ Press `Enter` to display the draggable's action / options menu (e.g. Filter value, Investigate in Timeline, Show Top N). The menu also displays hyperlinks to allow for keyboard navigation from draggables containing links.

  - 🚀 Press `Space` to start dragging via keyboard, and press `Space` again to drop

- 🏓 Timeline, + all Timeline-based tables (i.e. Detections, Host / Network Events, External alerts) support keyboard navigation
  - ⬆️ ⬇️ ⬅️ ➡️ arrow key navigation per the `Keyboard Support` section of [w3.org grid examples](https://www.w3.org/TR/wai-aria-practices-1.1/examples/grid/dataGrids.html)

  - 📉 📈 `page down` and `page up` support per the `Keyboard interactions` section of the [MDN ARIA grid role documentation](<https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Roles/Grid_Role>) (and also the [w3](https://www.w3.org/TR/wai-aria-practices-1.1/examples/grid/dataGrids.html))

  - 🏠 🔚 `home` and `end` moves focus to the first and last cell in the row, per [w3.org](https://www.w3.org/TR/wai-aria-practices-1.1/examples/grid/dataGrids.html) & [MDN](<https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Roles/Grid_Role>)

  - 🕹🏠 🕹🔚 `ctrl + home` and `ctrl + end` moves focus to the first and last cell in the row, per [w3.org](https://www.w3.org/TR/wai-aria-practices-1.1/examples/grid/dataGrids.html) & [MDN](<https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Roles/Grid_Role>)

- 🎉 Screenreader improvements for Timeline, + all Timeline-based tables, and draggables (tested with Voiceover for `macOS` version `10.15`)

  - 👂 Draggables implement custom screenreader announcements. For example, when a draggable field is selected, the screenreader reads a custom message that reads the _field name_ in addition to the value, to provide additional context. For example, selecting a field named `network_flow` may be read phonetically by the screen reader as:
  > event.action network underscore flow Press enter for actions, or press space to begin dragging

  - 📅 Timeline, + all Timeline-based tables provide an enhanced screenreader experience via the use of `EuiScreenReaderOnly` and [w3 grid roles](https://www.w3.org/TR/wai-aria-practices-1.1/examples/grid/dataGrids.html) to provide context. For example, after clicking an arrow key to select a cell, the screenreader reads:

  > You are in a table cell. row: 2, column: 5, event.module system Press enter for options, or press space to begin dragging.

  ![you-are-in-a-table-cell](https://user-images.githubusercontent.com/4459398/102074207-a7e95000-3dc1-11eb-8e01-5b14c72094c9.png)

  - 📰 Timeline's table supports Voiceover screenreader shortcuts that read all cells across a row, or all rows down a column. See <https://github.com/elastic/kibana/issues/83364> for details

  - 🍿 popovers and tooltips were enhanced via `EuiScreenReaderOnly` to provide additional context to screen readers

- 🪓 The [axe - Web Accessibility Testing Chrome extension](https://chrome.google.com/webstore/detail/axe-web-accessibility-tes/lhdoppojpmngadmnindnejefpokejbdd) was run interactively throughout the Security Solution to find and fix the highest-severity issues found by `axe`

- 🧹 Other keyboard-related improvements include

  - The `Customize Columns` popover traps keyboard focus, and allows navigation of content via arrow keys & home / end

  - The `Event details` view allows navigation of content via arrow keys & home / end

  - Improvements to keyboard-focus trapping in popovers throughout the Security Solution

This PR addresses the following issues:

- [X] [[Security Solution] Add support for Voiceover announcements In Timeline's table #83364](https://github.com/elastic/kibana/issues/83364)

- [X] [[Security app] Detections events list 'overflow' ... button and expand > button do not have hover over names #74140](https://github.com/elastic/kibana/issues/74140)

- [X] [SIEM app accessibility issues #64596](https://github.com/elastic/kibana/issues/64596)

- After merging with the _Timeline Evolution_ PR, the drop zone at the bottom of the screen stopped accepting draggables after the first draggable is dropped. The current workaround is to press `Enter` to open the draggables action menu, and select the `Investigate in timeline` action. When Timeline is open, the drag area at the top of the screen accepts additional draggables via keyboard. EDIT: I paired with @XavierM on this, and he has a fix for this issue (duplicate draggable IDs) in his PR.
2020-12-15 23:20:30 -07:00
Tyler Smalley 78bd95f5ca Skip Flaky Security Cypress tests
Signed-off-by: Tyler Smalley <tyler.smalley@elastic.co>
2020-12-15 22:09:45 -08:00
Yara Tercero be055b85b8
[Security Solution][Detections] - Add skeleton exceptions list tab to all rules page (#85465)
## Summary

This PR is the first of 2 to complete the addition of a table displaying all exception lists on the all rules page. This PR focuses on the following:

- all exception lists displayed
- 'number of rules assigned to' displayed
- names and links of rules assigned to displayed
- refresh action button working
- no trusted apps list show
- search by `name`, `created_by`, `list_id`
  - just searching a word will search by list name
  - to search by `created_by` type `created_by:ytercero`
  - to search by `list_id` type `list_id:some-list-id`

#### TO DO (follow up PR)
- [ ] add tests
- [ ] wire up export of exception list
- [ ] wire up deletion of exception list

<img width="1121" alt="Screen Shot 2020-12-09 at 2 10 59 PM" src="https://user-images.githubusercontent.com/10927944/101676548-50498e00-3a29-11eb-90cb-5f56fc8c0a1b.png">

### Checklist
- [ ] 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)
- [ ] [Documentation](https://www.elastic.co/guide/en/kibana/master/development-documentation.html) was added for features that require explanation or tutorials
- [ ] [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
- [ ] Any UI touched in this PR is usable by keyboard only (learn more about [keyboard accessibility](https://webaim.org/techniques/keyboard/))
- [ ] Any UI touched in this PR does not create any new axe failures (run axe in browser: [FF](https://addons.mozilla.org/en-US/firefox/addon/axe-devtools/), [Chrome](https://chrome.google.com/webstore/detail/axe-web-accessibility-tes/lhdoppojpmngadmnindnejefpokejbdd?hl=en-US))
- [ ] This renders correctly on smaller devices using a responsive layout. (You can test this [in your browser](https://www.browserstack.com/guide/responsive-testing-on-local-server))
- [ ] This was checked for [cross-browser compatibility](https://www.elastic.co/support/matrix#matrix_browsers)

### 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)
2020-12-15 22:45:18 -07:00
Garrett Spong 4dccbcad33
[SecuritySolution][Detections] Resolves referential integrity issues when deleting value lists (#85925)
## Summary

Resolves https://github.com/elastic/kibana/issues/77324, https://github.com/elastic/kibana/issues/77325, resolves https://github.com/elastic/kibana/issues/77325, and resolves https://github.com/elastic/kibana/issues/81302


This PR addresses referential integrity issues when deleting value lists. Previously when deleting value lists, any references in Exception Lists/Items would be left behind. This PR introduces a new confirmation modal when deleting value lists that are referenced in either space aware (`simple`) or space `agnostic` exception lists.

Also includes:

* Fixed Lists plugin `quick_start.sh` as it was using endpoint exception list + value lists (unsupported)
* Adds `quick_start_value_list_references.sh` to create exception lists/items, value lists, and references to easily test
* Add support to `findExceptionList` for searching for both `simple` and `agnostic` list types
* Two new query params have been added to the `deleteListRoute`
  * `ignoreReferences` (default:false) when true, maintains pre-7.11 behavior of deleting value list without performing any additional checks. 
    * NOTE: As written, this becomes an API breaking change as existing existing calls to the same API will `409` conflict if references exist. cc @jmikell821 @DonNateR 
  * `deleteReferences` (default:false) to perform dry run and identify referenced exception lists/items

## Testing
To test, run `quick_start_value_list_references.sh` and it will create all the necessary resources/references to easily exercise the above functionality. The below diagram details the resources created and how the references are wired up.

> Creates three different exception lists and value lists, and associates as
> below to test referential integrity functionality.
>
> NOTE: Endpoint lists don't support value lists, and are not tested here
>
> EL: Exception list
> ELI Exception list Item
> VL: Value list
>
>      EL1        EL2 (Agnostic)   EL3
>       |          |                |
>      ELI1       ELI2             ELI3
>       |\        /|                |
>       | \      / |                |
>       |  \    /  |                |
>       |   \  /   |                |
>       |    \/    |                |
>       |    /\    |                |
>       |   /  \   |                |
>       |  /    \  |                |
>       | /      \ |                |
>       |/        \|                |
>      VL1        VL2              VL3        VL4
>      ips.txt  ip_range.txt       text.txt   hosts.txt
>

Corner cases to be aware of:

* An exception item may have multiple value list entries -- only referenced value list entries should be removed
  * There is no API for removing individual entries. If all entries are references the entire item is deleted. If only some entries are references, the item is updated via a `PUT` (no `PATCH` support for exception items)
* It's not possible via the UI to create a space agnostic list that has value list exception items (only agnostic endpoint exception lists can be created and they do not support value lists). Please use above script to exercise this behavior.


Additional notes:
* Once the Exception List table is introduced (https://github.com/elastic/kibana/pull/85465), we can add an enhancement for deeplinking to exception lists from the reference error modal.
* The `deleteListRoute` response has been updated to include the responses from the reference checks to provide maximum flexibility
* There is no bulk API for deleting exception list items, and so they are iterated over via the `deleteExceptionListItem` API.


##### Reference error modal
<p align="center">
  <img width="500" src="https://user-images.githubusercontent.com/2946766/102199153-813e1e80-3e80-11eb-8a9b-af116ca13df9.gif" />
</p>




##### Overflow example
<p align="center">
  <img width="500" src="https://user-images.githubusercontent.com/2946766/102199032-5784f780-3e80-11eb-81c7-17283d002ce4.gif" />
</p>

### 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)
- [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
- [X] Any UI touched in this PR is usable by keyboard only (learn more about [keyboard accessibility](https://webaim.org/techniques/keyboard/))

### For maintainers

- [X] 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)
2020-12-15 19:50:31 -07:00
Catherine Liu 92a805f56f
[Dashboard] Panel toolbar (#83342)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2020-12-15 19:30:09 -07:00
Sandra Gonzales 7ae4f2d572
remove test that checks for data stream backing index names (#86052) 2020-12-15 20:34:55 -05:00
Thomas Neirynck 3b67384717
[Maps] Unify legend for percentiles, interpolate and custom ordinal color breaks (#86050)
* [Maps] unify legend for percentiles, interpolate, and custom ordinal color breaks (#85343)

* [Maps] unify legend for percentiles, interpolate, and custom ordinal color breaks

* unify mapbox style expression

* snapshot updates

* update jest expects

* use less than and great than symbol for first and last stop

* tslint

* do not show legend if customColorRamp is not provided

* update functional test expects

* update functional test expect

* update mapbox expect expressions in join functional tests

* update mvt expects

* revert mapbox style expression changes for interpole color ramp

* add greater then and equal to symbol for last stop

* disable stop input for first ordinal color stop

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

* fix crossmerge

Co-authored-by: Nathan Reese <reese.nathan@gmail.com>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2020-12-15 18:25:16 -07:00
Aaron Caldwell 767a052521
[Maps][File upload] Fix geojson upload diacritic handling (#83122)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2020-12-15 17:31:49 -07:00
Ahmad Bamieh 28c8cfbff4
[Telemetry] Application Usage track sub application views (#85765)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2020-12-15 17:25:51 -07:00
Steph Milovic 8f8e933741
[Actions] [Security solution] Jest tests for case_params files (#86028) 2020-12-15 17:20:22 -07:00
Michael Olorunnisola a9adeee891
[Security Solution][Resolver] Stop tooltip from triggering on popover open (#86010) 2020-12-15 18:46:49 -05:00
Walter Rafelsberger 5bf6eeb8c6
[ML] Data frame analytics: Scatterplot matrix for outlier detection. (#73419)
Scatterplot Matrix for Data Frame Analytics Creation Wizard and Outlier Results pages.
2020-12-16 00:26:47 +01:00
Tyler Smalley c3770fd709 Revert " [Maps] unify legend for percentiles, interpolate, and custom ordinal color breaks (#85343)"
This reverts commit 85dae266eb.
2020-12-15 14:43:41 -08:00
Lisa Cawley a9a06ffa74
[ML] Add machine learning documentation links (#85089) 2020-12-15 14:43:27 -08:00
Paul Tavares 69000ffb0d
[SECURITY_SOLUTION][ENDPOINT] Show Trusted Apps summary stats on Custom tab under fleet integrations (#86018)
* show trusted app summary
2020-12-15 17:30:38 -05:00
Georgii Gorbachev 06907b845e
[Security Solution][Detections] Update read-only callouts from warning to info so they persist when dismissed (#84904)
**Addresses:** https://github.com/elastic/kibana/issues/76587

## Summary

In this PR I'm doing basically 2 things:

1. Making readonly callouts we have in Detections `primary` instead of `warning` and thus persistable in local storage (if a callout is dismissed, we remember it there)
2. Creating a reusable implementation for that.

TODO:

- [x] Adjust all callouts used in Detections to be of type `primary`
- [x] Implement the local storage logic (dumb)
- [x] Implement the local storage logic (reusable)
- [x] Add a new user role: "Reader" (read-only user)
- [x] Add Cypress tests

Out of scope:

- Add unit tests. I'll probably address this in a follow-up PR. Do you think it's worth it or better to wait until the rework (see the next point)?
- Rework callouts to standardise them across Detections, Cases and other parts of the Security app? See my comment below in this PR.

## Screen recordings

Quick demo of how this implementation works:

- [primary callouts](https://drive.google.com/file/d/1SYQd_ihKPvzlVUxELI8qNEqLBOkL18Gd/view?usp=sharing)
- [warning, danger](https://drive.google.com/file/d/1lrAFPyXNjOYSiEsUXxY_fjXsvmyDcdWY/view?usp=sharing) (callout types here were manually adjusted)

## Additional notes

Cypress tests are based on the work done in https://github.com/elastic/kibana/pull/81866.

![](https://puu.sh/GXwOd/1c855cb03f.png)
2020-12-15 23:28:00 +01:00
Thomas Neirynck 24f463f84c
[Maps] Track enterprise use of on-prem EMS (#85885) 2020-12-15 16:50:26 -05:00
Nathan Reese 85dae266eb
[Maps] unify legend for percentiles, interpolate, and custom ordinal color breaks (#85343)
* [Maps] unify legend for percentiles, interpolate, and custom ordinal color breaks

* unify mapbox style expression

* snapshot updates

* update jest expects

* use less than and great than symbol for first and last stop

* tslint

* do not show legend if customColorRamp is not provided

* update functional test expects

* update functional test expect

* update mapbox expect expressions in join functional tests

* update mvt expects

* revert mapbox style expression changes for interpole color ramp

* add greater then and equal to symbol for last stop

* disable stop input for first ordinal color stop

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2020-12-15 14:42:02 -07:00
Dima Arnautov e17cd65196
[Transform] Add support for latest function (#85784)
* [Transform] add latest to the schema definition

* [ML] update interfaces, add guards

* [Transform] WIP support latest function

* [Transform] fix request with missing_bucket after merge

* [Transform] fix error in useDeleteTransforms

* [Transform] fix types and fields sorting for pivot

* [Transform] fix types and jest tests

* [Transform] fix error shape

* [Transform] fixed card width, change description

* [Transform] fixed API integration tests

* [Transform] fix config mapper

* [Transform] improve wizard performance
2020-12-15 22:40:13 +01:00
Constance 2a71d41a60
[App Search] Document Creation Buttons & bare-bones modal/logic (#85902)
* [Setup] Add EuiCardTo helper

* Set up very basic DocumentCreationLogic file modal management

* Create buttons and modal components

* Update EngineOverviewEmpty to use only DocumentCreationButtons

- Remove API section/example/constants for now: per design discussion, we'll be moving this section into the document creation modal
- Move preceding DOCUMENT_CREATION_DESCRIPTION paragraph directly into DocumentCreationButtons, since the Documents view will just use this verbatim

* Update Documents view Index Documents button to show DocumentsCreationModal

- with some extra logic to add a new creationStep view
+ some minor test cleanup / clarification for openDocumentCreation

* Update Crawler button with conditional check

- Forgot to port this over initially

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2020-12-15 13:34:19 -08:00
Patrick Mueller f693697c18
[actions] expand object context variables as JSON (#85903)
resolves https://github.com/elastic/kibana/issues/75601

Previously, if a context variable that is an object is referenced in a
mustache template used as an action parameter, the resulting variable
expansion will be `[Object object]`.  In this PR, we change this so that
the expansion is a JSON representation of the object.

This is primarily for diagnostic purposes, so that customers can see
all the context variables available, and their values, while testing
testing their alerting actions.
2020-12-15 16:31:36 -05:00