Commit graph

46333 commits

Author SHA1 Message Date
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
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
Matthias Wilhelm 53ba2c42df
[Discover] Set ownfocus to false when displaying the document flyout (#108646) 2021-09-10 11:52:36 +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
Tim Roes b9f3fceea5
Improve async loading doc tabs (#111582) 2021-09-10 10:37:02 +02:00
Orhan Toy ab4e05fb67
[App Search] Make URLs in crawler validation messages clickable (#111722) 2021-09-10 10:35:15 +02:00
Yulia Čech 544d4f6eaa
[Console] Added information about autocomplete definitions (#105112)
* [Console] Added information about autocomplete definitions to the README.md

* [Console] Updated README.md

* Added code review suggestions

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-09-10 09:46:14 +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
Jonathan Budzenski 163fa7d2e0
[build] Add cloud docker images (#107949)
Co-authored-by: Przemysław Hejman <przemyslaw.hejman@elastic.co>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-09-09 20:40:09 -05:00
Jonathan Budzenski 5763a2f25a
[config] Remove deprecated environment variables CONFIG_PATH and DATA_PATH (#111535) 2021-09-09 19:31:46 -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
Jonathan Budzenski 914fa092c0
Bump tar to 6.1.11 (#111602)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-09-09 14:46:11 -05:00
Jonathan Budzenski 3f83259db7
[config] Deprecate KIBANA_PATH_CONF in favor of KBN_PATH_CONF (#111550) 2021-09-09 14:22:48 -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
Spencer de2cfd2e65
[ci] bump Jenkins worker memory and es JVM size (#111760)
Co-authored-by: spalger <spalger@users.noreply.github.com>
2021-09-09 14:26:08 -04: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