Commit graph

35721 commits

Author SHA1 Message Date
Brian Seeders
329a98c2ac
[CI] In-progress Slack notifications (#74012) 2020-07-31 20:56:39 -04:00
Frank Hassanabad
be47dc4261
[SIEM][Detection Engine] Fixes tags to accept characters such as AND, OR, (, ), ", * (#74003)
## Summary

If you create a rule with tags that have an AND, OR, (, ), etc... then you would blow up with an error when you try to filter based off of that like the screen shot below:
<img width="703" alt="Screen Shot 2020-07-31 at 1 55 31 PM" src="https://user-images.githubusercontent.com/1151048/89075547-b3206f80-d33b-11ea-9e7a-30d4a49ac1de.png">

Now you don't blow up:
<img width="1708" alt="Screen Shot 2020-07-31 at 2 37 11 PM" src="https://user-images.githubusercontent.com/1151048/89075553-b582c980-d33b-11ea-807a-7d6a1d1921e8.png">

This fixes it by adding double quotes around the filters and also red/green/TDD unit tests where I first exercised the error conditions then fixed them.   

### Checklist

- [x] [Unit or functional tests](https://github.com/elastic/kibana/blob/master/CONTRIBUTING.md#cross-browser-compatibility) were updated or added to match the most common scenarios
2020-07-31 18:20:08 -06:00
Paul Tavares
a216418fe7
[SECURITY_SOLUTION][ENDPOINT] Fix host list Configuration Status cell link loosing list page/size state (#73989) 2020-07-31 18:39:59 -04:00
Joe Portner
53b1875093
Tweak injected metadata (#73990)
Removes unnecessary fields from injected metadata for clients.
2020-07-31 17:50:38 -04:00
Oliver Gupte
6eca0b47fa
Closes #73998 by using canAccessML in the ML capabilities API to (#73999)
enable anomaly detection settings in APM.
2020-07-31 14:38:39 -07:00
Frank Hassanabad
75eda6690e
[SIEM] Fixes toaster errors when siemDefault index is an empty or empty spaces (#73991)
## Summary

Fixes fully this issue: https://github.com/elastic/kibana/issues/49753

If you go to advanced settings and configure siemDefaultIndex to be an empty string or have empty spaces:

<img width="1291" alt="Screen Shot 2020-07-31 at 12 52 00 PM" src="https://user-images.githubusercontent.com/1151048/89067511-a9434000-d32c-11ea-9106-e2079a5db317.png">

You shouldn't get any toaster errors when going to any of the pages such as overview, detections, etc...

This fixes that and adds both unit and integration tests around those areas. The fix is to add a filter which will filter all the patterns out that are either empty strings or have the _all within them rather than just looking for a single value to exist.

### Checklist

Delete any items that are not applicable to this PR.

- [x] [Unit or functional tests](https://github.com/elastic/kibana/blob/master/CONTRIBUTING.md#cross-browser-compatibility) were updated or added to match the most common scenarios
2020-07-31 15:36:23 -06:00
Patryk Kopyciński
5aca964d68
[Security Solution] Fix timeline pin event callback (#73981)
* [Security Solution] Fix timeline pin event callback

* - added tests

* - restored the original disabled button behavior

Co-authored-by: Andrew Goldstein <andrew.goldstein@elastic.co>
2020-07-31 23:20:47 +02:00
Angela Chuang
2c71a3fba9
[Security Solution] Fix unexpected redirect (#73969)
* fix unexpected redirect

* fix types

Co-authored-by: Patryk Kopycinski <contact@patrykkopycinski.com>
2020-07-31 23:17:24 +02:00
Chris Cowan
2e37239e50
[Metrics UI] Fix Metrics Explorer TSVB link to use workaround pattern (#73986)
* [Metrics UI] Fix Metrics Explorer TSVB link to use workaround pattern

* Adding link to TSVB bug to comment
2020-07-31 13:20:11 -07:00
Brandon Morelli
17e8d18a40
[APM] docs: Update machine learning integration (#73597) 2020-07-31 12:03:09 -07:00
Nicolas Chaulet
357139d67c
[Ingest Manager] Fix limited concurrency helper (#73976) 2020-07-31 14:55:29 -04:00
Jonathan Budzenski
d9efd265c9
[build/sysv] fix missing env variable rename (#73977) 2020-07-31 13:22:40 -05:00
Justin Kambic
1f2c015319
Fix a typo. (#73948) 2020-07-31 14:05:43 -04:00
Nicolas Chaulet
002e4598a5
[Ingest Manager] Revert fleet config concurrency rollout to rate limit (#73940) 2020-07-31 14:04:31 -04:00
Marta Bondyra
1c0b77c494
fix: pinned filters not applied (#73825) 2020-07-31 18:59:51 +02:00
Quynh Nguyen
69844e45eb
[ML] Add API integration testing for AD annotations (#73068)
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-07-31 11:22:14 -05:00
Brent Kimmel
b0d51c8e0a
Resolver/test panel presence (#73889)
* Test for panel presence
2020-07-31 12:01:11 -04:00
Clint Andrew Hall
708a30abb3
[Canvas][tech-debt] Update Redux components to reflect new structure (#73844)
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-07-31 11:39:12 -04:00
Josh Dover
10cc600d5c
Fix aborted$ event and add completed$ event to KibanaRequest (#73898) 2020-07-31 09:19:43 -06:00
Devon Thomson
1ccf55161e
moved config option for allowing or disallowing by value embeddables to dashboard plugin (#73870) 2020-07-31 11:14:00 -04:00
István Zoltán Szabó
a1872b1a70
[ML] Removes link from helper text on ML overview page (#73819) 2020-07-31 17:11:01 +02:00
Justin Kambic
61194b65aa
[Uptime] Unskip certs func tests (#73086)
* Temporarily unload all other functional tests.

* Unskip certificates test.

* Uncomment skipped test files.

* Add explicit fields to check generator call to prevent grouping issues that can lead to test flakiness.

* added wait for loading

* update missing func

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
Co-authored-by: Shahzad <shahzad31comp@gmail.com>
2020-07-31 11:04:41 -04:00
Frank Hassanabad
147d4c7ad0
[SIEM] Fixes a bug where invalid regular expressions within the index patterns can cause UI toaster errors (#73754)
## Summary

https://github.com/elastic/kibana/issues/49753

When you have no data you get a toaster error when we don't want a toaster error.

Before with the toaster error:
![error](https://user-images.githubusercontent.com/1151048/88860918-0e2a5900-d1ba-11ea-95e7-5ed7324fc831.png)

After:
You don't get an error toaster because I catch any regular expression errors and do not report them up to the UI.

### Checklist

- [x] [Unit or functional tests](https://github.com/elastic/kibana/blob/master/CONTRIBUTING.md#cross-browser-compatibility) were updated or added to match the most common scenarios
2020-07-31 08:52:27 -06:00
Melissa Alvarez
9c5bbe4e5f
[ML] DF Analytics creation wizard: ensure user can switch back to form from JSON editor (#73752)
* wip: add reducer action to switch to form

* rename getFormStateFromJobConfig

* wip: types fix

* show destIndex input when switching back from editor

* ensure validation up to date when switching to form

* cannot switch back to form if advanced config

* update types

* localization fix
2020-07-31 10:44:45 -04:00
Poff Poffenberger
ff3877d61d
Hide Canvas toolbar close button when tray is closed (#73845)
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-07-31 09:43:56 -05:00
Justin Kambic
df3e209262
[Uptime] Unskip alerting functional tests (#72963)
* Unskip monitor status alert test.

* Trying to resolve flakiness.

* Remove commented code.

* Simplify test expect.

* Revert conditional block change.

* Remove line in question.

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-07-31 10:39:01 -04:00
Joe Reuter
747e9e4736
Stabilize graph test (#73918) 2020-07-31 16:35:47 +02:00
Garrett Spong
d51e277c3e
[Security Solution][Detections] Fixes risk score mapping bug and updates copy on empty rules message (#73901)
## Summary

Fixes issue where Rules with a `Risk Score Mapping` could not be created.

Fixes copy for the Rules Table empty view that says all rules are disabled by default (no longer true for the `Elastic Endpoint Security Rule`)
<p align="center">
  <img width="500" src="https://user-images.githubusercontent.com/2946766/88980405-e2be7180-d280-11ea-976d-6072c415c688.png" />
</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)
2020-07-31 08:34:27 -06:00
Joe Reuter
4454b30db2
reset validation counter (#73459) 2020-07-31 16:33:40 +02:00
Chris Roberson
9a1a6d35bc
Use defaultsDeep to match what monitoring is doing (#73325)
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-07-31 10:04:58 -04:00
Chris Roberson
3793ae5381
Check for security first (#73821)
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-07-31 09:57:07 -04:00
Dario Gieselaar
c66ea65ec1
[APM] Use apmEventClient for querying APM event indices (#73449)
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-07-31 15:22:04 +02:00
Corey Robertson
dbb603f979
[Canvas][tech-debt] Ensure cursor is called until full results are received (#73347)
* Ensure cursor is called until full results are receeived

* Fix Typecheck

* Convert dependencies to typescript

* Fix typings

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-07-31 09:21:47 -04:00
Matthias Wilhelm
10f8beae8e
[Discover] Context unskip date nanos functional tests (#73781)
* Use _source value of timestamp for search_after since ES allows this now

* Unskip functional tests

* Remove unused convertIsoToNanosAsStr
2020-07-31 11:52:00 +02:00
Walter Rafelsberger
145f2eef57
[ML] Migrate to React BrowserRouter and Kibana provided History. (#71941)
- Migrate to React BrowserRouter and Kibana provided History including a fallback to redirect legacy hash based URLs.
- Migrate breadcrumbs away from hash based URLs.
- Make sure relative custom urls still work after migration.
2020-07-31 10:25:01 +02:00
Matthias Wilhelm
39cca0e55d
[Discover] Improve saveSearch functional test handling (#73626)
* Check for submit button to be disabled, before submitting the form to prevent occasional flakiness
2020-07-31 06:52:36 +02:00
Zacqary Adam Xeper
5fa162c699
[Metrics UI] Fix all threshold alert conditions disappearing due to alert prefill (#73708)
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-07-30 22:39:34 -05:00
Zacqary Adam Xeper
d3f498af9a
[Metrics UI] Fix alert previews of ungrouped alerts (#73735)
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-07-30 22:37:54 -05:00
Frank Hassanabad
0a5427842b
[SIEM] Fixes "include building block button" to operate (#73900)
## Summary

Blocker fixes "include building block button" to operate when there is no data on the table.

Before if you had nothing on the table then the button would not operate as it would not cause a re-render:
![button_not_working](https://user-images.githubusercontent.com/1151048/88980376-cde1de00-d280-11ea-98cf-b67ef9fe9f72.gif)

After where the button now works:
![button_working](https://user-images.githubusercontent.com/1151048/88980385-d3d7bf00-d280-11ea-89e4-f806e62853ed.gif)

This wasn't caught because most people have something already on the table which makes the rendering render and just work. Simple one line low level fix.

### Checklist

Delete any items that are not applicable to this PR.

- [ ] [Unit or functional tests](https://github.com/elastic/kibana/blob/master/CONTRIBUTING.md#cross-browser-compatibility) were updated or added to match the most common scenarios
No tests for this file at the moment and we need this as a fast backport to make the release cut off.
2020-07-30 21:08:57 -06:00
Chris Cowan
aa668db796
[Metrics UI] Fix alert management to open without refresh (#73739)
* [Metrics UI] Fix alert management to open without refresh

* removing unecessary code

* Deleting unused imports

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-07-30 19:01:46 -07:00
Yara Tercero
84884a9398
[Security Solution][Lists] - Tests cleanup and remove unnecessary import (#73865)
## Summary

Addresses feedback from https://github.com/elastic/kibana/pull/72748

- Updates `plugins/lists` tests text from `should not validate` to `should FAIL validation` after feedback that previous text is a bit confusing and can be interpreted to mean that validation is not conducted
- Remove unnecessary spreads from one of my late night PRs
- Removes `siem_common_deps` in favor of `shared_imports` in `plugins/lists`
- Updates `build_exceptions_query.test.ts` to use existing mocks
2020-07-30 19:16:51 -04:00
John Schulz
9c9080c11e
[Ingest Management] main branch uses epr-snapshot. Others production (#73555)
* Same behavior as now. Just refactored.

* main branch uses epr-snapshot. Others use prod

* Link some types vs repeating them

* replace DEFAULT_REGISTRY_URL with getRegistryUrl in Endpoint tests

* Make an Endpoint test helper name more clear

* try/catch around getKibanaBranch

* Use branch & version from package.json as fallback

* No guards b/c kibana{Branch,Version} have defaults

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-07-30 19:15:26 -04:00
Clint Andrew Hall
18795b2bf3
[Canvas][tech-debt] Fix SVG not shrinking vertically properly (#73867)
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-07-30 19:10:26 -04:00
Nathan Reese
7e2e78b54e
[Maps] upgrade turf (#73816)
* [Maps] upgrade turf

* clean up ts-ignore comments

* fix license check and review feedback

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-07-30 15:51:01 -06:00
Michael Olorunnisola
14355ab14b
[Security Solution][Telemetry] Concurrent telemetry requests (#73558) 2020-07-30 17:44:03 -04:00
Yara Tercero
744afcef7d
[Security Solution][Exceptions] - Update how nested entries are displayed in exceptions viewer (#73745)
### Summary

Small PR updating how nested entries are displayed in exception viewer. Doesn't change anything functionally, just cosmetic.
2020-07-30 17:22:10 -04:00
Yara Tercero
877f2e0829
[Security Solution][Exceptions] Adds autocomplete workaround for .text fields (#73761)
## Summary

This PR provides a workaround for the autocomplete service not providing suggestions when the selected field is `someField.text`. As endpoint exceptions will be largely using `.text` for now, wanted to still provide the autocomplete service.

Updates to the autocomplete components were done after seeing some React errors that were popping up related to memory leaks. This is due to the use of `debounce` I believe. The calls were still executed even after the builder component was unmounted. This resulted in the subsequent calls from the autocomplete service not always going through (sometimes being canceled) when reopening the builder.

Moved the filtering of endpoint fields to occur in the existing helper function so that we would still have access to the corresponding `keyword` field of `text` fields when formatting the entries for the builder.
2020-07-30 17:05:43 -04:00
Zacqary Adam Xeper
c2d8869cca
[Metrics UI] Fix previewing of No Data results (#73753) 2020-07-30 15:52:32 -05:00
Oliver Gupte
5e86d2f848
Closes #72914 by hiding anomaly detection settings links when the ml plugin is disabled. (#73638)
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-07-30 13:44:37 -07:00
Nicolas Chaulet
a6888e3694
[Ingest Manager] Fix config selection in enrollment flyout from config list page (#73833) 2020-07-30 16:21:29 -04:00