Commit graph

46214 commits

Author SHA1 Message Date
Xavier Mouligneau 35c83bac5a
[SECURITY SOLUTION] Bring back Drag drop in query tabs of active timeline (#111908)
* bring back drag drop in active timeline detail view

* only allow drag and drop in query tab

* fix snapshot

* fix bug on alert summary to remove dragdrop
2021-09-13 16:04:56 -04:00
Chris Roberson 17150b245a
[Task Manager] Support excluding certain task types from executing (#111036)
* Support excluding certain action types

* Fix types

* Fix jest tests

* Flip this

* Add functional test

* Add to README

* Updated README

* Add startup log

* Update x-pack/plugins/task_manager/README.md

Co-authored-by: Mike Côté <mikecote@users.noreply.github.com>

* Add telemetry

* Add test

* Rename internal to unsafe

* Update test config

* Fix tests

* Update x-pack/plugins/task_manager/README.md

Co-authored-by: gchaps <33642766+gchaps@users.noreply.github.com>

* PR feedback

Co-authored-by: Mike Côté <mikecote@users.noreply.github.com>
Co-authored-by: gchaps <33642766+gchaps@users.noreply.github.com>
2021-09-13 16:02:23 -04:00
Thomas Neirynck d3dd617cd9
[Fleet] Persist category and search in url on package page (#111571) 2021-09-13 15:12:01 -04:00
Thomas Neirynck fcd27d17c2
[Fleet] Rename tabs (#111657) 2021-09-13 15:10:57 -04:00
Spencer c5887450c6
[ci-stats] retry requests that respond with a 500 or greater (#111967)
Co-authored-by: spalger <spalger@users.noreply.github.com>
2021-09-13 11:56:41 -07:00
Scotty Bollinger a76eed4657
Add a React Router helper for EuiListGroupItem (#111977) 2021-09-13 14:15:03 -04:00
Jonathan Buttner a0af91e885
[Security Solution][Timeline] Migrate timeline ids to references (#111043)
* Starting migration class

* Fleshing out migrator

* Adding migration tests

* Refactoring

* Adding migrator to each client

* gzipping file

* Fixing cypress tests

* Cleaning up types and adding additional test

* Addressing feedback
2021-09-13 14:06:29 -04:00
Angela Chuang c8ef1e214f
[Security Solution]Error coming up on clicking create timeline template (#111856)
* do not call addErrorHash if it is timeline template

* unit test

* fix types

* trim kqlQueryExpression

* revert change

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-09-13 13:43:51 -04:00
Corey Robertson edc147b6f4
Fixes issue with removing first workpad page (#110495)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-09-13 13:18:25 -04:00
Madison Caldwell 835e88986c
[RAC][Security Solution] Add RAC event correlation rule (#108056)
* incremental changes

* No more type errors

* Type guards

* Begin adding tests

* Flatten

* Reduce scope of branch

* Revert "Reduce scope of branch"

This reverts commit 8c3a1875c3.

* Remove extraneous argument to filter_duplicate_signals

* Use constants, add producer and space ids

* Make owner and space id required fields

* Implement suggestions

* Add timestamp constant

* partial commit

* Fix apm tests

* more constants

* Fixes?

* Alert group builder + tests

* Fix types

* Finish eql implementation

* Add eql rule creation script
2021-09-13 13:15:05 -04:00
Chris Roberson 74d87db06a
[Actions] Telemetry for calling legacy routes (#111901)
* Telemetry for legacy http api routes

* PR feedback
2021-09-13 12:56:44 -04:00
Chris Roberson f8449a237d
[Alerting] Telemetry for calling legacy routes (#111885)
* Telemetry for calling legacy routes

* Fix types

* Use different counter type

* PR feedback

* Fix this test too
2021-09-13 12:56:27 -04:00
Jonathan Buttner 5e15e2ff1c
[Cases] Fixing newline issue with markdown stringify (#111646)
* Fixing newline issue with markdown stringify

* Adding comments and removing null check

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-09-13 12:54:17 -04:00
Jonathan Budzenski 1e70ad1dcf
[yarn.lock] Dedupe babel dependencies (#111810)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-09-13 11:50:26 -05:00
Larry Gregory 1b91a5b450
Add renovate config for platform security dependencies (#111950)
* Add renovate config for platform security dependencies

* Fix typo in group name
2021-09-13 12:46:41 -04:00
Dmitry Shevchenko 2bdb3131df
Add missing import statement to schema generator template (#111955) 2021-09-13 18:39:52 +02:00
Stef Nestor daf9cd55b1
[+Doc] ERROR: Kibana server not yet ready (#111230)
Adds section to bottom of [Kibana start-up](https://www.elastic.co/guide/en/kibana/current/access.html#status) for `Kibana server is not ready yet` error since second top Elastic Discuss post last 30d ([specific](https://discuss.elastic.co/t/error-kibana-server-is-not-ready-yet/156834/21) & [general](https://discuss.elastic.co/t/kibana-server-is-not-ready-yet/241217)). Copying @markwalkom's work.

Co-authored-by: gchaps <33642766+gchaps@users.noreply.github.com>
2021-09-13 10:12:12 -06:00
Stef Nestor 42aab12085
[DOC] Update Persist Keystore via Docker (#110917)
From feedback from ES Devs summarized in [this Elastic Discuss](https://discuss.elastic.co/t/persist-elasticsearch-kibana-keystores-with-docker/283099), Adding to [this doc section](https://www.elastic.co/guide/en/kibana/7.14/docker.html#bind-mount-config) information on persisting keystores. [ES related PR](https://github.com/elastic/elasticsearch/pull/77155)

Co-authored-by: gchaps <33642766+gchaps@users.noreply.github.com>
2021-09-13 10:11:35 -06:00
Walter Rafelsberger 065701a0c3
[ML] APM Correlations: Chart for failed transactions correlations tab. (#110172)
* [ML] Fix tooltip text.

* Revert "[ML] Fix tooltip text."

This reverts commit ca86f769d7.

* [ML] Chart prototype.

* [ML] Hover support for failed transactions chart.

* [ML] Add p-value column.

* [ML] Code consolidation.

* [ML] Fix naming inconsistencies.

* [ML] Fix naming inconsistencies.

* [ML] Fix naming inconsistencies.

* [ML] Consolidate hooks.

* [ML] Consolidate hooks.

* [ML] Consolidate hooks.

* [ML] Use function overloads.

* [ML] Fix naming inconsistencies.

* [ML] Fix jest test.

* [ML] Fix chart loading behavior.

* [ML] Rename values to latencyCorrelations.

* [ML] Clean up types.

* [ML] Add function overloads.

* [Ml] Update API integration tests.

* [ML] Rename values to failedTransactionsCorrelations.

* [ML] Fix naming inconsistencies.

* [ML] Fix naming inconsistencies.

* [ML] Fix naming inconsistencies.

* [ML] Fix jest test.

* [ML] Fix API integration test

* [ML] Clean up chart data.

* [ML] Fix chart props.

* [ML] Tweak types for failed correlations.

* [ML] Improve FieldValuePair type usage.

* [ML] Remove 'async' from variable names.

* [ML] Fix typo.

* [ML] Simplify mock.

* [ML] Refactor code that used type guards.

* [ML] Comment about feature availability.

* [ML] Simplify check.

* [ML] Simplify selectedHistogram.

* [ML] Improve column type safety.

* [ML] Simplify selectedTerm.

* [ML] Simplify sorting.

* [ML] Fix regresssion when there's no data for failed transactions.

* [ML] Rename fieldFilter to termFilters.

* [ML] Update api integration test assertions.

* [ML] Fix failed transactions params.

* [ML] Tweak chart title.

* [ML] Tweak chart colors.

* [ML] Add translation.

* [ML] Tweak selectedTerm if statement.

* [ML] Fix types.

* [ML] Fix assertion text.

* [ML] Refactor replaceHistogramDotsWithBars.

* [ML] Refactor fetchFailedTransactionsCorrelationPValues.

* [ML] Fix score column width.

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-09-13 17:08:43 +01:00
Michael Marcialis 4dc72140be
Account for presence of top banner when EuiDataGrid and Canvas are full screen (#111038)
* account for banners when data grid is full screen

* account for banner when canvas is full screen

* change height per feedback

* add withKibana

* rm withKibana; move vars out of Fullscreen

* Use hasHeaderBanner$

* add banner height var comments

* fix ts error

Co-authored-by: Catherine Liu <catherine.liu@elastic.co>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-09-13 11:58:01 -04:00
Kuldeep M dd1714e8dd
[Workplace Search] better spacing around icon in Group filter popover (#111949)
* better spacing around icon in group filter popover

* prevent flex wrapping on small screens
2021-09-13 16:54:08 +01:00
Matthew Kime 3fd7dbe455
[data views] allow fields that start with an underscore in the field list (#111238)
* stop filtering out fields that start with underscore
2021-09-13 10:45:34 -05:00
Cauê Marcondes 3b4d99bcf4
[Obs] Show new "no data screen" on the getting started page (#111803)
* adding new no data screen

* adding no data screen on observability page

* fixing i18n

* i18n

* fixing test

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-09-13 11:43:39 -04:00
Robert Oskamp c01ff06cd2
[ML] Functional tests - stabilize import job test (#111929)
This PR stabilizes the import job tests by giving the `Import` button some time to be enabled before clicking it.
2021-09-13 17:23:28 +02:00
Angela Chuang b7b593a707
[Security Solution] Timeline uses existing filter manager (#111732)
* use existing filterManager

* remove unused default value

* unit test

* fix type

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-09-13 16:22:38 +01:00
Anton Dosov d6badd8715
[FieldFormats] Reduce any usage (#111530) 2021-09-13 17:01:51 +02:00
Khristinin Nikita ef65bcb267
Remove fullWidth for enrichment range picekr (#111502)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-09-13 16:55:49 +02:00
Maja Grubic 22d253f846
[Discover] Fix a functional test 'index pattern with unmapped fields' (#111323)
* [Discover] Fix a functional test

* Fix failing type

* Select index pattern first

* Select index pattern first

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-09-13 16:44:03 +02:00
Matthias Wilhelm f3dc980bb9
[Discover] Fix permissions for runtime fields functional test (#111925) 2021-09-13 16:03:15 +02:00
Paul Tavares e1be1a6f46
[Security Solution] Detect and fix corrupt artifacts (#111853)
* Recover from artifact not found errors in `getLastComputedManifest()` + some changes to logger calls
* Recover from errors while retrieving the internal artifact map
* Use `EndpointError` in ManifestManager and capture more metadata around error
* Convert some logger.debug calls to logger.error + use EndpointError
2021-09-13 08:23:24 -04:00
Mark Hopkin 3f82b297e3
[Fleet] disable upgrade action when package does not have upgrade available (#111510)
* fix: consolidate hasUpgrade logic

* tidy: move type defs to top of file

* test: add unit tests for actions menu

* tidy: PR feedback

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-09-13 07:15:48 -04:00
Uladzislau Lasitsa bfe1c556d0
[TSVB] Shows wrong labels when we get only one series after splitting (#111736)
* use correct styles when after split we have only one series

* Fix lint

* Fix comments

* remove unused styles

* Update _vis_with_splits.scss

* Fix lint

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-09-13 13:30:08 +03:00
Pierre Gayvallet 200efcaaa3
Add deprecation warning when inline scripting is disabled (#111865)
* initial implementation

* extract isScriptingDisabled to own file

* add unit tests for scripting deprecation

* add unit tests
2021-09-13 12:15:27 +02:00
Diana Derevyankina 33cfc4183a
[TSVB] Support custom field format (#101245)
* [TSVB] Support custom field format

Add format_label response processor for series vis data and bucket key formatting to process_bucket for table vis data

* Add ignore_field_formatting for series to support value formatting for all panel types except markdown

* Fix type issue for visData and rename getCustomFieldFormatter to createCustomFieldFormatter

* Update vis.test to cover custom field formats logic and add a migration script to set ignore_field_formatting to true for the series

* Move createCustomFieldFormatter to a separate file, make formatting respect only active metrics field name, refactor vis files and fix label formatting only for grouped by terms series

* Remove services, add getFieldFormatsService  to use it in format_label and get_table_data, replace getCustomFieldFormatter with createCustomFieldFormatter

* Update plugin.ts

* Update start for plugin.ts

* Add formatting for annotations and markdown values

* Refactor some code

* Update some naming and conditions

* Fix formatting of data type labels

* In process_bucket fix case for no getFieldFormatByName

* Add field formatting functional tests for all panel types

* Update tests to make them run correctly for firefox

* Update _tsvb_markdown test setup

* Move series ignoreFieldFormatting check to a separate file, change convertSeriesToVars signature, update migration script and refactor a bit functional tests

* Fix type check for timeseries_visualization.tsx

* Update migrations.js test expected version to 7.15

* Fix tests in _tsvb_chart.ts

* Fix merge conflict remove process_bucket.js

* Update process_bucket.test.ts

* Fix markdown labels formatting

* Add ignore_field_formatting for annotations, enhanced migration script to set that flag to true, refactor data_format_picker

* Fix migration script and add disabling for ignore component when string index pattern is used

* Add supporting URL and color formatters in tsvb table

* Fix eslint

* Remove ignore formatting component, add field formatting option to TSVB data format picker and make it default, remove migration script, update tests and refactor some files

* Fix failing tests, refactor create_field_formatter and add test to it, update some other files

* Fix series formatting for top hit when it has not numeric result

* Handle no fieldFormatMap case for table/vis.js

* Remove "Default" option form DataFormatPicker when index pattern is string, fix markdown variables issue and refactor some code

* Chore(TSVB): Replace aggregations lookup with map

* Fix types, update test expected data and remove unused translations

* Fix i18 check and useEffect in agg.tsx

* Handle aggregations field formatting case

* Fix agg_utils, vis and check_if_numeric_metric tests

* Correct typo and refactor condition in std_metric

* Fix type check

* Get rid of IFieldType

* Add URL and color formatting for topN and metric tabs, fix setting initial custom formatter and switching formatter in agg.tsx

* Update tsvb.asciidoc

* Remove link icon from Date format field help text, update click logic for top N in case of custom field format and fix CI

* Remove unused import

* Revert top N bar extra logic for click

* Refactor some code in agg.tsx

* Add URL and color formatting to Gauge

* Fix bug with terms formatting, refactor some code, update create_field_formatter

* Add comments to _gauge.scss

* Remove unnecessary await

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Uladzislau Lasitsa <Uladzislau_Lasitsa@epam.com>
2021-09-13 11:51:32 +03:00
Stratoula Kalafateli d60fab1413
[VisEditors] Add code ownership to the functional tests (#111680)
* [VisEditors] Add code owenership to the functional tests

* Remove the unnecessary imports

* Revert

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-09-13 11:36:14 +03:00
Marta Bondyra 15a31a19b3
[Lens] Make Lens saved object share-capable (#111403)
* [Lens] Make Lens saved object share-capable

Step 4 of https://www.elastic.co/guide/en/kibana/master/sharing-saved-objects.html#sharing-saved-objects-faq-changing-object-ids

* delete gzipped duplicate

* fix updating the document

* use create instead of update

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-09-13 09:33:22 +02:00
Marta Bondyra f9f90705f2
[Graph] Make Graph saved object share-capable (#111404)
* [graph] Make Graph saved object share-capable

Step 4 of https://www.elastic.co/guide/en/kibana/master/sharing-saved-objects.html#sharing-saved-objects-faq-changing-object-ids

* bump migration version to fix the test

* test

* Revert "bump migration version to fix the test"

This reverts commit 04d2f49386.

* Revert "test"

This reverts commit 7b0a74d431.

* Fix Core migration integration tests

The existing tests incorrectly asserted an object's `migrationVersion`
solely based on the registered type's `migration` field; in reality, the
`convertToMultiNamespaceTypeVersion` field is also used when determining
an object's `migrationVersion`. This commit simply updates the test to
reflect that.

Co-authored-by: Joe Portner <5295965+jportner@users.noreply.github.com>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-09-13 08:42:07 +02:00
Phillip Burch 3c6cfb6c99
[Stack Monitoring] Add breadcrumb support (#111850) 2021-09-13 11:36:19 +09:00
Chenhui Wang fc8e834a75
Update Jira Cloud to use OAuth2.0 (#111493)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-09-12 22:23:35 +08:00
Nathan L Smith 531f849f0a
Show warning message when attempting to create an APM alert in stack management (#111781)
Creating new rules in Stack Management does not work. Editing existing rules should work. If you enable editing rules, you also have to enable creating rules. Make it so when you attempt to create a rule in stack management it shows a warning telling you to go create the rule in APM.
2021-09-10 18:04:29 -05:00
Brian Seeders d70ff6c3c3 Skip suite blocking ES snapshot promotion (#111907) 2021-09-10 17:38:15 -04:00
Aleh Zasypkin e4e8001269
Respect auth_provider_hint if session is not authenticated. (#111521) 2021-09-10 17:17:43 -04:00
Jessica David 7ee4a086c3
Added in 'Responses' field in alert telemetry & updated test (#111892) 2021-09-10 16:47:43 -04:00
Ahmad Bamieh 13560c01fc
[Usage collection] refactor cloud detector collector (#110439) 2021-09-10 15:42:24 -04:00
Tim Roes 7da17a5e67
Make classnames a shared dep (#111636)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-09-10 17:44:27 +02:00
Josh Dover 6991f22e97
Fix link to e2e tests in APM testing.md (#111869) 2021-09-10 17:39:06 +02:00
Marshall Main caf5fe3fb6
[Security Solution] Add host.os.name.caseless mapping and runtime field (#111455)
* Add host.os.name.caseless field and runtime field

* Tests

* Only add backwards compatibility mappings to old indices by version

* Always update aliases_version field even if there are no compat mappings

* Add test for newest index version

* More comments

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-09-10 10:48:05 -04:00
Oliver Gupte 5fbc1d4c27
[APM] Removes the beta label from APM tutorial (#111499) (#111828) 2021-09-10 10:38:10 -04:00
Kerry Gallagher 7f6df4a575
[RAC] [Observability] Expand Observability alerts page functional tests (#111297)
* Regenerate data and add tests
2021-09-10 15:26:53 +01:00
Pablo Machado 6a3e68956e
Fix extra white space on the alert table whe page size is 50 or 100 (#111568) 2021-09-10 16:16:24 +02:00