Commit graph

40988 commits

Author SHA1 Message Date
Jean-Louis Leysens
83593bd8ee
[ILM ] Fix logic for showing/hiding recommended allocation on Cloud (#90592)
* updated logic for hiding recommended allocation options on cloud and moved tests over from legacy test folder

* added version check and tests for version check to enable pre v8 behaviour

* implement feedback to make tests more legible, fix test names and minor refactors

* added additional callout for data tier state, also added some new copy specific to the migration of a deployment on cloud

* remove unused stackVersion context value

* address windows max path length constraint

* - Fix botched conflict resolution!
- Addressed PR feedback, updated data allocation field for readability; added comments and refactored default allocation notice and warning
- Added one more test case for on cloud; when to show the call to migrate to node roles

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-02-25 16:34:42 +01:00
Marshall Main
f0838e6ee5
[Security Solution][Detections] Pull gap detection logic out in preparation for sharing between rule types (#91966)
* Pull gap detection logic out in preparation for sharing between rule types

* Remove comments and unused import

* Remove unncessary function, cleanup, comment

* Update comment

* Address PR comments

* remove unneeded mocks

* Undo change to parseInterval

* Remove another unneeded mock

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-02-25 09:35:44 -05:00
Luke Elmers
45bea2b9b6
[core.savedObjects] Remove _shard_doc tiebreaker since ES now adds it automatically. (#92295) 2021-02-25 07:14:04 -07:00
Vadim Dalecky
636fcc2000
docs: ✏️ fix links in embeddable plugin readme (#92778) 2021-02-25 13:12:24 +01:00
Frank Hassanabad
bb8e505be2
Fixes Cypress flake by adding pipe, click, and should (#92762)
## Summary

We were seeing flake tests with the error messages:

```ts
expected '<button.euiButton.euiButton--primary>' to have text 'Install 2 Elastic prebuilt rules ', but the text was 'Install 1 Elastic prebuilt rule '
```

Running this locally several times I was able to reproduce the flake. I was able to see that the click handler when clicked on the check boxes is not always taking effect for the first check box. A common issue with Cypress is that a lot of page loads and JS activities on pages can add/remove click handlers quickly such as when we are frosting and un-frosting a loading screen.

When we try and click on the click handlers for a test and the click handlers are not added yet, we miss one or more and end up with a flake test. Instead we can click as fast as possible using `pipe` and then checking that the check box is clicked before continuing using a `should`

Even though the loading screen is done frosting in these tests, the click handler can take one or two milliseconds before they end up being added to the checkboxes.

**Analysis**

When you have the flake and fail you can scroll in Cypress and pin a point in time and see that indeed we did not get the first checkbox checked even though we had a click. Which makes sense as within a few milliseconds the click handlers are added and we do check the second checkbox:
<img width="2083" alt="analysis" src="https://user-images.githubusercontent.com/1151048/109119992-a19d1b80-7702-11eb-882a-c035eba97455.png">

### 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-02-25 04:50:28 -05:00
Matthias Wilhelm
0ae2441cee
[Discover] Fix filtering selected sidebar fields (#91828) 2021-02-25 10:44:29 +01:00
Pete Harverson
54b4d9a928
[ML] Fixes positions of calendar arrow buttons in start datafeed modal (#92625)
* [ML] Fixes positions of calendar arrow buttons in start datafeed modal

* [ML] Move height styling to parent container.

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-02-25 09:23:10 +00:00
spalger
f5e022b731 [dev/build_ts_refs] check that commit in outDirs matches mergeBase (#92513) 2021-02-25 02:07:09 -07:00
spalger
6dc27348ad add dep on @kbn/config so it is built first 2021-02-25 01:53:37 -07:00
Marco Liberati
019473948f
[Expressions] [Lens] Add id and copyMetaFrom arg to mapColumn fn + add configurable onError argument to math fn (#90481)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-02-25 09:43:15 +01:00
Marco Liberati
27f6a3b3e7
[Lens] Fix Workspace hidden when using Safari (#92616)
Co-authored-by: Marta Bondyra <marta.bondyra@elastic.co>
2021-02-25 09:42:50 +01:00
Marco Liberati
69272cb8b1
[Lens] Fixes vertical alignment validation messages (#91878)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Michael Marcialis <michael.marcialis@elastic.co>
2021-02-25 09:42:08 +01:00
Pierre Gayvallet
321b8bf052
forbid x-elastic-product-origin header in elasticsearch configuration (#92359) 2021-02-25 08:20:01 +01:00
Ryland Herrick
f67fef9e50
[Security Solution][Detections] Set default indicator path to reduce friction with new filebeat modules (#92081)
* Distinguish source and destination config for indicator matches

We were previously conflating the path to retrieve indicator fields with
the path to persist indicator fields, since they were the same value.

To reduce friction in use with the new filebeat modules, we've decided
to make the default source path threatintel.indicator. However, we still
want to persist to threat.indicator, so we add a new constant, here.

* Update our integration tests following change of default

These tests were assuming a default path of threat.indicator. Since that
is the ECS standard, we're not going to rewrite the tests but instead
just add this rule override. In the future if the default changes, this
parameter might be unnecessary.

* DRY up unit tests a bit

* Add a note for future devs

If/when that constant changes, I imagine this will be useful context.

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-02-24 20:45:44 -06:00
John Dorlus
f0f7fea488
[ILM][Accessibility] Added A11y test for ILM new policy form. (#92570)
* Added A11y test for ILM new policy form.

* Separated out the takeSnapshot calls to separate tests.
2021-02-24 21:43:03 -05:00
Yara Tercero
9d2a7b8ece
[Security Solution][Exceptions] - Fixes exceptions builder UI where invalid values can cause overwrites of other values (#90634)
### Summary

This PR is a follow-up to #89066 - which fixed the same issue occurring with indicator match lists UI. The lack of stable ids for exception item entries resulted in some funky business by where invalid values could overwrite other values when deleting entries in the builder.
2021-02-24 18:32:44 -08:00
Stacey Gammon
deb555a552
Automatically generated Api documentation (#86232)
* auto generated mdx api doc system

* Fix README.md

* update core api docs after master merge

* clean up signature

* Update packages/kbn-dev-utils/src/plugins/parse_kibana_platform_plugin.ts

Co-authored-by: Spencer <email@spalger.com>

* migrate to docs-util package

* Remove bad links

* fix ref to release-notes and add extra dats service folder

* update name change

* Update packages/kbn-docs-utils/src/api_docs/build_api_declarations/get_type_kind.ts

Co-authored-by: Brandon Kobel <brandon.kobel@gmail.com>

* Update packages/kbn-docs-utils/src/api_docs/utils.ts

Co-authored-by: Brandon Kobel <brandon.kobel@gmail.com>

* review updates 1

* review feedback updates round 1

* Small refactor of extractImportReferences

* Review feedback updates 2

* Review update 3 plus support for links in class interface heritage clause

* debug failing test on ci only

* Escape regex directory path

* Update packages/kbn-docs-utils/src/api_docs/build_api_declarations/utils.ts

Co-authored-by: Spencer <email@spalger.com>

* fix for commit suggestion

Co-authored-by: Spencer <email@spalger.com>
Co-authored-by: spalger <spalger@users.noreply.github.com>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Brandon Kobel <brandon.kobel@gmail.com>
Co-authored-by: kobelb <brandon.kobel@elastic.co>
2021-02-24 19:23:19 -05:00
Aaron Caldwell
91d03f0c45
Increase index pattern select limit to 1000 (#92093)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-02-24 18:01:11 -05:00
Luke Elmers
0280d5a92b
[core.logging] Add RewriteAppender for filtering LogMeta. (#91492) 2021-02-24 17:25:34 -05:00
Davis Plumlee
3471eaa481
[Security Solution][Detection Rules] Update prebuilt rule threats to match schema (#92281) 2021-02-24 17:16:50 -05:00
Frank Hassanabad
ebb0435401
[Security Solutions][Detection Engine] Fixes bug with not being able to duplicate indicator matches (#92565)
## Summary

Fixes an unreleased regression bug where indicator rules could not be be duplicated.
https://github.com/elastic/kibana/issues/90356

- [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-02-24 14:31:55 -07:00
Corey Robertson
510bc698ff
[Dashboard] Export appropriate references from byValue panels (#91567)
* Adds references from byValue panels when saving dashboard

* Remove extra spaces

* Rework a type check

* Fix type check

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-02-24 16:23:44 -05:00
Alison Goryachev
fe6bd2ecbb
[Upgrade Assistant] Align code between branches (#91862) 2021-02-24 16:15:06 -05:00
Christos Nasikas
32ffc80768
[Security Solution][Case] Fix alerts push (#91638)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-02-24 21:48:40 +02:00
Larry Gregory
2950852cf1
Upgrade lodash to 4.17.21 (#92666) 2021-02-24 14:45:55 -05:00
Wylie Conlon
78bed9e56d
[Lens] Fix bug in Safari and Firefox form rendering (#92542)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-02-24 14:04:46 -05:00
Spencer
a1e619531e
[dev/build_ts_refs] enable caching by default (#92513)
Co-authored-by: spalger <spalger@users.noreply.github.com>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-02-24 13:40:04 -05:00
Shahzad
8957ed8eef
[Uptime] waterfall improve legend spacing (#92158) 2021-02-24 19:28:24 +01:00
ymao1
b303c9df70
[Alerting] Fixing Failing test: X-Pack Alerting API Integration Tests.x-pack/test/alerting_api_integration/security_and_spaces/tests/alerting/rbac_legacy·ts - alerting api integration security and spaces enabled Alerts legacy alerts alerts superuser at space1 should schedule actions on legacy alerts (#92549)
* Unskipping test

* Increasing runAt time

* Increasing runAt time

* Logging

* Increasing wait time even more

* Removing logs

* Resetting task status

* Re-enabling all tests

* Re-enabling all tests

* Adding comment
2021-02-24 13:25:27 -05:00
Quynh Nguyen
96e34d96b1
[ML] Add functional tests for Transform start/delete (#92314) 2021-02-24 12:10:04 -06:00
Liza Katz
0d486aec78
[Search] Dev docs (#90979)
* dev docs

* sessions tutorial

* title

* Update dev_docs/tutorials/data/search.mdx

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

* Update dev_docs/tutorials/data/search.mdx

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

* Update dev_docs/tutorials/data/search.mdx

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

* Update dev_docs/tutorials/data/search.mdx

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

* Update dev_docs/tutorials/data/search.mdx

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

* Update dev_docs/tutorials/data/search.mdx

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

* Update dev_docs/tutorials/data/search.mdx

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

* Update dev_docs/tutorials/data/search.mdx

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

* Update dev_docs/tutorials/data/search.mdx

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

* Update dev_docs/tutorials/data/search.mdx

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

* Update dev_docs/tutorials/data/search.mdx

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

* Update dev_docs/tutorials/data/search.mdx

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

* Update dev_docs/tutorials/data/search.mdx

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

* Update dev_docs/tutorials/data/search.mdx

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

* Update dev_docs/tutorials/data/search.mdx

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

* Update dev_docs/tutorials/data/search.mdx

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

* Update dev_docs/tutorials/data/search.mdx

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

* Update dev_docs/tutorials/data/search.mdx

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

* Update dev_docs/tutorials/data/search.mdx

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

* Update dev_docs/tutorials/data/search.mdx

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

* Update dev_docs/tutorials/data/search.mdx

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

* Update dev_docs/tutorials/data/search.mdx

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

* Code review

Co-authored-by: gchaps <33642766+gchaps@users.noreply.github.com>
2021-02-24 19:57:27 +02:00
ymao1
e78d5f6d04
[Alerting][Docs] Documentation for action variables. (#92417)
* Adding action variable docs for index threshold and ES query alerts

* Adding section for common action variables

* Adding link to server publicBaseUrl

* PR fixes
2021-02-24 12:55:22 -05:00
ymao1
bd0eed4f23
Adding link to docs about encryption key cli tool (#92394) 2021-02-24 12:53:29 -05:00
Walter Rafelsberger
e19773b789
[ML] Data Frame Analytics: Adds missing info icon tooltips to scatterplot matrix option labels. (#92626)
Adds missing info icon tooltips to scatterplot matrix option labels.
2021-02-24 12:12:00 -05:00
Jason Stoltzfus
d9d0790966
[App Search] Add relevance tuning boost forms (#91912) 2021-02-24 08:58:01 -08:00
spalger
e1fa0bfa9c skip flaky suite (#88177) 2021-02-24 09:38:45 -07:00
Tre
296b7af209
[QA][Code Coverage] Log less output (#92289)
Log less output to speed things up
2021-02-24 09:20:19 -07:00
Kaarina Tungseth
e980ee4740
[DOCS] Updates reporting and Canvas share options (#92529)
* [DOCS] Updates reporting and Canvas share options

* Update docs/canvas/canvas-share-workpad.asciidoc

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

* Resizes images and minor text edits

* Updates dashboard embed content

Co-authored-by: gchaps <33642766+gchaps@users.noreply.github.com>
2021-02-24 09:54:28 -06:00
Yuliia Naumenko
fb96b9c755
[Docs] Changed REST API intro page with removing experimental definition for all APIs. (#92539)
* [Docs] Changed REST API intro page with removing experimental definition for all APIs

* fixed ci

* fixed ci
2021-02-24 07:53:36 -08:00
Wylie Conlon
614c6c6853
[Lens] Fix unformatted timeseries functions (#92498)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-02-24 10:42:07 -05:00
Brian Seeders
d9417635e8 skip flaky suite (#92567) 2021-02-24 10:32:04 -05:00
Anton Dosov
e3eaa97c6b
Fix navigating from discover single document view back to discover (#92463) 2021-02-24 16:09:14 +01:00
Thomas Watson
05717647ae
Bump the CI Node.js version from 14.15.4 to 14.16.0 (#92578)
This wasn't part of #92421 as Docker Hub wasn't updated at the time.
2021-02-24 09:04:59 -06:00
Shahzad
1be0612b05
[Uptime] Search made easy (#88581)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-02-24 16:02:32 +01:00
Wylie Conlon
3aad1b7527
[Lens] Stop requesting stats on Records field (#92508)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-02-24 09:56:52 -05:00
Casper Hübertz
b1316300c0
[APM] Correlations style polish in prep for release (#92514)
- Removed the icon from the "View correlations" button
- Moved the tabs to the FlyoutHeader
- Removed unneeded spacers in the content
- Reduced the filtering by callout and button
- Made the introduction text color `subdued` to make it less noisy
- Reduced ImpactBar size and extended width so the bar itself is `100`
- Changed the selected term visualization color to `euiColorVis2` because the `euiColorAccent` is not great for visualizations.
- Changed the latency distribution visualization color to `euiColorVis1` to make it consistent with the Transactions visualization colors in the other charts.
2021-02-24 15:49:30 +01:00
Joe Reuter
a3f7b1d55a
[Lens] Fix sorting undefined, null and NaN values (#92575) 2021-02-24 15:47:11 +01:00
Nathan L Smith
06418ae523
Put environment back in uiFilters (#92561)
`environment` is still used in `uiFilters` in UX, but not anywhere else.

It was removed when removing environment from UI filters for the rest of APM and broke UX's environment switcher. Put it back.
2021-02-24 08:27:56 -06:00
Matthias Wilhelm
fdc637df83
[Discover] Fix sorting by _score behavior (#92132) 2021-02-24 14:50:30 +01:00
Marius Dragomir
d0b39b10a7
Add metricbeat steps to jenkins_build_load_testing.sh (#90290)
* Update jenkins_build_load_testing.sh

* Change variables name

* Change to tar.gz package

* change install location

* Rename folder

* Debug and new folder name

* fix debug

* Fix path not changed

* more logging

* add cat logs

* more logging and skipping tests for debug

* Update jenkins_build_load_testing.sh

* Update jenkins_build_load_testing.sh

* Fix kibana_dir var

* Change log file path

* Update jenkins_build_load_testing.sh

* Update jenkins_build_load_testing.sh

* Fix metricbeat start

* Remove extra ls logging

* Changing to MB 7.11.0

* Fix package name

* Fix wrong copy

* Add vault credentials for stats

* Adding system data and removing log

* Update jenkins_build_load_testing.sh

Update script

* Update jenkins_build_load_testing.sh

Remove `ls` commands

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Dmitry <dzmitry.lemechko@elastic.co>
2021-02-24 16:08:26 +03:00