Commit graph

14609 commits

Author SHA1 Message Date
Scotty Bollinger a0e88ece91
[Enterprise Search] Fix bug where special chars breaks UI (#94000)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-03-08 18:27:17 -05:00
Davis Plumlee 4db502d85c
[Security Solution][Detection Rules] Rules table page size increase (#93993) 2021-03-08 16:53:36 -05:00
Xavier Mouligneau 5d96e5f334
[SECURITY SOLUTION] BUG Manual Alert in case (#93726)
* get the data where it belongs

* Fix layout when alert is deleted

Co-authored-by: Christos Nasikas <christos.nasikas@elastic.co>
2021-03-08 16:28:42 -05:00
spalger 5e634e9931 remove unused xpack.ml.alertContext.kibanaBasePathUrlDescription i18n key 2021-03-08 14:20:16 -07:00
Nathan Reese 7507d6417e
Convert file_upload components to typescript (#93814)
* Convert file_upload components to typescript

* i18n cleanup

* api doc updates

* fix i18n files

* tslint after merge

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-03-08 14:15:38 -07:00
Ryland Herrick 52787e9379
[Security Solution][Detections]Alerts migrations can be finalized/cleaned up in all spaces (#93809)
* Retrieve SOs by ID in a space-aware manner by using bulkGet

We were previously using a manual invocation of find(), which was a)
tied to the current implementation of how SOs generate their _ids, and
b) didn't respect spaces.

By replacing this with a call to bulkGet, which automatically respects
the space of the current request, and which abstracts away the building
of the actual _id based on the SO ID and type, we address the issues
above.

* Surface SO errors to the finalize/delete APIs

Now that we're using bulkGet, we receive an object with errors if the
object is not found, which by default breaks our subsequent validation.
In order to provider better UX, we re-raise the first of these errors
that we find, if present, and return that to the user.

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-03-08 15:10:16 -06:00
Wylie Conlon c33987d929
Support for number, date and IP range data types (#76971)
* Support for number, date and IP ranges

* Update tests

* Ranges don't work with range agg

* Fix test case

* Allow Discover to create range filters

* Supports ranges in Visualize, KQL, remove Lens support

* Fix test mappings

* Bring back field cache to work around bug

* Fix some tests

* Fix test expectation

* Respond to review comments

* Fix type error

* Remove added sample data

* Fix api_docs

* Fix test
2021-03-08 15:50:36 -05:00
Dima Arnautov 6b26d19c4c
[ML] Fix time range query in the Anomaly detection alert execution (#93939) 2021-03-08 15:00:23 -05:00
Michael Olorunnisola 6174938758
[Security_Solution][Timeline][Flyout] - Make event details hostName and IpOverview navigate (#93825) 2021-03-08 14:40:11 -05:00
ymao1 8a1d7f5b99
[Alerting][Docs] Moving limitations from README to user docs (#93933)
* Moving limitations to user docs

* Moving limitations to user docs

* Removing outdated limitations
2021-03-08 12:53:40 -05:00
Nathan Reese 4dd0a7e0f7
[Maps] chunk geojson upload to keep import requests under 1MB (#93678)
* [Maps] chunk geojson upload to keep import requests under 1MB

* fix geojson_importer tests

* update failure.item to reflect location in file

* remove console statement

* clean up

* return instead of break if upload is no longer active

* add unit test for createChunks

* update file_upload API

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-03-08 10:25:59 -07:00
Jen Huang b8df640c95
[Fleet] Surface package version used in a package policy in UI (#93712)
* Surface package version used in a package policy in UI

* Fix i18n
2021-03-08 12:07:27 -05:00
Ester Martí Vilaseca 978226f39a
[Metrics UI] Add preview charts to Inventory alerts (#91658)
* add first version of preview chart for inventory alerts

* Make preview chart collapsible

* Add margin to expressions without charts

* Remove some duplication in metric alerts preview charts

* Add warning thresholds to inventory alerts preview chart

* Add threshold annotations component

* Clean imports and unused variables

* Add tests for threschold annotations component

* Remove unused translations

* Set correct id to inventory alerts preview chart

* Get accountId and region with useWaffleOptions for preview chart

* Save inventory alert thresholds in the same unit as ES

* minor fixes

* Revert "Save inventory alert thresholds in the same unit as ES"

This reverts commit 118d83efeb.

* Remove threshold formatter function and convert values inside expression chart component

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-03-08 17:54:10 +01:00
Nathan L Smith 749a22989b
Enable APM storybook publishing (#93353)
Changes to fix APM's Storybook setup were made in #93087 and #93294. This re-enables it and fixes a couple places where we weren't using a theme provider.
2021-03-08 10:39:25 -06:00
Marco Liberati adfbe976d6
[Lens] Carry previous configured formatter in Last value (#93784)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-03-08 17:38:14 +01:00
Mike Côté edb1c4b48e
Make alerts list sortable by name and status (#93426)
* Initial commit

* Update docs

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-03-08 11:15:53 -05:00
Alejandro Fernández Gómez 2aa0267957
[Fleet] Migrate ES client (#92805)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-03-08 10:46:31 -05:00
Alejandro Fernández Gómez baf0b3577b
[Logs UI] Pass dashboard filters to log stream embeddable (#91850)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-03-08 10:03:14 -05:00
Angela Chuang 98c1f94477
[Security Solution] Update the script of data provider's Cypress test (#93780)
* rollback timeout for dnd and rewrite script for the failing case

* rollback timeout for dnd and rewrite script for the failing case

* rollback timeout for dnd and rewrite script for the failing case

* rollback unnecessary change

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-03-08 14:50:44 +00:00
Christos Nasikas faae074607
[Security Solution][Case] Push ITSM comments as work notes (#93916)
* Push ITSM comments as work notes

* Fix cases mapping

* Improve error messages

* Fix tests
2021-03-08 16:38:04 +02:00
Ahmad Bamieh 8de91b506e
[i18n] Integrate 7.12.0 Translations (#93595)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-03-08 16:10:33 +02:00
Casper Hübertz 54e7734fe6
[APM] Sets target blank on the docs link (#93913) 2021-03-08 14:38:49 +01:00
Casper Hübertz ef02d1cf2b
[APM| Change correlations table actions and title (#93917)
* [APM] Change filter icons
* [APM] Change filter heading
2021-03-08 14:38:36 +01:00
Michael Dokolin 8fa917c920
Fix accessibility in the global query bar (#93411)
* Fix accessibility of the filter bar tags (#82457)
* Fix focus state keeping after removing a filter tag (#82503)
* Fix invalid state in the query bar date picker (#82513)
2021-03-08 14:34:48 +01:00
Nicolas Chaulet f4caf8727d
[Fleet] Remove fleetServerEnabled feature flag and use fleet system indices (#92422) 2021-03-08 07:40:09 -05:00
Dario Gieselaar e2abb03ad0
[APM] Color by span type when there's only one service (#90424)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-03-07 07:52:38 +01:00
Lukas Olson acb7b7726e
[KQL] Remove number parsing (#93658)
* [KQL] Remove number parsing

* Update test snapshots
2021-03-06 23:45:50 -07:00
Brian Seeders a7dd5179a9
Skip another uptime test blocking ES snapshot promotion (#93868) 2021-03-05 23:04:27 -05:00
Melissa Alvarez cac26b8cda
[ML] Data Frame Analytics creation wizard: add validation step (Part 1) (#93478)
* wip: create validationStep component

* wip: trainingPercent check, analysisFields check. Step details

* move validation check to server

* handle no training percent in validation

* move callout component to shared dir

* use shared Callout component in AD val and update message headings

* update types

* adds functional tests for validation

* adds api integration test for validate endpoint

* consolidate messages for depvar and fields

* fix accessibility test

* update license

* update validation messages

* update types in validation model

* add jobValidationReturnType
2021-03-05 21:48:39 -05:00
Brian Seeders 020a8ee7dd
Revert "Display Kibana overall status in the logs and have FTR wait for green status before running tests (#92568)" (#93855)
This reverts commit d53894aa5a.
2021-03-05 21:02:52 -05:00
Karol Fuksiewicz a11f34c910
feat(apm): add rust icon (#93781) 2021-03-05 20:25:53 -05:00
Christos Nasikas d0f356dde3
[Alerts] Fix broken alert's actions when upgrading from 7.10 to 7.11 (#93611)
Co-authored-by: Steph Milovic <stephanie.milovic@elastic.co>
2021-03-05 19:03:45 -05:00
Frank Hassanabad 972bf0adc1
[Security Solutions] Unrevert and fix tests (#93834)
## Summary

Unreverts:
https://github.com/elastic/kibana/pull/93548

By fixing tests that are relying on date times to be less strict.

### 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-03-05 18:41:00 -05:00
Davis Plumlee b5ee9f451f
[Security Solution][Detection Rules] Fixes rule details spacing on rules with long queries (#93831) 2021-03-05 18:19:14 -05:00
Brian Seeders 654435249e
Skip uptime test blocking ES snapshot promotion (#93828) 2021-03-05 18:12:55 -05:00
Lukas Olson c9b0b1577a
[KQL] Do not generate nested AST/Elasticsearch queries for same-level AND/OR clauses (#93506)
* [KQL] Do not generate nested AST for same-level AND/OR clauses

* Update tests

* Update snapshots
2021-03-05 15:52:49 -07:00
Devin W. Hurley fd1d796564
[Security Solution] [Detections] Fixes validation on response from find status route (#93684)
* fix validation on response of find status route when rule has a partial failure status

* replaces warning in rule status service with partial failure to maintain backwards compatibility from an API standpoint, also displays 'warning' on UI if a rule's status is partial failure

* display partial failure as 'warning' on all rules table and update e2e test to check for partial failure not warning

* add util function, show 'warning' on monitoring table, fix e2e tests
2021-03-05 17:24:47 -05:00
Marshall Main 352af43b29
Return results from find and read rules even if they don't validate (#93713) 2021-03-05 17:07:09 -05:00
Chris Cowan eb104651b1
[Metrics UI] Disable anomaly alerting (#93813) 2021-03-05 14:48:46 -07:00
Mike Côté 23ce8dcfdb
Rename alerts plugin to alerting (#92898)
* Rename alerts plugin to alerting

* Deprecate old config values

* Few more renames

* Update plugin list

* Rename xpack.alerts -> xpack.alerting

* Fix some ESLint rules

* Fix typecheck

* Fix some test failures

* Some more renames

* Fix ESLint

* Fix some test failures

* Fix failing jest test

* Undo exclusive test

* Fix APM deps

* Fix docs

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-03-05 13:59:34 -05:00
Nicolas Chaulet 02be8c16c9
[Fleet] Improve error status code for package (#93696) 2021-03-05 13:50:14 -05:00
Dima Arnautov 15cda17f2d
[ML] Fix creation of alert instances for Anomaly detection alert type (#93605)
* [ML] use static alert instance key, remove logic for handling duplicates

* [ML] use job id as an alert instance id

* [ML] beta label

* [ML] round time interval

* [ML] fix preview button

* [ML] improve the default template

* [ML] remove redundant kibanaBaseUrl
2021-03-05 12:26:58 -05:00
Scotty Bollinger 5755d7907c
[Workplace Search] Port RoleMappings changes (#93458)
This PR ports changes from the ent-search RoleMappings to Kibana

Reference PR: https://github.com/elastic/ent-search/pull/3148
2021-03-05 13:18:10 -04:00
Michael Dokolin 542d66643e
[Reporting] Fix chromium driver factory to emulate browser timezone (#73242) 2021-03-05 17:47:49 +01:00
Jen Huang b310138717
Don't truncate package name in package details page title (#93716) 2021-03-05 08:14:50 -08:00
Brandon Morelli 433b55353c
Update link to index template documentation (#93709) 2021-03-05 08:02:32 -08:00
Madison Caldwell 840edacecf
[Security Solution][Detections][Threshold Rules][7.12] Final Threshold Rule Fixes for 7.12 (#93553)
* refactor

* Add explicit to/from

* cleanup

* A bit more cleanup

* Fix threshold signal history bug when rule is edited

* Added comments

* more cleanup, fix tests

* Add tests later

* Reverse the tuples array

* Fix getThresholdBucketFilters test

* Fix translations
2021-03-05 10:26:00 -05:00
Vadim Dalecky 89020354eb
Unskip "Explore underlying data" skipped functional test (#93627)
* ci: 🎡 enable flaky test for running through flaky test runner

* ci: 🎡 unskip skipped test
2021-03-05 15:25:59 +01:00
Tiago Costa 0f261ef670
skip flaky suite (#93737) 2021-03-05 14:16:11 +00:00
Tiago Costa 50c5f0617b
skip flaky suite (#93735) 2021-03-05 14:11:31 +00:00