Commit graph

18312 commits

Author SHA1 Message Date
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
Kuldeep M 7ae423c5bb
Workplace Search remove extraneous tooltip from Recent Activity table (#111709)
* remove extraneous tooltip

remove remove extraneous tooltip from Recent Activity table on the Source Overview page

* remove unused import

* rename trigger name to something more relevant
2021-09-09 17:09:29 +01:00
Robert Oskamp 7f441b49b3
[ML] Functional tests - skip color assertions in cloud (#111695)
This PR skips color assertions during functional tests in cloud environments.
2021-09-09 11:58:58 -04:00
Kevin Qualters 930bc9c1e3
Use correct z-index for timeline global footer (#111492) 2021-09-09 11:55:57 -04:00
Marta Bondyra c6c4f52fc3
[Lens] comment redux logger (#111513)
* [Lens] comment redux logger

* Update x-pack/plugins/lens/public/state_management/index.ts

Co-authored-by: Marco Liberati <dej611@users.noreply.github.com>

* Update x-pack/plugins/lens/public/state_management/index.ts

Co-authored-by: Marco Liberati <dej611@users.noreply.github.com>

Co-authored-by: Marco Liberati <dej611@users.noreply.github.com>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-09-09 17:15:44 +02:00
Scotty Bollinger 86d61a4f6c
Fix a bug where users not populated (#111660)
In https://github.com/elastic/kibana/pull/109008, we fixed an issue where Role mappings were not populated on changes (adding/deleting). However, we did not apply the same fix for Users in the table under Role mappings. This PR does that.
2021-09-09 09:51:32 -05:00
Scotty Bollinger a045c8ab4a
Fix bug where flyout state was not reset (#111662)
This PR fixes a bug in both App Search and Workplace Search where the role mappings flyout state was not being cleared when updating a role mapping. The issue is that the state of the flyout is determined by the existence of a role mapping and this was not being cleared when the role mapping was saved.
2021-09-09 09:50:14 -05:00
Jonathan Budzenski 72dfb9c7e3 skip flaky suite, #109564 2021-09-09 09:29:27 -05:00
ymao1 334f129bcb
[Alerting] Fixing flaky tests (#111366)
* Unskipping test

* Retrying deletes

* Unskipping test

* Changing fn signature

* hmm

* Removing unnecessary code

* Unskipping test

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-09-09 09:43:42 -04:00
Chris Cowan 36cec00c6d
[Metrics UI] Remove rounding from Metric Threshold start time (#111634)
* [Metrics UI] Remove rounding from Metric Threshold start time

* adding missed files
2021-09-09 07:20:33 -06:00
Thomas Watson 29142a6fb8
Fix audit log tests (#111706)
This ensures that the config object given to the `AuditService` setup
method is in fact the `xpack.security.audit.*` config options.
Previously the entire `xpack.security.*` config object would be passed
in.

The reason why this didn't fail the tests before was that both happen to
have a similarly named config option called `enabled`, which these tests
rely on.
2021-09-09 14:01:07 +01:00
Yaroslav Kuznietsov 764256573a
[Canvas] SidebarContent refactor. (#111672)
* Refactored sidebar.

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-09-09 15:56:46 +03:00
Nicolas Chaulet a1a717862b
[Fleet] Fix config migration from ingestManager to support both xpack.fleet and xpack.ingestManager config values (#111612) 2021-09-09 08:39:18 -04:00
Angela Chuang dd69697517
[Security Solution] add timeline id to context (#111435)
* add timeline context

* remove an unused file
2021-09-09 07:44:52 -04:00
Dario Gieselaar c1697a1163
[APM] Use new path syntax in waterfall (#111689) 2021-09-09 06:40:07 -04:00
Yaroslav Kuznietsov 2c7d13b7b9
[Canvas] Expression types and Function form refactor. (#107516)
* Refactored `FormFunction` to ts.

* Converted components to ts and added types for expression_types.

* Fixed types and refactored `function_component`.

* Added types to base_form, function_form, transform, etc.

* Arg types added.

* Moved model to ts and fixed all types.

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-09-09 11:37:18 +03:00
Pablo Machado db07147091
Fix focus jumps from Case description box back to Alerts table with first <return> keystroke (#111273)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-09-09 10:35:47 +02:00
juliaElastic ec461a223e
[Integrations] Fixed wording (#111519)
for integration upgrade
2021-09-09 08:47:36 +02:00
Dario Gieselaar 96bffbfaf8
[APM] Use full path in route definition (#111501) 2021-09-09 08:30:26 +02:00
Dzmitry Lemechko b324ca3115
[jest] update config files to get coverage per plugin (#111299)
* [jest] update config files to get coverage per plugin

* [docs] add details about plugin coverage collection

* fix path for newsfeed jest config

* fix lint error

* update documentation

* fix lint errors again

* update doc

* fix another lint error

* Update src/plugins/telemetry_management_section/jest.config.js

Co-authored-by: Luke Elmers <lukeelmers@gmail.com>

* Update src/plugins/telemetry_management_section/jest.config.js

Co-authored-by: Luke Elmers <lukeelmers@gmail.com>

* [kibana_legacy] fix path

Co-authored-by: Luke Elmers <lukeelmers@gmail.com>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-09-09 08:14:56 +02:00
Tim Sullivan c4c653606a
[Reporting] Remove any, improve telemetry schema for completeness (#111212)
* [Reporting] Remove `any`, improve telemetry schema for completeness

* remove another any

* rename file per exported function

* test variable name

* use variable for DRY

* update reporting telemetry contract

* added csv_searchsource_immediate to telemetry

* fix types

* update jest snapshots

* remove tests on large literal objects

Co-authored-by: Jean-Louis Leysens <jloleysens@gmail.com>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-09-08 16:39:42 -07:00
Tim Sullivan af06aec5b0
[Reporting] Remove encryption logic from export types (#111472)
* [Reporting] change CreateJobFn type to not handle KibanaRequest

* fix enqueueJob

* fix tests

* fix imports

* convert enqueue_job into a method of request_handler

* Update types.ts

* Update report.ts

* fix import

* update comment and structure

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-09-08 16:39:28 -07:00
Søren Louv-Jansen d3f6303014
[APM] Show badge for failed spans in waterfall (#109812)
Co-authored-by: Casper Hübertz <casper@formgeist.com>
2021-09-08 23:37:28 +02:00
Rudolf Meijering 5464af6923
legacy dashboards import/export API: deprecation logs and usage data (#111283)
* Move legacy dashboards API to core and adds usage data

* More legacy_export plugin removal

* Log a warning for deprecated dashboard import/export API

* Review comments
2021-09-08 16:15:52 -04:00
spalger 32e98730b5 skip flaky suite (#111628) 2021-09-08 12:56:46 -07:00
spalger b328fb3981 skip flaky suite (#108352) 2021-09-08 12:53:37 -07:00
Walter Rafelsberger 28af11a601
[ML] APM Correlations: Fix API integration tests. (#111532)
A bugfix for significant terms on the ES side resulted in changes to assertions we have for api integration tests for APM correlations. This PR updates the affected tests.
2021-09-08 21:33:16 +02:00
Cauê Marcondes 958adc57af
[APM] Bug with Transaction Latency Threshold rule (#111541) 2021-09-08 15:23:52 -04:00
Candace Park 05495a336b
[Security Solution][Endpoint][TrustedApps][EventFilters] Change add button color (#111218) 2021-09-08 12:22:07 -06:00
Byron Hulcher d03efa227b
Fix logic issues resulting from CrawlerLogic/CrawlerOverviewLogic split (#111564) 2021-09-08 14:13:09 -04:00
Andrew Goldstein 99ee803459
[Security Solution] Enable schema-driven sorting descriptions in column headers (#111232)
## Summary

This PR resolves issue <https://github.com/elastic/kibana/issues/110041> reported by @snide to enable schema-driven sorting descriptions in column headers.

@chandlerprall recommends obtaining a **+1** from the Machine Learning and Observability solutions, because the fix updates an `i18n` constant in Kibana common to all consumers of `EuiDataGrid`.

## Details

Thanks @chandlerprall for paring on this!

The Alerts table, `Host > Events`, and other `EuiDataGrid`-based views in the Security Solution make use of the default [`EuiDataGrid` schemas](https://elastic.github.io/eui/#/tabular-content/data-grid-schemas-and-popovers).

The default schemas enable `EuiDataGrid` to automatically display, for example, `Old-New` and `New-Old` sorting descriptions for datetime fields, as opposed to generic `A-Z` and `Z-A` descriptions.

The following (shared) Kibana `i18n` constant in `src/core/public/i18n/i18n_eui_mapping.tsx` is expected to be rendered a `string` at runtime:

```ts
    'euiColumnActions.sort': ({ schemaLabel }: EuiValues) =>
      i18n.translate('core.euiColumnActions.sort', {
        defaultMessage: 'Sort {schemaLabel}',
        values: { schemaLabel },
      }),
```

But the constant was rendered in `EuiDataGrid` column headers as `[object Object]` when schemas were enabled, as shown in the screenshot below:

![column-header-object-object](https://user-images.githubusercontent.com/4459398/132079843-a8b0f5e5-9d47-4816-8baa-e29577511bf1.png)

_Above: The `sortTextAsc/Desc` text was rendered as `[object Object]`_

The temporary workaround described by [#110041](https://github.com/elastic/kibana/issues/110041) ensured that `Sort A-Z` and `Sort Z-A` labels were always displayed (in lieu of `[object Object]`), as shown in the screenshot below:

![image](https://user-images.githubusercontent.com/324519/130789326-bfe67cae-e4f7-469a-9b57-320cbf733cc8.png)

_Above: `Sort A-Z` and `Sort Z-A` labels were always displayed as a workaround_

The fix in this PR updates the following (shared) Kibana `i18n` constant in `src/core/public/i18n/i18n_eui_mapping.tsx` to use a `FormattedMessage`:

```ts
    'euiColumnActions.sort': ({ schemaLabel }: EuiValues) => (
      <FormattedMessage
        id="core.euiColumnActions.sort"
        defaultMessage="Sort {schemaLabel}"
        values={{ schemaLabel }}
      />
    ),
```

, which ensures a schema-specific sorting label is displayed as-expected.

It also removes the workaround, as shown in the animated gif below:

![after](https://user-images.githubusercontent.com/4459398/132080352-1ee41a7e-8884-45ad-ae3c-daa9a0127aac.gif)

_Above: Schema-specific sorting descriptions are displayed for `datetime`, `text`, and `numeric` column headers_
2021-09-08 11:54:39 -06:00
spalger 65bdbe71d0 Revert "[Canvas] SidebarContent refactor. (#110051)"
This reverts commit 6a958a5e83.
2021-09-08 10:34:17 -07:00
Shahzad 032810e46a
[Uptime] Added loading for certificates page on initial load (#111526) 2021-09-08 13:33:54 -04:00
Marco Liberati b36ffc98fc
[Lens] Fix Heatmap in dashboard with numeric color stops (#111117)
* 🐛 Fix heatmap numeric stops problem + tests

* 🏷️ Fix type issue

*  Add dashboard functional tests for this issue

*  Simplify functional test

*  fix functional test

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-09-08 19:02:10 +02:00
Yaroslav Kuznietsov 6a958a5e83
[Canvas] SidebarContent refactor. (#110051)
* Refactored sidebar.

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-09-08 12:50:05 -04:00
Nathan L Smith 0204762667
Ensure name columns are not cut off on APM tables (#111046)
* Switch the overview to single column when we're at < 1200px
* Hide sparkplots on transactions, dependencies, and instances tables at widths where they could be easily cut off
* Right-align sparkplot columns
* Make chart heights match latency chart height when showing a single column
* Make all impact bars fixed 96px width
* Make values be shown before sparklines
* Make SparkPlots `overflow: 'hidden'`
* Remove fixed widths from columns
* Return breakpoint and width from `useBreakpoints`
* Rename "breakPoint" to "breakpoint" everywhere to match what EUI does
* Replace `ServiceListMetric` (on used on service list) with `ListMetric` (used when sparkplots are conditionally shown)

Fixes #110165.
2021-09-08 11:44:39 -05:00
Lisa Cawley dc2180a8dd
[APM] Updates failed transaction correlations help (#111222) 2021-09-08 09:31:19 -07:00
Lisa Cawley e16736416a
Replace hard-coded doc links in uptime (#111075) 2021-09-08 09:27:08 -07:00
Yaroslav Kuznietsov 6f7d07c6e7
[Canvas] SidebarHeader refactor. (#110176)
* Removed recompose.

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-09-08 11:59:32 -04:00
Angela Chuang 22acf4f216
fix topN popover for case view (#111514)
* fix topN popover for case view

* unit tests
2021-09-08 16:55:22 +01:00
Stratoula Kalafateli 6f4d8a52dc
[Vislib] Removes old implementation of xy chart (#110786)
* [Vislib] Remove xy chart

* Update i18n

* Remove uncecessary file

* Fix types

* More fixes

* Fix functional tests part 1

* Fix functional tests part 2

* Fix bug with shard-delay

* Fix functional tests part 3

* fix functional tests part4

* Fix async_serch FT

* Fix functional dashboard async test

* REplace screenshot area chart image

* Cleanup vislib from xy charts

* Remove unused fixtures

* Address PR comments

* Remove miaou :D

* Address PR comments

* Fix i18n

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-09-08 18:35:51 +03:00
Robert Oskamp dc8f557d3b
[ML] Functional tests - omit node_name in job message assertions (#111529)
This PR removes the node_name from job audit message assertions as it can vary depending on test environments, particularly in cloud.
2021-09-08 11:21:14 -04:00
David Sánchez 641a4b58a9
Allow kuery in get summary request in order to be able to filter summaries by policyId (or something else in the future) (#111507)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-09-08 17:17:58 +02:00
Dima Arnautov d1f2e37902
[ML] Fix "Exclude jobs or groups" control (#111525) 2021-09-08 11:15:17 -04:00
David Sánchez eb9a0fcc17
[Security Solution] [Endpoint] Add new policy tabs layout (#110966)
* Add new policy tabs layout with policy settings and trusted apps tab. Only visible with feature flag enabled

* Add URL state of which tab is selected. Also refactored policy_details component. Hide sticky bar at bottom when trustedApps tab is selected

* Fix wrong constant path in routing

* Don't refresh policyItem if is not necessary

* Remove old code and use new form layout component even if FF is disabled

* Split test file

* Clean test file with unused mocks

* Fixes failing test

* Address pr comments

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-09-08 17:04:34 +02:00
Jonathan Budzenski 55b0d535ff skip flaky test. #111496 2021-09-08 09:30:53 -05:00
Ashokaditya 01218e4745
[Security Solution][Endpoint] Do not validate TA creation form with soft errors when required name field is empty (#111508)
* validate to true only if name is not empty as well

fixes elastic/kibana/issues/108509

* update test

* review changes
2021-09-08 15:23:04 +02:00
Orhan Toy 721cf1023d
[App Search] Crawler overview empty state needs an EuiSpacer (#111498) 2021-09-08 15:00:17 +02:00
Scotty Bollinger ac95ec4d6e
[Enterprise Search] Update internal routes to use /internal prefix over /api (#111035)
* Convert App Search server routes to new prefix

* Update frontend route prefixes for App Search

* Convert Workplace Search server routes to new prefix

* Update frontend route prefixes for Workplace Search

* Convert Enterprise Search server routes to new prefix

* Update frontend route prefixes for Enterprise Search
2021-09-08 08:48:08 -04:00
Ahmad Bamieh 436bb0fea5
[i18n] Integrate 7.15.0 Translations (#111488) 2021-09-08 14:59:39 +03:00
Alejandro Fernández Gómez 77e25bedfb
[Logs UI] Fix alert previews for thresholds of 0 (#111150)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-09-08 11:33:00 +02:00
Dario Gieselaar c7d6f6df1c
[APM] Set start date of APM ML job to -4 weeks (#111375)
Closes #111045.
2021-09-08 11:20:32 +02:00