Commit graph

40442 commits

Author SHA1 Message Date
Marta Bondyra 0ee7be1f0d
[Lens] Keyboard-selected items follow user traversal of drop zones (#90546) 2021-02-15 12:48:06 +01:00
Marco Liberati 75a7f78730
[Lens] Improves ranking feature in Top values (#90749)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-02-15 12:25:19 +01:00
Jean-Louis Leysens fb2552661d
[ILM] Rollover min age tooltip and copy fixes (#91110)
* removed an unnecessary tooltip in rollover field, added a tooltip to min age field when rollover is enabled

* slight update to copy, added jest test and added comment about testing

* page title and timeline title to sentence case

* added link to learn more about timing to phase timeline component

* fix jest test copy

* remove unused import

* fix i18n

* remove unused translations

* slight refactor to conditional for clarity

* slight refactor to i18n text naming

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-02-15 12:04:01 +01:00
Ahmad Bamieh c1d1b2b453
[Saved Objects] Allow exporting and importing hidden types (#90178)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-02-14 19:05:36 +02:00
spalger 3dbcc2713e [dev/ts-refs] don't use cache when building a new cache or when using --clean 2021-02-13 13:31:25 -07:00
Tiago Costa 1d11f02681
skip flaky suite (#90416) 2021-02-13 18:44:33 +00:00
Anton Dosov 5fb5be69f3
[Search Sessions] Enable Search Sessions (#91097)
* enable search sessions

* adjust tests

* adjust tests

* adjust tests

* adjust tests

* make order consistent

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-02-13 14:36:40 +02:00
Joe Portner 5c3c3efdd8
Sharing saved objects, phase 2.5 (#89344) 2021-02-13 04:28:35 -05:00
Lukas Olson 104eacb59a
[data.search] Add user information to background session service (#84975)
* [data.search] Move search method inside session service and add tests

* Move background session service to data_enhanced plugin

* Fix types

* [data.search] Add user information to background session service

* Update trackId & getId to accept user

* Fix remaining merge conflicts

* Fix test

* Remove todos

* Fix session service to use user

* Remove user conflicts and update SO filter

* Allow filter as string or KQL node

* Add back user checks

* Add API integration tests

* Remove unnecessary get calls
2021-02-13 10:42:56 +02:00
Cauê Marcondes 874fadf388
[APM] Adding comparison to throughput chart (#90128)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Dario Gieselaar <dario.gieselaar@elastic.co>
2021-02-12 22:53:05 +01:00
Nathan L Smith f9804057c8
TypeScript project references for APM (#90049)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Dario Gieselaar <dario.gieselaar@elastic.co>
2021-02-12 22:46:05 +01:00
Dario Gieselaar a28318e516
[APM] Add custom spans around async operations (#90403)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-02-12 19:34:44 +01:00
Jonathan Buttner f8b8d5b33d
[Case] Detection rules for case (#88726)
* Adding type field to client

* Removing context and adding association type

* Handle alerts from multiple indices

* Adding flow for adding a sub case

* Making progress on creating alerts from rules

* Refactored add comment to handle case and sub case

* Starting sub case API and refactoring of case client

* Fleshing out find cases

* Finished the find cases api

* Filtering comments by association type

* Fixing tests and types

* Updating snapshots

* Cleaning up comment references

* Working unit tests

* Fixing integration tests and got ES to work

* Unit tests and api integration test working

* Refactoring find and get_status

* Starting patch, and update

* script for sub cases

* Removing converted_by and fixing type errors

* Adding docs for script

* Removing converted_by and fixing integration test

* Adding sub case id to comment routes

* Removing stringify comparison

* Adding delete api and tests

* Updating license

* missed license files

* Integration tests passing

* Adding more tests for sub cases

* Find int tests, scoped client, patch sub user actions

* fixing types and call cluster

* fixing get sub case param issue

* Adding user actions for sub cases

* Preventing alerts on collections and refactoring user

* Allowing type to be updated for ind cases

* Refactoring and writing tests

* Fixing sub case status filtering

* Adding more tests not allowing gen alerts patch

* Working unit tests

* Push to connector gets all sub case comments

* Writing more tests and cleaning up

* Updating push functionality for generated alerts and sub cases

* Adding comment about updating collection sync

* Refactoring update alert status for sub cases and removing request and cleaning up

* Addressing alert service feedback

* Fixing sub case sync bug and cleaning up comment types

* Addressing more feedback

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-02-12 09:03:53 -05:00
Cauê Marcondes 2fcf2a91cc
[APM] Break down transaction table api removing the sparklines (#88946)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Dario Gieselaar <dario.gieselaar@elastic.co>
2021-02-12 11:57:01 +01:00
Gidi Meir Morris 6406e99642
[Alerting] Skips Alert Instances that were instantiated but have no scheduled actions (#91179)
Skips Alert Instances that were instantiated but have no scheduled actions to prevent them from being identified as having recovered.
2021-02-12 09:59:16 +00:00
Walter Rafelsberger 01451af68b [ML] Skip module setup tests to unblock ES promotion. 2021-02-12 10:56:05 +01:00
Casper Hübertz b2104ae2ba
[APM] Polish: Update header styles and layout (#91093)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-02-12 10:20:31 +01:00
Casper Hübertz 6438cb0431
[APM] Remove UX app promo callout (#91118)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-02-12 10:19:55 +01:00
Spencer afed310b82
[ts/build-refs] implement experimental remote cache (#91012)
* [ts/build-refs] implement experimental remote cache

* delete old tests

* add some more tests

* add some docs and a readme

* fix kibanaPackageJson usage

Co-authored-by: spalger <spalger@users.noreply.github.com>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-02-12 01:56:21 -07:00
Alexey Antonov 644bcbccd4
[Vega] Restores signal values on refresh (#90774)
* Vega kibanaAddFilter() Resets Signal Values Back to Default

Closes: #88976

* fix ci

* introduce restoreSignalValuesOnRefresh option

* update docs
2021-02-12 10:55:38 +03:00
Devon Thomson 7994e87cd7
[Time to Visualize] Clear All Editor State when Visualize Listing Page Loads (#91005)
* Changed the embeddable state transfer service so that it is possible to clear all editor state at once. Used that method in the visualize listing page
2021-02-11 23:23:14 -05:00
Zacqary Adam Xeper 7537326aca
[Metrics UI] Fix passing space ID into anomaly alerts (#91222)
* [Metrics UI] Fix passing space ID into anomaly alerts

* Fix jest
2021-02-11 19:54:28 -05:00
Ryland Herrick 7a5526768c
[Security Solution][Detections]Indicator Match Enrichment (#89899)
* Adds basic integration test for threat enrichment

* Update signals mappings with indicator fields

* Simplify some ternaries with Math.min

* Remove outdated comments

* Add notes from walkthrough with devin

* Add an enrichment hook to the current signal creation pipeline

When this moves to individual rule-specific data transformations this
will be a little more explicit/configurable; for now to keep changes
minimal, we're using dependency injection to pass a function, which will
default to the identity function (e.g. a no-op).

* Add utility functions for encoding/decoding our threat query

This is what allows us to enrich the threat match signals using only the
signal search response.

* Add a name to each threat match filter clause

This gives us the information we need to enrich our signals after
they've been queried without having to perform a complicated reverse
query.

* Adds functions for signal enrichment of threat indicators

* Wire up threat enrichment to threat match rules

* Fleshes out threat match integration tests

Adds assertions to the existing test, and fleshes out another test for a
multi-match signal.

* Add more test cases to indicator match integration tests

* single indicator matching multiple events
* multiple indicators matching a single event
* multiple indicators, multiple events
* placeholder for deduplication logic

This also adds some descriptions to our threat intel documents, to give
a little context around how they're meant to function within the tests,
particularly as relates to the auditbeat/hosts data on which it is meant
to function.

* Implement signal deduplification

This handles the situation where the indicator match search has returned
the same signal multiple times due to the source event matching
different indicators in different query batches. In this case, we want
to generate a single signal with all matched indicators.

* Move default indicator path to constant

* Testing some edge cases with signal enrichment

* Cover and test edge cases with threat enrichment generation

* Fix logical error in TI enrichment

We were previously adding the indicator's field to matched.field,
instead of the corresponding event field that matched the indicator.

In the normal case, the expectation is that the indicator field is
self-evident, and thus we want to know the other side of the match on
the event itself.

Updates tests accordingly.

* Document behavior when an indicator matched but is absent on enrichment

This could occur if the indicator index is updated while a rule is being
run.

* Add followup note

* Add basic unit test for our enrichment function

This just verifies that the enrichment function gets invoked with search
results.

* Update license headers for new files

* Remove unused threatintel archive

I made both of these before we were clear on the direction we were
taking here.

* Bump signals version to allows some updates in patch releases

* Fix typings of threat list item

We were conflating the type of the underlying document with the type of
the search response for that document. This is now addressed with two
types: ThreatListDoc and ThreatListItem, respectively.

ThreatListDoc isn't the most distinguishing name but it avoids a lot of
unnecessary renaming for the existing concept of ThreatListItem.

* Update test mock to be aware of (but not care about) named queries

* Remove/update outdated comments

This code was modified to perform two searches instead of one; at that
time, a lot of this code was duplicated and modified slightly, and these
misleading comments were a result. I removed the ones that were no
longer relevant, but left a TODO for one that could be a bug.

* Remove outdated comment

Documents will always have _id.

* Update enriched signals' total to account for deduplication

If a given signal matched on multiple indicators in different loops of
our indicator query, it may appear multiple times. Our enrichment
performs the merging of those duplicated results, but did not previously
update the response's total field to account for this.

I don't believe that anything downstream is actually using this field and that we
are instead operating on the length of hits and the response from the
bulk create request, but this keeps things consistent in case that
changes.

* Remove development comments

* Add JSDoc for our special template version constant

* Remove outdated comments

* Add an additional test permutation for error cases

Ensure that we throw an error if the indicator field is either a
primitive or an array of primitives.

* Remove unnecessary coalescing

These values are already defaulted in the parent, and the types are
correct in that these cannot be undefined.

* Move logic to build threat enrichment function into helper

* Refactor code to allow typescript to infer our type narrowing

existingSignalHit could not be undefined on line 30 here, but typescript
could not infer this from the !acc.has() call.

* Use a POJO over a Map

We were using a map previously in order to use .has() for a predicate,
but code has since been refactored to make that unnecessary.

* Explicitly type our enriched signals

These are being typed implicitly and verified against SignalSourceHit[]
on the assignment below, but this makes the types explicit and surfaces
a type error here instead of the subsequent assignment.

* Add an explanatory note about these test results

* Remove unused imports

These references were moved into buildThreatEnrichment

* Remove threat mappings accidentally brought in with indicator work

I copied the entirety of the `threat` mappings in order to get the
`threat.indicator` ones, but it looks like these were added at some
point too.

I'd rather these not be added incidentally. If we need them, we should
do so explicitly.

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-02-11 19:43:09 -05:00
Lisa Cawley c64cc352f9
[ML] Edit hyperparameter descriptions in job wizard (#91072)
Co-authored-by: Tom Veasey <tveasey@users.noreply.github.com>
2021-02-11 16:19:49 -08:00
Marshall Main 0fb83bbcd4
Add size param to search for previous threshold signals (#90810)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-02-11 18:44:59 -05:00
Yara Tercero 6e444964d0
[Security Solution][Exceptions Table] - Fix exceptions table search by name (#88701)
Addresses #88450

Issue
Search was not working as expected was because the exception list property name is mapped as a keyword - this means it does not get tokenized which is why one word searches were working but if the name included multiple words and was partial, it was not filtering properly.
2021-02-11 15:27:24 -08:00
Rashmi Kulkarni a96aa5e34e
Unskip and Fix maps x-pack functional test - ( sample data and layer_errors) and also added baseline images (#91205)
* fixes https://github.com/elastic/kibana/issues/74449

* unskip maps tests (#90323)

* unskip maps tests

* checking the baseline images

* updated the test to move the mouse away and close the Legend

* more changes to the test

* reducing the threshold limit

* updating the baseline images

* added a comment about the baseline images

* updating flights baseline image and adjusting threshold

* updated threshold and baseline image for web log

* session image of weblogsmap

* skipping layer_errors test

* skip the test - as it fails on cloud and windows on snapshot
2021-02-11 16:01:41 -07:00
Dominique Clarke 53f4d4840b
[Uptime] Feature/80166 add waterfall flyout (#89449)
* adjust network events

* add metaData to data formatting

* add useFlyout

* adjust waterfall data types

* adjust MiddleTruncatedText to use span instead of div

* add flyout

* adjust sidebar button style

* update tests

* convert content to use sentence case

* pass onBarClick and onProjectionClick as WaterfallChart props

* use undefined value for initial flyoutData state

* add telemetry

* adjust typo in get_network_events

* adjust connection time

* added space between value and units

* adjust flyout spacing, rearrange certificates, and right align values

* adjust flyout labels

* add focus management support to flyout

* improve performance with memoization

* add external link to MiddleTruncatedText

* update data_formatting function

* remove EuiPortal

* add moment mock to data_formatting test

* adjust data_formatting

* adjust network_events runtime types

* remove extra space in test tile

* toggle flyout on sidebar click

* update styling and html for open in new tab resource link

* rename metaData to metadata

* adjust MiddleTruncatedText styling

* adjust WaterfallFlyout heading

* adjust waterfall sidebar item types

* adjust SidebarItem onClick type

* fix license header

* align middle truncated text left

* move flyout logic to a render prop for better composability

* add ip to flyout

* update label for bytes downloaded (compressed)

* lowercase compressed

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-02-11 17:48:18 -05:00
Anton Dosov 2e42d18db9
[Search Sessions] Secure access to session routes based on user permissions (#90990) 2021-02-11 17:18:20 -05:00
Devon Thomson 6e8622fadb
[Time to Visualize] Copy Panel to Dashboard (#90856)
* Added copy to dashboard action
2021-02-11 17:15:30 -05:00
Mikhail Shustov 734f4c02f0
remove unused folder (#91199) 2021-02-11 17:13:21 -05:00
Jonathan Budzenski 1878d11ad8
[build] Generate ironbank docker context (#89933)
* [build] Generate ironbank docker context

* replace download.json with hardening_manifest.yml

* update dockerfile

* rm jenkinsfile

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-02-11 16:11:06 -06:00
Nicolas Chaulet 94ba974adb
[Fleet] Remove aliases from index_template when updating an existing template (#91200) 2021-02-11 16:42:25 -05:00
Vadim Yakhin 7da7b100d2
[Workplace Search] Update personal dashboard (#91136)
* Remove "Add a private content source" sidebar link

* Update groupsSentence to cover different number of groups

Different cases:
1 group: You have access to the following sources through the group Default.
2 groups: You have access to the following sources through the groups Default and Engineering. (no comma before 'and')
3+ groups: You have access to the following sources through the groups Default, Marketing, and Engineering. (comma before 'and')

* Create PrivateSourcesLayout as a copy of Layout

In this commit PrivateSourcesLayout is a full copy of Layout.
It's going to be updated in later commits.

* Remove unused code from PrivateSourcesLayout

* Update read-only mode warning copy for end-users

* Move copy to constants file

* Add width styles to new sidebar

Also moved private_sources_layout styles to sources.scss file. Having separate files for that little amount of custom styles is unnecessary.

* Move top-level header to sidebar

* Add missing padding to sidebar

* Replace ViewContentHeader with ContentSection props

* Move variables over the components

* Remove unused classnames

* DRY out privateSourcesTable and privateSourcesEmptyState

by extracting privateSourcesSection that contains common markup.

* DRY out sharedSourcesTable and sharedSourcesEmptyState

by extracting sharedSourcesSection that contains common markup.

* Reorder code blocks inside the file

To match the order the components appear in UI

* Add newline to the groups enumeration sentence

So it looks good with any number of groups

* Update x-pack/plugins/enterprise_search/public/applications/workplace_search/views/content_sources/private_sources_layout.tsx

Co-authored-by: Scotty Bollinger <scotty.bollinger@elastic.co>

Co-authored-by: Scotty Bollinger <scotty.bollinger@elastic.co>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-02-11 16:36:41 -05:00
Zacqary Adam Xeper 90049b0dac
[Metrics UI] Update docs link for anomaly alerts (#90981) 2021-02-11 15:24:15 -06:00
Zacqary Adam Xeper 748823f5c4
[Metrics UI] Fix alerts repeatedly firing "recovered" actions (#91038) 2021-02-11 15:46:13 -05:00
Catherine Liu 30e86ac065
[Dashboard] Adds Save as button to top menu (#90320)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-02-11 12:17:09 -08:00
Catherine Liu befb7c62a5
[Time to Visualize] Adds functional tests for editing by value visualize embeddables (#90241)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-02-11 12:16:40 -08:00
Zacqary Adam Xeper 15277e187c
[Metrics UI] Fix alert preview accuracy with new Notify settings (#89939)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-02-11 15:04:03 -05:00
Alejandro Fernández Gómez 1fbea8cd78
[Logs UI] Use async search in the log stream page (#90303)
Co-authored-by: Felix Stürmer <stuermer@weltenwort.de>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-02-11 21:03:43 +01:00
Luke Elmers 7fc3d125bf
Support pit and search_after in server savedObjects.find (#89915) 2021-02-11 14:58:08 -05:00
Quynh Nguyen 13740f1cd3
[ML] Add Create Data Frame Analytics card to Data Visualizer (#91011) 2021-02-11 13:45:18 -06:00
Justin Kambic 3e234d074f
[Uptime] Format PingList duration time as seconds when appropriate (#90703)
* Introduce new formatting logic for ping list, duration strings now converted to seconds when appropriate.

* Handle singular plurality case.

* Make limit for conversion 10 sec instead of 1 sec.

* Switch conversion threshold back to one second, add tests.

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-02-11 14:19:02 -05:00
Jonathan Budzenski c5b5f20baf Revert "[Fleet] Remove aliases from index_template when updating an existing template (#91142)"
This reverts commit c22366e69d.
2021-02-11 13:17:03 -06:00
Yara Tercero e76b66c43d
[Core][SO] - Updating SO _find filter parser to take into consideration multi-fields (#90988)
This PR addresses the bug #90985 . Please see link for bug details.

TLDR: SO _find filter does not take into consideration that filter string can refer to multi-fields which should be parsed differently. This addition adds to the helper method that checks if there are any errors in the filter formatting.
2021-02-11 11:15:38 -08:00
Nicolas Chaulet c22366e69d
[Fleet] Remove aliases from index_template when updating an existing template (#91142) 2021-02-11 13:55:45 -05:00
Anton Dosov a42eab1dff
[Search Sessions] batch trackId calls (#90956) 2021-02-11 19:52:26 +01:00
Corey Robertson 8bd0e3217b
[Canvas] Adds Label option for Dropdown Control (#88505)
* Adds Label option for Dropdown Control

* Update Snapshots

* Fix typecheck
2021-02-11 13:51:23 -05:00
Corey Robertson 609b5bf1b7
[Dashboard] Adds Dashboard Maps by value functional tests (#90449)
* Adds Dashboard Maps by value functional tests

* Fix license header issue

* License check

* Fix duplicate import

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-02-11 13:49:52 -05:00
Devon Thomson 89327bf9de
[Time to Visualize] Rename Visualize to Visualize Library (#91015)
* Renamed Visualize to Visualize Library
2021-02-11 13:46:35 -05:00