Commit graph

14628 commits

Author SHA1 Message Date
Chris Roberson 7d237b8f59
Fix issue with loading logstash node page under standalone cluster (#93617)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-03-09 10:00:45 -05:00
Byron Hulcher cceed8ddd6
[App Search] Add delete action to EnginesTable component (#92844)
* Add delete engine route to App Search

* Add new deleteEngine listener to EnginesLogic

* Convert EnginesTable Manage into a proper EuiBasicTable action

* Call EnginesLogic.actions.deleteEngine using new action in EnginesTable

* Manage action on EnginesTable should use eye icon

* Confirmation alert for delete action on EnginesTable

* Only display manage/delete actions to users with canManageEngines

* Add success message and reload after successful engine delete

* Jest tests for EngineTable actions

* Copy change for engine delete success message

* Fixing EnginesTable tests

* Adding more tests for DELETE engine route

* engineNameLink -> EngineNameLink

* Remove redundant test

* Convert Engine.type to enum EngineTypes

* Must use mountWithIntl

* Use platinum license instead of role ability check
2021-03-09 09:49:52 -05:00
Marco Liberati 8e6d4ee2f8
[Lens] Fix wrong suggestions from Datatable to other visualizations (#93920)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-03-09 15:31:17 +01:00
Walter Rafelsberger 326dfa43ca
[ML] Improves error handling for transform wizard when Kibana index pattern or saved search fails to load. (#93915)
Improves error handling for the transform wizard when Kibana index pattern or saved search fails to load.
Previously a non-existing index pattern or saved search or corrupt saved object could cause the page to end up blank. Improved error reporting will catch the problem and display an error callout.
2021-03-09 15:29:45 +01:00
Xavier Mouligneau af8d5eb4e6
[Security Solution] Add nested field inside of data provider (#93721)
* add nested field inside of dataprovider

* make sure to get nested

* fix elq server side

* add mock for nested attributes

* Add basic tests for nested fields query generation

* Update snapshots and failing tests with nestedFields

* fix nested date

Co-authored-by: Kevin Qualters <kevin.qualters@elastic.co>
2021-03-09 07:49:29 -05:00
ymao1 023d9a028b
[Alerting] Update alerting action variables to follow new terminology (#93836)
* Removing duplicate ActionVariable interface. Updating common action variables in UI

* Passing in alert values as rule variables in transform_action_params

* Fixing unit tests

* Fixing functional test

* Adding functiional test

* Updating paths

* Fixing i18n

* Fixing i18n

* Fixing api docs

* Plugin api build

* Moving spaceId and tags under rule prefix

* Using top level alert prefix

* Fixing i18n

* build api docs

* Fixing functional test

* Fixing functional test
2021-03-09 07:48:38 -05:00
Patryk Kopyciński ed2a1bfb1f
[Asset Management] Add support for Live queries in Osquery (#89889) 2021-03-09 13:25:47 +01:00
Pete Harverson a438810673
[ML] Fixes styling of Single Metric Viewer chart for dark theme (#93581)
* [ML] Fizes styling of Simgle Metric Viewer chart for dark theme

* [ML] Fix lint error in scss

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-03-09 11:50:31 +00:00
Robert Oskamp 6569e0cfa3
[ML] Functional tests - stabilize transform message assertion (#94056)
This PR stabilizes the transform message assertion during functional tests by only comparing lower cased strings.
2021-03-09 12:40:24 +01:00
Christos Nasikas bd354b437b
[Security Solution][Case] Fix SIR labels (#94050) 2021-03-09 05:27:41 -05:00
Christos Nasikas a563f5a72e
[Security Solution][Case] Fix bug where push button is not appearing after switching between connectors (#93986)
* Fix bug

* PR review
2021-03-09 05:22:33 -05:00
Justin Ibarra 29d0dceb03
[Detection Rules] Add 7.12 rules (#94022) 2021-03-08 20:30:35 -09:00
Cauê Marcondes c2fb2ec936
[APM] Adding comparison to transactions table (#91435)
* adding comparison to transactions table

* fixing api test

* merge

* addressing PR comments

* addressing PR comments

* adding kuery filter

* fixing tests

* addressing PR comments

* fixing concurrency issues

* addressing PR comments

* addressing PR comments

* addressing PR comments

* hiding impact bar when comparison disable

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-03-08 22:00:29 -05:00
Yara Tercero e603bf5461
[Security Solution][Preview] - Enable preview when only filters used (#94018)
### Summary

Addresses #93245 where the preview button was grayed out when only filters were present - no main query.
2021-03-08 18:59:49 -08:00
Andrew Goldstein bcdfa397ac
[Security Solution] [Timeline] Timeline layout fixes (#93870)
## [Security Solution] [Timeline] Timeline layout fixes

- Fixes Timeline's layout to increase the available height of the table on the Query tab by ~ 40%
- Fixes an issue where the query builder is not displayed in full screen mode

### Query Tab Before

<img width="1790" alt="query-tab-before" src="https://user-images.githubusercontent.com/4459398/110192483-abeaa400-7deb-11eb-8b01-c1753d05ab1c.png">

### Query Tab After

<img width="1792" alt="query-tab-after" src="https://user-images.githubusercontent.com/4459398/110192491-b1e08500-7deb-11eb-9b78-fe8097ca9cd6.png">

### Query Tab: Full Screen Before

<img width="1792" alt="query-tab-full-screen-before" src="https://user-images.githubusercontent.com/4459398/110192497-b73dcf80-7deb-11eb-9553-865b6f7ffa84.png">

### Query Tab: Full Screen After

<img width="1792" alt="query-tab-full-screen-after" src="https://user-images.githubusercontent.com/4459398/110192505-befd7400-7deb-11eb-9e20-6b4a5bd1aaaa.png">

### Correlation Tab Before

<img width="1792" alt="eql-tab-before" src="https://user-images.githubusercontent.com/4459398/110192513-c6bd1880-7deb-11eb-9d20-3bc269498edb.png">

### Correlation Tab After

<img width="1792" alt="eql-tab-after" src="https://user-images.githubusercontent.com/4459398/110192534-db011580-7deb-11eb-8a0b-f92c3d8a64fd.png">

### Correlation Tab: Full Screen Before

<img width="1792" alt="eql-tab-full-screen-before" src="https://user-images.githubusercontent.com/4459398/110192538-e5bbaa80-7deb-11eb-9094-42719e5341f6.png">

### Correlation Tab: Full Screen After

<img width="1792" alt="eql-tab-full-sreen-after" src="https://user-images.githubusercontent.com/4459398/110192620-624e8900-7dec-11eb-9eed-e20a9aafeb90.png">

### Pinned Tab Before

<img width="1792" alt="pinned-tab-before" src="https://user-images.githubusercontent.com/4459398/110192557-07b52d00-7dec-11eb-9d93-2d1ffe0712e7.png">

### Pinned Tab After

<img width="1792" alt="pinned-tab-after" src="https://user-images.githubusercontent.com/4459398/110192559-0c79e100-7dec-11eb-8068-6eb0dd700086.png">

### Pinned Tab: Full Screen Before

<img width="1792" alt="pinned-tab-full-screen-before" src="https://user-images.githubusercontent.com/4459398/110192563-126fc200-7dec-11eb-9024-ffc7b2a887df.png">

### Pinned Tab: Full Screen After

<img width="1792" alt="pinned-tab-full-screen-after" src="https://user-images.githubusercontent.com/4459398/110192569-1865a300-7dec-11eb-9162-84547c929853.png">

### Desk testing

Desk tested in:

- Chrome `89.0.4389.82`
- Firefox `86.0`
- Safari `14.0.3`
2021-03-08 18:41:25 -07:00
Tim Sullivan 9fef424bba
Switch Reporting to Task Manager (#64853)
* [Reporting] Task Manager

* fix startup

* use synchronous config for task registration

* fix eslint

* pr-90365

* --wip-- [skip ci]

* set maxConcurrency to 0 if pollEnabled is false

* add test for execute_report

* remove unused test file

* more tests

* remove unused test files

* remove priority

* logging cleanups

* fix for queue.pollEnabled: false

* more logging fixes for less duplicated code

* update jest snapshots

* polish

* remove unnecessary

* Update mapping.ts

* polish

* fix bug if instance gets a monitoring task and pollEnabled is false

* simplification

* cosmetic

* fix test

* stop monitoring task sabotage

* update api docs

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-03-08 17:33:19 -07:00
James Rucker add02f13e8
[Workplace Search] Persist OAuth token package during OAuth connect flow (#93210)
* Store session data sent from Enterprise Search server

This modifies the EnterpriseSearchRequestHandler to remove any data in a
response under the _sessionData key and instead persist it on the server
side.

Ultimately, this data will be persisted in the login session, but for
now we'll just store it in a cookie. https://github.com/elastic/kibana/issues/92558

Also uses this functionality to persist Workplace Search's OAuth token
package.

* Only return a modified response body if _sessionData was found

The destructuring I'm doing to remove _sessionData from the response is
breaking routes that currently expect an empty response body. This
change just leaves those response bodies alone.

* Refactor from initial feedback & add tests

* Decrease levity

* Changes from PR feedback

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-03-08 16:17:35 -08:00
Zacqary Adam Xeper 0ce3dc7f10
[Fleet] Prevent duplicate enrollment token names (#92735) 2021-03-08 19:09:42 -05:00
Kevin Qualters 9b99f6d3d1
[Security Solution] Prevent EuiFocusTrap from blocking focus to global search (#93377)
* Prevent EuiFocusTrap from blocking focus to global search

* Only run when flyout is open

* Remove unused import

* Fix broken cypress test

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-03-08 19:03:48 -05:00
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