Commit graph

40952 commits

Author SHA1 Message Date
Spencer
1f58bc2ebb
[ts] disable forceConsistentCasingInFileNames, it seems broken (#92849)
Co-authored-by: spalger <spalger@users.noreply.github.com>
2021-02-25 13:59:02 -05:00
Yuliia Naumenko
83b22dc568
[Actions][Doc] Added user doc for default value for PagerDuty deduplication key. (#92746)
* [Actions][Doc] Added user doc for default value for PagerDuty deduplication key.

* Apply suggestions from code review

Co-authored-by: Gidi Meir Morris <github@gidi.io>
Co-authored-by: gchaps <33642766+gchaps@users.noreply.github.com>

Co-authored-by: Gidi Meir Morris <github@gidi.io>
Co-authored-by: gchaps <33642766+gchaps@users.noreply.github.com>
2021-02-25 10:56:32 -08:00
Kerry Gallagher
c561a18b1e
[Logs UI] Hide Create Alert option when user lacks privileges (#92000)
* Hide Create Alerts option when lacking permissions
2021-02-25 18:44:47 +00:00
joxley-elastic
06d966eca5
[Console] Autocompletion of component_templates (#91180) 2021-02-25 13:30:59 -05:00
James Gowdy
3b66bf7cc5
[ML] Adding ml_capabilities api tests (#92786)
* [ML] Adding ml_capabilities api tests

* updating test text

* changes based on review
2021-02-25 18:24:39 +00:00
Nathan Reese
37d7ea2713
[Maps] fix index pattern references not extracted for tracks source (#92226)
* [Maps] fix index pattern references not extracted for tracks source

* merge with master

* tslint

* tslint

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-02-25 11:11:15 -07:00
Jean-Louis Leysens
2d011e2b95
[Rollup] Fix use of undefined value in JS import (#92791)
* Remove use of undefined import

* added component integration test for default value in frequency
2021-02-25 18:09:14 +01:00
Jean-Louis Leysens
bc347d8633
[ILM] Fix replicas not showing (#92782)
* remove logic that disables SS action in cold if no rollover and always show replicas field

* update test coverage to be consistent with new form behaviour and expand hot phase without rollover test

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-02-25 18:05:19 +01:00
Yuliia Naumenko
bd38d4aab2
[Event Log] Extended README.md with the documentation for a REST API and Start plugin contract. (#92562)
* [Event Log] Extended README.md with the documentation for a REST API and Start plugin contract.

* Apply suggestions from code review

Co-authored-by: Mike Côté <mikecote@users.noreply.github.com>
Co-authored-by: gchaps <33642766+gchaps@users.noreply.github.com>

* fixed due to comments

Co-authored-by: Mike Côté <mikecote@users.noreply.github.com>
Co-authored-by: gchaps <33642766+gchaps@users.noreply.github.com>
2021-02-25 08:59:30 -08:00
Stratoula Kalafateli
0b15a06f8a
[XY] Enables page reload toast for the legacyChartsLibrary setting (#92811) 2021-02-25 18:43:02 +02:00
Christos Nasikas
a3760ce988
[Security Solution][Case] Improve hooks (#89580) 2021-02-25 18:30:02 +02:00
Angela Chuang
6c96fbbddc
[Security Solution] Update wordings and breadcrumb for timelines page (#90809)
* update wordings

* unit tests

* remove tabName from breadcrumbs

* update wordings

* change default status of timelines to null

* fix loading message

* update select timeline wording

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-02-25 16:21:49 +00:00
Ece Özalp
6b91f480f5
[Security Solution] Replace EUI theme with mocks in jest suites (#92462)
Previously there were a large number of jest specs that utilized
the ThemeProvider (from styled-components package) to inject EUI
themes into the mounted components. The full EUI theme is almost
never necessary for unit tests as each tested component usually
consumes no more than a single field or two from the EUI theme.
In certain cases, the theme was not used at all. This change is
intended to remove all unnecessary ThemeProviders from the suites,
and replaces the imported EUI theme json files with mock themes
customized for each tested component. With this change, snapshots
are now significantly smaller, and tests are lighter.

Closes #64092.
2021-02-25 11:00:42 -05:00
Vadim Dalecky
805e729bdb
docs: ✏️ use correct heading level (#92806)
* docs: ✏️ use correct heading level

* docs: ✏️ correct heading in data plugin
2021-02-25 16:44:13 +01:00
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