Commit graph

18263 commits

Author SHA1 Message Date
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
Dmitry Shevchenko
2bdb3131df
Add missing import statement to schema generator template (#111955) 2021-09-13 18:39:52 +02: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
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
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
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
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
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
Zacqary Adam Xeper
2021e6ecd6
[Metrics UI] Add Inventory Timeline open/close state to context and URL state (#111034)
* Add urlstate to timeline open/close state

* Move open/close state to WaffleOptions and add to saved view
2021-09-10 09:00:18 -05:00
Marta Bondyra
7fff05f4e7
[Graph] Switch to SavedObjectClient.resolve (#109617) 2021-09-10 15:47:06 +02:00
Casper Hübertz
3c17704cfc
[APM] Adding lambda icon (#111834) 2021-09-10 15:22:46 +02:00
Nathan Reese
a779ea3818
[Maps] Remove * exports (#111003)
* [Maps] Remove * exports

* update extraPublicDirs

* clean up some more imports

* tslint

* eslint

* eslint

* fix import in functional tests

* eslint

* eslint take 2

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-09-10 06:16:37 -06:00
Uladzislau Lasitsa
70090e326c
Timelion App removal (#110255)
* Remove timelion app and stuff which related to it

* Fix CI

* Fix lint

* Fix tests

* Fix tests

* Fis tests

* Fix some comments

* Clean up

* fix CI

* fix some comments

* Fix deprecation examples

* Return `enabled` property in config for timelion vis

* Remove unused angular lib

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Alexey Antonov <alexwizp@gmail.com>
2021-09-10 14:53:07 +03:00
Kevin Logan
3c71408690
[Security Solution] Correct the default user notification messages and tooltip text for Memory and Behavior (#111806)
* [Security Solution] Correct the default user notification messages and tooltip text for Memory and Behavior
2021-09-10 07:30:38 -04:00
Pablo Machado
e174e94fd4
Fix incorrect number of alerts shows under External alert trend (#111746) 2021-09-10 12:56:20 +02:00
Pierre Gayvallet
c78121ce5a
[SOM] Improve warning when trying to delete hidden objects (#111698)
* improve warning message when trying to delete hidden saved objects

* improve message

* fix pluralize

* fix title
2021-09-10 10:51:57 +02:00
Orhan Toy
ab4e05fb67
[App Search] Make URLs in crawler validation messages clickable (#111722) 2021-09-10 10:35:15 +02:00
Tim Sullivan
297e4c365f
[Reporting/Tests] Use reporting default settings in test server config (#111626)
* remove custom kibana server settings for reporting in default x-pack test config

* have tests use the deprecated built-in role granting reporting access

* restore test user default privilege for canvas

* fix app privileges in tests

* fix test_user not able to access canvas in the dashboard test

* simplify some tests setup

* update csv export timerange and snapshot

* update fn tests for app privileges

* fix feature controls test

* Update discover_security.ts

* fix reporting tests

* test using defaults in the security privilege test

* fix read-only privileges with url_create Permalinks

* fix security api anonymous

* fix anonymous capabilities tests

* fix discover csv export tests

* Update screenshots.ts

* update discover csv fn tests

* update snapshots

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-09-09 22:13:37 -07:00
Madison Caldwell
820b1cafa0
'kibana.alert.rule.from' should be mapped as 'keyword' (#111793) 2021-09-09 22:19:06 -04:00
Paul Tavares
73540277e5
[Security Solution][Trusted Apps] New ArtifactEntryCard and refactor of Trusted Apps list to use it (#111051)
* New `ArtifactEntryCard` component
* Refactored ContextMenuItemNavByRouter and moved it to top-level components + new ActionsContextMenu component + add context menu to card
* Refactor Trusted App grid to use new ArtifactEntryCard
* new Trusted Apps generator + refactor existing of TA script to use it
* policy details support for custom back link
* bug fix: paginated content should not trigger a change to adjust paging settings unless loading is done
2021-09-09 18:47:40 -04:00
Vadim Yakhin
48f9923b08
Fix confidential OAuth flow (#111802)
Previously we were accepting "string | undefined" as `state` parameter.
But if the `state` was not present in the URL, we received null.
That was breaking the confidential flow in cases where `state` was not provided.
This commit changes the type of parameter to "string | null" and fixes the flow in such cases.
2021-09-09 18:15:04 -04:00
Michael Kellogg
5acd1326c7
[Maps] implemention of usng support fixing #76144 (#107835)
* implemention of usng support fixing #76144

* linting fixes

* lint fixes

* pr code edits

* fixed utm zone and added error proofing

* removing any data types and replacing with explicit ones

* avoiding render of unused components

* fixing linting issues

Co-authored-by: Michael Ihde <mihde@spectric.com>
2021-09-09 14:52:19 -07:00
Greg Thompson
6803fb362a
Upgrade EUI to v37.6.0 (#110998)
* eui to 37.6.0

* update snapshots

* grid cell text

* update snapshot

* Revert "grid cell text"

This reverts commit 1721e83939.

* grid cell text

* update tsvb baseline

* update area_chart baseline

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-09-09 14:54:30 -05:00
Domenico Andreoli
7ee68bea8e
Drop the 'Displays the unmapped field on the table' test (#111741)
It's too unstable for now
2021-09-09 14:41:59 -04:00
Nick Peihl
4b60458c4b
[Maps] Remove deprecated maps.manifestServiceUrl configuration (#111656)
* Remove deprecated maps.manifestServiceUrl

* Remove unused catalogue route

* Remove unused import

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-09-09 11:37:57 -07:00
Lisa Cawley
4d933c7d98
Replace hard-coded links in infra alerting (#111072) 2021-09-09 11:27:29 -07:00
Madison Caldwell
5e2511fc43
[RAC][Security Solution] Add RAC support to rule routes (#108053)
* prototyping

* how dis

* RAC rules create API

* Find rules (in progress)

* Finalize find_rules route

* A couple more routes, and type error fixes

* Fix integration tests?

* Fix tests

* Fix imports

* Add ref

* Test fixes

* Fix refs

* Type fixes

* Test fixes

* Remove console log

* Update rule changes

* Test and type fixes

* Fix patch rule tests

* Fix types

* Begin removing namespace as required param

* Remove generics

* Support RAC everywhere

* Tests passing

* Types

* Keep on passing isRuleRegistryEnabled around

* Rewrite install_prepackaged_timelines helper tests
2021-09-09 13:38:20 -04:00
Thomas Neirynck
c006c82db9
[Maps] Add force-refresh toggle (#104691)
Adds the ability for users to control whether a layer should refresh on auto-update or when the refresh-button is clicked. This is required to display static layers from geo-data indexed in Elasticsearch.
2021-09-09 13:34:40 -04:00
Cauê Marcondes
c51c92cd7a
[APM] Fix bucket size in alert previews (#111304)
* fixing preview charts

* using metrics

* fixing ts issues

* refactoring

* refactoring useServiceTransactionTypesFetcher

* addressing pr comments

* addressing pr comments

* addressing pr comments
2021-09-09 12:57:29 -04:00
Cauê Marcondes
6e9b1b57b8
[APM] Consistent "no data" screen with other Observability solutions (#111630)
* logic to show no data screen

* fixing i18n

* fixing ts

* addressing pr comments
2021-09-09 12:55:28 -04:00
Chris Roberson
b9e6f935c4
[Actions] Treat failures as successes for Task Manager (#109655)
* Support retry with email as an example

* Fix tests

* Add logic to treat as failure if there is a retry

* Handle retry better

* Make this optional

* Tweaks

* Remove unnecessary code

* Fix existing tests

* Add some unit tests

* Add test

* Add doc note

* More docs

* PR feedback

* Update docs/management/action-types.asciidoc

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

* Update docs/management/action-types.asciidoc

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

* Update docs/management/action-types.asciidoc

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

* Update docs/management/action-types.asciidoc

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

* Update docs/management/action-types.asciidoc

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

Co-authored-by: gchaps <33642766+gchaps@users.noreply.github.com>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-09-09 12:51:39 -04:00
ymao1
604a745de0
[Event Log][8.0] Set all event log index assets to hidden (#110929)
* Setting event log indices to hidden

* Cleaning up cluster client and adding unit tests

* Unit tests

* Unit tests

* Unit tests

* Unit tests

* PR feedback

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-09-09 12:14:39 -04:00