Commit graph

4178 commits

Author SHA1 Message Date
Matthew Kime
d8c01e6cc6
Index pattern field editor - Add warning and type 'confirm' on delete or save (#95237) (#95526)
* add runtime field change/delete confirm dialog
2021-03-26 12:32:40 -04:00
Pierre Gayvallet
71ebbdc36b
[Application Usage] use incrementCounter on daily reports instead of creating transactional documents (#94923) (#95494)
* initial implementation

* add test for upsertAttributes

* update generated doc

* remove comment

* removal transactional documents from the collector aggregation logic

* rename generic type

* add missing doc file

* split rollups into distinct files

* for api integ test

* extract types to their own file

* only roll transactional documents during startup

* proper fix is better fix

* perform daily rolling until success

* unskip flaky test

* fix unit tests
2021-03-26 05:23:34 -04:00
Matthias Wilhelm
e5c58751d5
[Discover] Unskip functional test of saved queries (#94705) (#95450) 2021-03-25 16:51:23 -04:00
Mikhail Shustov
a15178a1b0
[7.x] ES client : use the new type definitions (#83808) (#95391)
* ES client : use the new type definitions (#83808)

* Use client from branch

* Get type checking working in core

* Fix types in other plugins

* Update client types + remove type errors from core

* migrate Task Manager Elasticsearch typing from legacy library to client library

* use SortOrder instead o string in alerts

* Update client types + fix core type issues

* fix maps ts errors

* Update Lens types

* Convert Search Profiler body from a string to an object to conform to SearchRequest type.

* Fix SOT types

* Fix/mute Security/Spaces plugins type errors.

* Fix bootstrap types

* Fix painless_lab

* corrected es typing in Event Log

* Use new types from client for inferred search responses

* Latest type defs

* Integrate latest type defs for APM/UX

* fix core errors

* fix telemetry errors

* fix canvas errors

* fix data_enhanced errors

* fix event_log errors

* mute lens errors

* fix or mute maps errors

* fix reporting errors

* fix security errors

* mute errors in task_manager

* fix errors in telemetry_collection_xpack

* fix errors in data plugins

* fix errors in alerts

* mute errors in index_management

* fix task_manager errors

* mute or fix lens errors

* fix upgrade_assistant errors

* fix or mute errors in index_lifecycle_management

* fix discover errors

* fix core tests

* ML changes

* fix core type errors

* mute error in kbn-es-archiver

* fix error in data plugin

* fix error in telemetry plugin

* fix error in discover

* fix discover errors

* fix errors in task_manager

* fix security errors

* fix wrong conflict resolution

* address errors with upstream code

* update deps to the last commit

* remove outdated comments

* fix core errors

* fix errors after update

* adding more expect errors to ML

* pull the lastest changes

* fix core errors

* fix errors in infra plugin

* fix errors in uptime plugin

* fix errors in ml

* fix errors in xpack telemetry

* fix or mute errors in transform

* fix errors in upgrade assistant

* fix or mute fleet errors

* start fixing apm errors

* fix errors in osquery

* fix telemetry tests

* core cleanup

* fix asMutableArray imports

* cleanup

* data_enhanced cleanup

* cleanup events_log

* cleaup

* fix error in kbn-es-archiver

* fix errors in kbn-es-archiver

* fix errors in kbn-es-archiver

* fix ES typings for Hit

* fix SO

* fix actions plugin

* fix fleet

* fix maps

* fix stack_alerts

* fix eslint problems

* fix event_log unit tests

* fix failures in data_enhanced tests

* fix test failure in kbn-es-archiver

* fix test failures in index_pattern_management

* fixing ML test

* remove outdated comment in kbn-es-archiver

* fix error type in ml

* fix eslint errors in osquery plugin

* fix runtime error in infra plugin

* revert changes to event_log cluser exist check

* fix eslint error in osquery

* fixing ML endpoint argument types

* fx types

* Update api-extractor docs

* attempt fix for ese test

* Fix lint error

* Fix types for ts refs

* Fix data_enhanced unit test

* fix lens types

* generate docs

* Fix a number of type issues in monitoring and ml

* fix triggers_actions_ui

* Fix ILM functional test

* Put search.d.ts typings back

* fix data plugin

* Update typings in typings/elasticsearch

* Update snapshots

* mute errors in task_manager

* mute fleet errors

* lens. remove unnecessary ts-expect-errors

* fix errors in stack_alerts

* mute errors in osquery

* fix errors in security_solution

* fix errors in lists

* fix errors in cases

* mute errors in search_examples

* use KibanaClient to enforce promise-based API

* fix errors in test/ folder

* update comment

* fix errors in x-pack/test folder

* fix errors in ml plugin

* fix optional fields in ml api_integartoon tests

* fix another casting problem in ml tests

* fix another ml test failure

* fix fleet problem after conflict resolution

* rollback changes in security_solution. trying to fix test

* Update type for discover rows

* uncomment runtime_mappings as its outdated

* address comments from Wylie

* remove eslint error due to any

* mute error due to incompatibility

* Apply suggestions from code review

Co-authored-by: John Schulz <github.com@jfsiii.org>

* fix type error in lens tests

* Update x-pack/plugins/upgrade_assistant/server/lib/reindexing/reindex_service.ts

Co-authored-by: Alison Goryachev <alisonmllr20@gmail.com>

* Update x-pack/plugins/upgrade_assistant/server/lib/reindexing/reindex_service.test.ts

Co-authored-by: Alison Goryachev <alisonmllr20@gmail.com>

* update deps

* fix errors in core types

* fix errors for the new elastic/elasticsearch version

* remove unused type

* remove unnecessary manual type cast and put optional chaining back

* ML: mute Datafeed is missing indices_options

* Apply suggestions from code review

Co-authored-by: Josh Dover <1813008+joshdover@users.noreply.github.com>

* use canary pacakge instead of git commit

Co-authored-by: Josh Dover <me@joshdover.com>
Co-authored-by: Josh Dover <1813008+joshdover@users.noreply.github.com>
Co-authored-by: Gidi Meir Morris <github@gidi.io>
Co-authored-by: Nathan Reese <reese.nathan@gmail.com>
Co-authored-by: Wylie Conlon <wylieconlon@gmail.com>
Co-authored-by: CJ Cenizal <cj@cenizal.com>
Co-authored-by: Aleh Zasypkin <aleh.zasypkin@gmail.com>
Co-authored-by: Dario Gieselaar <dario.gieselaar@elastic.co>
Co-authored-by: restrry <restrry@gmail.com>
Co-authored-by: James Gowdy <jgowdy@elastic.co>
Co-authored-by: John Schulz <github.com@jfsiii.org>
Co-authored-by: Alison Goryachev <alisonmllr20@gmail.com>
# Conflicts:
#	package.json
#	src/core/server/saved_objects/migrationsv2/integration_tests/migration.test.ts
#	src/plugins/data/server/autocomplete/value_suggestions_route.ts
#	src/plugins/discover/public/application/angular/doc_table/create_doc_table_react.tsx
#	x-pack/plugins/apm/server/lib/services/get_service_dependencies/get_destination_map.ts
#	x-pack/plugins/infra/server/lib/alerting/inventory_metric_threshold/evaluate_condition.ts
#	x-pack/plugins/security/server/authentication/api_keys/api_keys.ts
#	yarn.lock

* fix file broken during conflict resolution

* fix lint errors and test failure

Co-authored-by: Tomas Della Vedova <delvedor@users.noreply.github.com>
2021-03-25 10:33:44 -04:00
Matthias Wilhelm
cd5b0d6347
[Discover] Deangularize controller part 1 (#93896) (#95379)
* Refactor minimumVisibleRows

* Extract setupVisualization function

* Extract getDimensions function

* Inline breadcrumb and help menu function exec to discover.tsx

* Extract getStateDefault 

* Remove unnecessary code

* Improve performance by React.memo
2021-03-25 04:52:47 -04:00
Kibana Machine
8e7e9dcce5
[ci] try reducing Jest concurrency to mitigate random timeouts (#95348) (#95362)
Co-authored-by: spalger <spalger@users.noreply.github.com>

Co-authored-by: Spencer <email@spalger.com>
Co-authored-by: spalger <spalger@users.noreply.github.com>
2021-03-24 18:46:12 -04:00
Kibana Machine
95e07fe5c7
[ML] Functional tests for Anomaly swim lane (#94723) (#95313)
* [ML] update @elastic/charts

* [ML] swim lane service, axes tests

* [ML] check single cell selection and current URL

* [ML] clear selection

* [ML] assert anomaly explorer charts

* [ML] fix unit test

* [ML] assert anomalies table and top influencers list

* [ML] update apiDoc version

* [ML] exclude host from the URL assertion

* [ML] clicks view by swim lane

* [ML] fix method for cell selection

* [ML] brush action tests

* [ML] use debug state flag

* [ML] declare window interface

* [ML] pagination tests

* [ML] enable test

* [ML] scroll into view for swim lane actions

* [ML] rename URL assertion method

* [ML] fix assertion for charts count

* [ML] extend assertion

* [ML] refactor test subjects selection

* [ML] fix assertSelection

* [ML] reduce timeout for charts assertion

Co-authored-by: Dima Arnautov <dmitrii.arnautov@elastic.co>
2021-03-24 12:53:14 -04:00
Kibana Machine
ed9c83ca07
isClusterOptedIn should fallback to true when not found (#94980) (#95232)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

Co-authored-by: Alejandro Fernández Haro <alejandro.haro@elastic.co>
2021-03-23 17:37:03 -04:00
Dmitry
c090bd348f
[dashboard/bwc_shared_urls] check viz are loaded (#94941) (#95085)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-03-22 15:47:56 -04:00
Jonathan Budzenski
341014b120 skip telemetry app usage test. #94513 2021-03-22 08:43:25 -05:00
Jonathan Budzenski
b9933d566c skip "doc table should show popover" #94889 2021-03-19 12:12:26 -05:00
Kibana Machine
3e32ee02d4
[core.savedObjects] Fix maxImportExportSize config & update docs. (#94019) (#94999)
Co-authored-by: Luke Elmers <luke.elmers@elastic.co>
2021-03-18 21:42:14 -04:00
Jonathan Budzenski
f5b2ac4870 skip "navigates to doc view from embeddables" #93670 2021-03-18 16:12:07 -05:00
Devon Thomson
52e0a43e21
[Time to Visualize] Add Discrete Library Option to Save Modal (#94589) (#94961)
* save modal UI and Redirect and save to library

Co-authored-by: Poff Poffenberger <poffdeluxe@gmail.com>
# Conflicts:
#	.github/CODEOWNERS
2021-03-18 15:56:01 -04:00
Kibana Machine
515ac4b373
Define schema for monitoring-sourced telemetry (#94434) (#94816)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

Co-authored-by: Alejandro Fernández Haro <alejandro.haro@elastic.co>
2021-03-18 18:43:37 +00:00
Anton Dosov
2df4d5ca96
[QueryBar] a11y improvements, focus glitches fixes, unskip tests (#94148) (#94806)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-03-18 07:26:44 -04:00
Kibana Machine
184b01ad97
[Lens] Runtime field editor (#91882) (#94892)
Co-authored-by: Joe Reuter <johannes.reuter@elastic.co>
2021-03-18 05:36:16 -04:00
Peter Pisljar
b388d36971
kql, lucene and timerange functions (#93043) (#94829)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-03-18 04:40:49 -04:00
Diana Derevyankina
8781e4c349
Replace EuiCodeBlock with JsonCodeEditor in DiscoverGrid (#92442) (#94780)
* Replace EuiCodeBlock with JsonCodeEditor in DiscoverGrid

* Add optional "hasLineNumbers" property to JsonCodeEditor and removed line numbers from the popover

* Update json_code_editor snapshot

* Add functional test for cell expanded content popover

* Remove unused code

* Fix geo point case and refactor some code

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-03-17 06:44:23 -04:00
Yara Tercero
7eb713a5a0
[Lists][Exceptions] - Adding basic linting, i18n and storybook support (#94772) (#94776)
### Summary

In preparation for moving all the exceptions UI components into the lists plugin adds some linting, adds the lists plugin to the i18n config and adds storybook support. Tried to add a bit stricter linting than exists in the security solution right now, rules that we've talked about wanting to enable.
2021-03-17 01:41:27 -04:00
Stratoula Kalafateli
da9e1c313d
[XY axis] Integrates legend color picker with the eui palette (#90589) (#94738)
* XY Axis, integrate legend color picker with the eui palette

* Fix functional test to work with the eui palette

* Order eui colors by group

* Add unit test for use color picker

* Add useMemo to getColorPicker

* Remove the grey background from the first focused circle

* Fix bug caused by comparing lowercase with uppercase characters

* Fix bug on complimentary palette

* Fix CI

* fix linter

* Use uppercase for hex color

* Use eui variable instead

* Changes on charts.json

* Make the color picker accessible

* Fix ci and tests

* Allow keyboard navigation

* Close the popover on mouse click event

* Fix ci

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-03-16 15:58:18 -04:00
Mikhail Shustov
b6076d7ca4
Merge tsconfig and x-pack/tsconfig files (#94519) (#94703)
* merge all the typings at root level

* merge x-pack/tsconfig into tsconfig.json

* fix tsconfig after changes in master

* remove unnecessary typings

* update paths to the global typings

* update paths to the global elaticsearch typings

* fix import

* fix path to typings/elasticsearch in fleet plugin

* remove file deleted from master

* fix lint errors
# Conflicts:
#	x-pack/plugins/fleet/server/services/agents/crud.ts
#	x-pack/plugins/fleet/server/services/artifacts/artifacts.ts
#	x-pack/plugins/fleet/server/services/artifacts/mappings.ts
#	x-pack/plugins/fleet/server/services/artifacts/mocks.ts
#	x-pack/tsconfig.json
2021-03-16 12:33:47 -04:00
Matthew Kime
3ed0a00341
[Field formats] Fix switching away from duration formatter (#93818) (#94631)
* simplify field format editor rendering, fixes switching away from duration formatter
2021-03-15 17:20:49 -04:00
Anton Dosov
9b353ee9f9
[Search Sessions] Search session example app functional test (#92133) (#94570)
# Conflicts:
#	test/scripts/jenkins_build_plugins.sh
#	test/scripts/jenkins_ci_group.sh
#	x-pack/scripts/functional_tests.js
2021-03-15 12:09:58 -04:00
Anton Dosov
26cb5b90a3
Fix importing dashboards created before ~6.1.0 (#94332) (#94565) 2021-03-15 11:13:39 -04:00
Matthew Kime
6e657baac7
Add runtime field functional test (#93710) (#94373)
Add runtime fields editor functional test
2021-03-10 19:06:37 -05:00
Rashmi Kulkarni
f6e139f1af
Unskipping Dashboard listing functional test (#93843) (#94208)
* fixes https://github.com/elastic/kibana/issues/74449

* unskipping to check the flakiness
2021-03-09 20:35:19 -08:00
Wylie Conlon
5c001f8443
Support for number, date and IP range data types (#76971) (#94001)
* Support for number, date and IP ranges

* Update tests

* Ranges don't work with range agg

* Fix test case

* Allow Discover to create range filters

* Supports ranges in Visualize, KQL, remove Lens support

* Fix test mappings

* Bring back field cache to work around bug

* Fix some tests

* Fix test expectation

* Respond to review comments

* Fix type error

* Remove added sample data

* Fix api_docs

* Fix test
2021-03-08 18:03:26 -05:00
Lukas Olson
6d762717d1
[KQL] Use cache and other performance improvements (#93319) (#93972)
* [KQL] Use cache and other performance improvements

* Fix test

* Fix jest tests

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-03-08 14:36:14 -05:00
Kibana Machine
2c3efd35a5
Enable APM storybook publishing (#93353) (#93964)
Changes to fix APM's Storybook setup were made in #93087 and #93294. This re-enables it and fixes a couple places where we weren't using a theme provider.

Co-authored-by: Nathan L Smith <nathan.smith@elastic.co>
2021-03-08 13:57:11 -05:00
Kibana Machine
564079e00b
wait for index pattern button to be enabled (#93677) (#93842)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

Co-authored-by: Lee Drengenberg <lee.drengenberg@elastic.co>
2021-03-05 19:47:39 -05:00
Kibana Machine
c7504737fd
[Telemetry] Fix flaky "after" delete (#93636) (#93753)
Co-authored-by: Alejandro Fernández Haro <alejandro.haro@elastic.co>
2021-03-05 07:23:09 -05:00
Nick Partridge
3c3e63f975
[XY Charts] fix partial histogram endzones annotations (#93091) (#93640) 2021-03-04 14:16:59 -05:00
Wylie Conlon
fd98aca6c3
[Discover] Fix link from dashboard saved search to Discover (#92937) (#93499)
* [Discover] Fix link from dashboard saved search to Discover

* Fix tests that weren't fully testing the navigation

* Fix snapshot

* Fix test navigation to context app by reverting to previous

* Unskip functional test and fix issue in data grid

* Respond to review comments

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-03-03 21:52:46 -05:00
Wylie Conlon
2faf3f428b
Fix expanding document when using saved search data grid (#92999) (#93522)
Co-authored-by: Matthias Wilhelm <matthias.wilhelm@elastic.co>
2021-03-03 19:00:41 -05:00
Wylie Conlon
ab13e4c9fa
[7.x] [Index patterns] Guarantee order of fields in flattenHits (#93344) (#93483)
* [Index patterns] Guarantee order of fields in flattenHits (#93344)

* [Discover] Guarantee order of fields in table preview

* Remove comments

* Fix test that relied on discover ordering

* Fix ordering of test
# Conflicts:
#	test/functional/apps/discover/_large_string.ts
#	x-pack/test/functional/apps/security/doc_level_security_roles.js
#	x-pack/test/functional/apps/security/field_level_security.js

* Update tests

* Fix whitespace
2021-03-03 17:17:11 -05:00
Rashmi Kulkarni
51bab14d9a
Test huge fields functional test (#93334) (#93461)
* fixes https://github.com/elastic/kibana/issues/74449

* fix for unskipping test huge fields functional test

* fix eslint
2021-03-03 14:18:33 -05:00
Kibana Machine
447a04c704
[ci] separate checks done in bootstrap as individual tasks (#93329) (#93446)
(cherry picked from commit b790f4ca1761bc1fab7818318213833a9c7d092f)

Co-authored-by: spalger <spalger@users.noreply.github.com>

Co-authored-by: Spencer <email@spalger.com>
Co-authored-by: spalger <spalger@users.noreply.github.com>
2021-03-03 13:03:00 -05:00
Maja Grubic
9f002eda06
[Search Embeddable] Add highlighting when searching (#93178) (#93372)
* [Search Embeddable] Add highlighting when searching

* Adding a functional test
2021-03-03 05:03:55 -05:00
Devon Thomson
870a529d34
[Time to Visualize] Disable Visualize URL Tracker When Linked to OriginatingApp (#92917) (#93251)
* changed url tracker for visualize to not save when linked to originating app
2021-03-02 13:20:14 -05:00
Alejandro Fernández Haro
dfb217bf2e
[7.x] [Telemetry] Full schema definition (#90273) (#93187)
* [Telemetry] Full `schema` definition (#90273)

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
# Conflicts:
#	test/api_integration/apis/telemetry/telemetry_local.ts

* Normalize test arguments with `master`

* Normalize to `master` the `/api/settings` FTR tests
2021-03-02 12:55:20 -05:00
Uladzislau Lasitsa
0772e207a2
Control round and decimal places in Gauge Visualization when using aggregate functions like average (#91293) (#93014)
* Add field for providing format in percentage mode

* Fix CI

* Add tests

* Fix ci

* Fix some remarks

* Fix ci

* Fix some remarks

* Fix ci

* Fix width

* Fix some remarks

* Fix text

* Fix i18n

* Remove unneeded import

* Remove unneeded code

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-03-01 09:42:53 -05:00
Kibana Machine
f6e6149e66
[kbn/test] add import/export support to KbnClient (#92526) (#92935)
Co-authored-by: Tre' Seymour <wayne.seymour@elastic.co>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: spalger <spalger@users.noreply.github.com>

Co-authored-by: Spencer <email@spalger.com>
Co-authored-by: Tre' Seymour <wayne.seymour@elastic.co>
Co-authored-by: spalger <spalger@users.noreply.github.com>
2021-02-25 20:34:11 -05:00
Rashmi Kulkarni
357cbe0a2f
Test fix management scripted field filter functional test and unskip it (#92756) (#92924)
* fixes https://github.com/elastic/kibana/issues/74449

* unskipping the functional test, removing the unload and adding an empty kibana in the after method
2021-02-25 19:21:09 -05:00
Wylie Conlon
953b9ad5fe
[Discover] Fix persistence of "hide/show chart" in saved search (#92731) (#92894) 2021-02-25 16:28:14 -05:00
Anton Dosov
9ef5f01872
Fix navigating from discover single document view back to discover (#92463) (#92637) 2021-02-24 12:20:12 -05:00
Devon Thomson
d0d6d3923c
[Dashboard] Remove Multiple History Entries & Stay in Edit Mode on Save As (#92105) (#92440)
* made save as stay in edit mode when not navigating to another dashboard. Removed extra history entires from save
2021-02-23 13:14:05 -05:00
Wylie Conlon
7b835f980c
[TSVB] Stop inserting zeroes for null series (#90861) (#92432)
* [TSVB] Stop inserting zeroes for null series

* Replace empty default value with hyphen

* Stop treating 0 as false

* Fix test cases

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-02-23 12:42:56 -05:00
Rudolf Meijering
d381d48645
v1 migrations: drop fleet-agent-events during a migration (#92188) (#92371)
* v1 migrations: drop fleet-agent-events during a migration

* Add TODO to fleet to make it clear that fleet-agent-events should not be used

* Fix test
2021-02-23 07:54:57 -05:00
Daniil
76ca536537
[Data Table] Fix visualization layout in split mode (#91799) (#92263)
* Fix table vis layout in split mode

* Stick pagination at the bottom

* Fix functional tests

* Fix jest test

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-02-23 03:27:20 -05:00