Commit graph

32203 commits

Author SHA1 Message Date
Tiago Costa
4c2d4b35a5
skip flaky suite (#67833)
(cherry picked from commit 5a6c77226c)
2020-06-01 18:40:01 +01:00
Larry Gregory
722713c4e9
[7.x] Fix support for xpack.spaces.maxSpaces (#67846) (#67855) 2020-06-01 11:21:49 -04:00
Alison Goryachev
c6bd0e8e12
[7.x] [ILM] Fix fetch policies query (#67827) (#67851) 2020-06-01 10:40:12 -04:00
Alison Goryachev
bd971e6b12
[7.x] [Component templates] Server side (#66596) (#67854) 2020-06-01 10:39:29 -04:00
nnamdifrankie
e3ca0a035a
[Endpoint]EMT: temporarily skip test till package update. (#67778) (#67834)
[Endpoint]EMT: temporarily skip test till package update.
2020-06-01 10:17:16 -04:00
Joe Reuter
db5a7ea551
Fix visualize and lens telemetry (#67749) (#67828) 2020-05-31 21:47:03 +02:00
Frank Hassanabad
2e704e6c72
[SIEM][Lists] Adds test mocks and README.md to the lists plugin (#67831)
## Summary

* https://github.com/elastic/kibana/issues/67675
* Adds README.md to the lists plugin
* Adds the mocks to the server side of the lists plugin
* Changes out the SIEM code to use the mocks now that they are within the plugin

### 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] [Documentation](https://github.com/elastic/kibana/blob/master/CONTRIBUTING.md#writing-documentation) was added for features that require explanation or tutorials
- [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-05-30 21:25:28 -06:00
Yuliia Naumenko
11050e86ec
Changed AlertsClient to use ActionsClient instead of direct interaction with the action saved objects (#67562) (#67781) 2020-05-29 20:13:51 -07:00
Lisa Cawley
aea6f4a6e3
[DOCS] Link machine learning settings to advanced settings (#67572) (#67810) 2020-05-29 19:33:55 -07:00
Tiago Costa
0b4b454ea3
chore(NA): use env var to point config folder on os_packages built with fpm (#67433) (#67812)
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-05-30 03:17:05 +01:00
Lisa Cawley
423dc8949b
[DOCS] Identifies cloud settings for ML (#67573) (#67800) 2020-05-29 15:19:38 -07:00
Brian Seeders
c177c564c0
[CI] Bump chromedriver and use DETECT_CHROMEDRIVER_VERSION (#67642) (#67792) 2020-05-29 17:04:55 -04:00
spalger
44ca13889e skip flaky suite (#66976)
(cherry picked from commit a63adabd38)
2020-05-29 12:16:42 -07:00
Spencer
2dbed74fcf
[7.x] [kbn/optimizer] use execa to fork workers (#67730) (#67785)
Co-authored-by: spalger <spalger@users.noreply.github.com>
2020-05-29 12:15:20 -07:00
Michail Yasonik
4415b35177
[7.x] Refactoring nav links and header components (#66685) (#67771)
Co-authored-by: spalger <spalger@users.noreply.github.com>
2020-05-29 11:27:50 -05:00
Christos Nasikas
27bc5ada2c
[7.x] [SIEM][CASE] Fix callout messages appearance (#67303) (#67766)
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-05-29 19:03:31 +03:00
Paul Tavares
4a9de1d72b
[SIEMDPOINT][WIP] Add Management section and move Policy related views (#67417) (#67767)
* Add Management top-level nav tab item
* Move of Policy related views to `management`
* Enhance PageView component to support sub-tabs
2020-05-29 11:53:25 -04:00
Devin W. Hurley
5be56f3b45
[7.x] [SIEM] [Detection Engine] Incorporate large lists to rule execution. (#65372) (#67753)
* introduce lists plugin for use by executor

* adds getListClient function on setup

* refactors searchAfterBulkCreate to integrate with the lists plugin so we only generate signals from events not in the list

* fixes type check issues

* fixes unit tests, adds field and other parameters for using lists in executor.

* cleaning up types and exports, updates to match new contracts with lists client from master

* prior to this commit the refactored while loop was doing more search after loops than it needed to and this fixes two bugs in the list filter function where we were returning the wrong count, and we were not accessing the right field on the event

* exception lists are optional

* use exceptions list format, this works with given sample query in scripts

* updates tests and fixes type issues

* updates README doc in detection engine with example for rule with list exception

* adds one test and removes commented out code

* fix sample rule json from 30s to 5m

* fix sample rule json from 30s to 5m

* remove unused import

* more cleanup

* e2e test for prepackaged rules was failing because lists was undefined in the siem plugin and was preventing the registration of the rule alert type. I removed this but once lists is ready for prime time we should consider adding the null check back

* can't reuse the same env var since the tests are setting the ELASTIC_XPACK_SIEM_LISTS_FEATURE env var to true without enabling the lists plugin

* fixes from pr review, still needs more TLC

* exports listspluginsetup type from top-level in lists plugin, fixes logic for empty exceptions list, updates types

* utilize type.is to remove as casting, also do null checks and throw an error when exceptionItem is malformed. This will change in the very near future once the new json format for exception lists is incorporated

* fix type issues after merging master into branch

* update mock

* remove bad null check for ml plugin before registering rule alert type in siem plugin

* prettier linting

* adds test for filter events with list

* pr comments

* adds logic for included vs excluded and updates tests

* update test cases for search after bulk create to default to included for exception lists

* filter out non-list exception items from the loop
2020-05-29 11:47:55 -04:00
Poff Poffenberger
a954db601a
Fix canvas fullscreen when nav is docked (#67625) (#67685) 2020-05-29 09:44:01 -05:00
Xavier Mouligneau
e87b0bad38
[SECURITY] bug 667 (#67674) (#67721)
* bug 667

* update snapshot
2020-05-29 08:58:13 -04:00
Marta Bondyra
2345bedd4c
perf: drag and drop performance improvement for field list (#67455) (#67739) 2020-05-29 13:36:50 +02:00
Marta Bondyra
e93c749ed2
[Lens] Fix empty values filtering (#67594) (#67740) 2020-05-29 13:36:15 +02:00
Stratoula Kalafateli
3f70805c0d
Fix bug on vis metric regarding applying the light theme when thebg is dark (#67481) (#67738) 2020-05-29 12:00:03 +03:00
Matthias Wilhelm
a4dd3f27ef
[Discover] Improve a11y test when switching to context (#67363) (#67733) 2020-05-29 09:22:20 +02:00
Nathan Reese
04745ae008
[Maps] allow adding multiple layers (#67544) (#67706)
* [Maps] allow adding multiple layers

* update RenderWizardArguments arguments

* fix toc_entry jest test

* fix tslint error

* cleanup

* remove __transientLayerId from store signature

* rename setSelectedLayerToFirstPreviewLayer

* revert changes to es_search_source/create_source_editor.js

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-05-28 20:38:20 -06:00
Nathan Reese
a642955f62
[Maps] Fix fit to bounds requests not getting canceled (#67629) (#67724)
* rename data request constants

* register cancel callback

* clean up
2020-05-28 20:38:06 -06:00
Frank Hassanabad
2ed924822d
[7.x] [SIEM][Lists] Adds circular dependency checker for lists plugin (#67648) (#67717)
* [SIEM][Lists] Adds circular dependency checker for lists plugin

## Summary

* Added dependency checker for the public and common folders for lists

# Conflicts:
#	test/scripts/jenkins_xpack.sh

* Updated from conflict issue
2020-05-28 20:02:46 -06:00
Nathan L Smith
2c03fc6ed0
[APM] Ensure loading indicator stops in Safari (#67695) (#67715)
The combination of using object destructuring and numeric object keys in the reducer for LoadingIndicatorContext caused it so the loading indicator would not disappear in 7.8 in Safari even though there were no more loading statuses.

Optimization changes between 7.8 and master may be why this is only appears on 7.8.

Update this reducer to stringify the key and `lodash.pick` only the true values so the only pairs in the object are ones with `true` as the value.

Fixes #67334.
2020-05-28 20:36:02 -05:00
Mikhail Shustov
250a9fa3ba
Populate RequestHandlerContext with start API only (#67579) (#67673)
* use start API to populate request context

* remove client creation from uiSettings service setup API

* remove __internals.uiSettings

* update ui_settings mixin tests

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-05-29 01:11:54 +02:00
Brian Seeders
be7604bd96 [CI] Add new intake worker size with 2x memory, and move workspace to memory (#67676)
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-05-28 17:28:37 -05:00
Kaarina Tungseth
652496003b
[DOCS] Updates to Lens docs (#67694) (#67709)
* [DOCS] Updates to Lens docs

* Fixed image

* Update docs/visualize/lens.asciidoc

Co-authored-by: Wylie Conlon <wylieconlon@gmail.com>

* Update docs/visualize/lens.asciidoc

Co-authored-by: Wylie Conlon <wylieconlon@gmail.com>

* Update docs/visualize/lens.asciidoc

Co-authored-by: Wylie Conlon <wylieconlon@gmail.com>

* Update docs/visualize/lens.asciidoc

Co-authored-by: Wylie Conlon <wylieconlon@gmail.com>

* Update docs/visualize/lens.asciidoc

Co-authored-by: Wylie Conlon <wylieconlon@gmail.com>

* Update docs/visualize/lens.asciidoc

Co-authored-by: Wylie Conlon <wylieconlon@gmail.com>

* Comment from Wylie

Co-authored-by: Wylie Conlon <wylieconlon@gmail.com>

Co-authored-by: Wylie Conlon <wylieconlon@gmail.com>
2020-05-28 16:48:25 -05:00
Larry Gregory
d2eebb9f7a
Migrate audit logging to KP (#67381) (#67677)
Co-authored-by: Aleh Zasypkin <aleh.zasypkin@gmail.com>
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>

Co-authored-by: Aleh Zasypkin <aleh.zasypkin@gmail.com>
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-05-28 17:25:44 -04:00
Kaarina Tungseth
9de5b29be7
[DOCS] Bumps up the Share dashboard page (#67696) (#67699) 2020-05-28 16:09:14 -05:00
Frank Hassanabad
bbda0b32d5
[SIEM][Lists] Adds _find to value lists (#67671)
## Summary

Adds the REST and API routes for find and filter for exception lists and value lists 

* Fixes bugs with string parameters for the _find with exception lists
* Adds the _find for the value based lists
* More scripts for how to filter things for both list values and exception lists
* Misc type script fixes
* Adds a cursor to move from the previous page to the next page 
* Adds name space 'agnostic' vs. 'single' feature for exception_lists

**REST API's:**

```ts
POST /api/lists/_find
POST /api/lists/items/_find
POST /api/exception_lists/_find
POST /api/exception_lists/items/_find
```

**Parameters you can send:**

* sort
* sort_order
* filter
* page
* per_page 
* list_id (for list items only and required)
* cursor (for finding the next page or advancing to deep pages)

**See test scripts below:**
```sh
find_exception_list_items_by_filter.sh
find_exception_lists_by_filter.sh
find_list_items.sh
find_list_items_with_cursor.sh
find_list_items_with_sort.sh
find_list_items_with_sort_cursor.sh
find_lists.sh
find_lists_with_cursor.sh
find_lists_with_filter.sh
find_lists_with_sort.sh
find_lists_with_sort_cursor.sh
```

### Checklist

Note: Unit tests are left out as this is blocking people but I will be adding tests as this is being reviewed unless someone needs these features now. This is still all behind a feature flag and considered to be in the area of proof of concept and not production ready until more tests and end to tests are added.  

- [ ] [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-05-28 15:02:39 -06:00
Kerry Gallagher
e370e94b39
[Logs UI] [Alerting] Fix time state bug (#67630) (#67669)
* Read from alertParams state only for timeSize and timeUnit

* Typecheck
2020-05-28 21:27:40 +01:00
Matthew Kime
ed7dfc9134
Index pattern field - add unit tests (#67549) (#67636)
* add unit tests to index pattern fields

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-05-28 15:20:26 -05:00
Mike Côté
7c099a1b64
Update wording (#67486) (#67639) 2020-05-28 16:06:25 -04:00
James Gowdy
5fd38d46c9
[ML] Renaming mlSearch to mlAnomalySearch (#67602) (#67647) 2020-05-28 20:20:06 +01:00
James Gowdy
672e273b5c
[ML] Using mlClient callAsInternalUser in job validation (#67609) (#67646) 2020-05-28 20:19:21 +01:00
gchaps
ad2b0f7157
[7.x] Updates Management doc to reflect new navigation (#67506) (#67643)
* Updates Management doc to reflect new navigation (#67506)
* [DOCS] Updates Management page to reflect new navigation

* [DOCS] Adds link to security doc

* [DOCS] Incorporates review comments

* Update docs/user/management.asciidoc

* Update docs/user/security/authorization/index.asciidoc
2020-05-28 10:49:35 -07:00
gchaps
1b0e2c672b
[DOCS]Update rollup tutorial to add steps for index pattern (#67377) (#67649)
* [DOCS]Update rollup tutorial to add steps for index pattern

* Make edits suggested by reviewers

Co-authored-by: Melori Arellano <melori@elastic.co>
2020-05-28 10:43:33 -07:00
Tiago Costa
d3901716fb
chore(NA): add support for accessibility test group on jenkins flaky test runner (#67652) (#67655) 2020-05-28 18:35:45 +01:00
Luke Elmers
5007463b0c
Add unit tests for filters agg. (#67229) (#67626) 2020-05-28 11:00:24 -06:00
Nathan Reese
3ecc81a7c8
[Maps] convert HeatmapLayer dependencies to TS (#66823) (#67631)
* [Maps] convert HeatmapLayer and dependencies to TS

* heatmap_style_editor snapshots

* eslint

* fix merge problems

* eslint cleanup

* revert rename of getOrdinalMbColorRampStops

* eslint

* tslint

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-05-28 10:42:32 -06:00
Christos Nasikas
9a15183650
[7.x] [SIEM][CASE] Improve api integration test (#67249) (#67578) 2020-05-28 18:51:53 +03:00
Robert Oskamp
c821094c68
[ML] Functional tests - add validation messages (#67583) (#67613)
This PR adds validation messages to all ML and Transform services in order to make it easier to debug test failures.
2020-05-28 17:41:19 +02:00
Alejandro Fernández
ab1a737a05
[7.x] [Logs UI] Avoid a crash when a highlight term doesn't exist (#67332) (#67484) 2020-05-28 16:37:03 +02:00
Alejandro Fernández
000902d9c6
[7.x] [Logs UI] Fix minimap tooltip (#67294) (#67483) 2020-05-28 16:36:31 +02:00
James Gowdy
1b62b02b63
[ML] Update job service id schema (#67462) (#67599) 2020-05-28 13:50:47 +01:00
Mikhail Shustov
42ae0b9031
[7.x] Mark elasticsearch client exposed via request context as deprecated (#67319) (#67576)
* Mark elasticsearch client exposed via request context as deprecated (#67319)

* add legacy prefix for es client exposed via request handler context

* update src/plugins

* update core mocks and tests

* update test plugins

* update xpack plugins

* include x-pack/mocks.ts

* update after master merge

* update docs

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
# Conflicts:
#	x-pack/plugins/index_management/server/routes/api/templates/register_create_route.ts
#	x-pack/plugins/upgrade_assistant/server/routes/cluster_checkup.ts

* fix upgrade assistant tests
2020-05-28 14:02:01 +02:00