Commit graph

892 commits

Author SHA1 Message Date
Kibana Machine
2c4aaf67b6
[Es query] Move to package (#103530) (#106417)
May the forces of bootstrapping helps us 🙏🏻 😉

Co-authored-by: Liza Katz <lizka.k@gmail.com>
2021-07-21 13:32:55 -04:00
Aleh Zasypkin
9aa5c806e1
Introduce preboot lifecycle stage (#103636) (#106194)
# Conflicts:
#	.github/CODEOWNERS
#	src/core/server/ui_settings/ui_settings_service.ts
2021-07-20 03:11:45 -04:00
Kibana Machine
50d6106e56
Instrument vis_type_vislib, lens and vis_type_timeseries with execution context service (#105206) (#106117)
Co-authored-by: Josh Dover <1813008+joshdover@users.noreply.github.com>

Co-authored-by: Mikhail Shustov <restrry@gmail.com>
Co-authored-by: Josh Dover <1813008+joshdover@users.noreply.github.com>
2021-07-19 19:19:19 +00:00
Michael Dokolin
b0b92a97ac
[Partial Results] Update esaggs expressions function to return partial results (#105620) (#106076)
* Update `esaggs` expressions function to support partial results
* Add partial results throttling in the expressions loader
2021-07-19 08:55:07 -04:00
Peter Pisljar
5ef9026ae0
filterManager PersistableStateService implementation (#104897) (#105972) 2021-07-16 13:14:00 -04:00
Kibana Machine
fb50f83041
[rollup index patterns] don't show fields not present in field caps response (#105533) (#105958)
* remove fields not present in field caps response

Co-authored-by: Matthew Kime <matt@mattki.me>
2021-07-16 12:21:30 -04:00
Kibana Machine
f1e89f550a
[Lens][Visualize][Inspector][Reporting] Unified check for CSV cells for known formula characters (and value escaping more in general) (#105221) (#105925)
*  Unify escaping logic for csv export

* 📝 Update api doc

*  Fix test with new escape logic

* 👌 First batch of feedback

* 💬 Fix typo

* 👌 Memoize function

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

Co-authored-by: Marco Liberati <dej611@users.noreply.github.com>
2021-07-16 07:07:19 -04:00
Oliver Gupte
37c61092c9
[7.x] [APM] Kuery bar gives invalid suggestions (#105132) (#105660)
* [APM] Kuery bar gives invalid suggestions (#105132)

* adding method to support terms_agg

* adding more filters to kuery bar

* addressing PR comments

* fixing docs

* addressing PR comments

* moving file to common

* addressing PR comments

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
# Conflicts:
#	x-pack/plugins/apm/server/lib/search_strategies/correlations/get_query_with_params.ts

* removing extra line

Co-authored-by: Cauê Marcondes <55978943+cauemarcondes@users.noreply.github.com>
Co-authored-by: cauemarcondes <caue.marcondes@elastic.co>
2021-07-14 18:03:19 -04:00
Kibana Machine
72a082eba4
[Lens][Inspector] Enable inspector to display multiple requests for multiple layers (#105224) (#105605)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

Co-authored-by: Marco Liberati <dej611@users.noreply.github.com>
2021-07-14 11:58:49 -04:00
Kibana Machine
dedbcdb391
Rollup index pattern list fixes (#105458) (#105587)
* fix index pattern field list and improve typescript

Co-authored-by: Matthew Kime <matt@mattki.me>
2021-07-14 10:18:19 -04:00
Larry Gregory
6a47b49f83
Support authenticating to Elasticsearch via service account tokens (#102121) (#105286)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
# Conflicts:
#	src/core/server/elasticsearch/elasticsearch_config.ts
2021-07-12 16:34:44 -04:00
Peter Pisljar
026a7b4956
persistable state migrations (#103680) (#104764) 2021-07-07 18:53:05 -04:00
Mikhail Shustov
73adcb4511
Add execution context service (#102039) (#104686)
* add execution context service on the server-side

* integrate execution context service into http service

* add integration tests for execution context + http server

* update core code

* update integration tests

* update settings docs

* add execution context test plugin

* add a client-side test

* remove requestId from execution context

* add execution context service for the client side

* expose execution context service to plugins

* add execution context service for the server-side

* update http service

* update elasticsearch service

* move integration tests from http to execution_context service

* integrate in es client

* expose to plugins

* refactor functional tests

* remove x-opaque-id from create_cluster tests

* update test plugin package.json

* fix type errors in the test mocks

* fix elasticsearch service tests

* add escaping to support non-ascii symbols in description field

* improve test coverage

* update docs

* remove unnecessary import

* update docs

* Apply suggestions from code review

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

* address comments

* remove execution context cleanup

* add option to disable execution_context service on the server side

* put x-opaque-id test back

* put tests back

* add header size limitation to the server side as well

* fix integration tests

* address comments

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

Co-authored-by: Josh Dover <1813008+joshdover@users.noreply.github.com>
2021-07-07 13:55:16 -04:00
Kibana Machine
e65f240bb5
[Search Session] Fix dangling search sessions (#102927) (#104281)
Co-authored-by: Anton Dosov <anton.dosov@elastic.co>
2021-07-05 07:36:46 -04:00
Michael Dokolin
c73e13d744
[Expressions] Update expressions public API to expose partial results support (#102403) (#104210)
* Add partial result flag to the execution result
* Update expressions plugin run method to return observable
* Update data getter in the execution contract to return observable
* Update the expression loader to take into account the partial results flag
2021-07-01 18:57:17 -04:00
Kibana Machine
30819d40df
[7.x] [Query] Es query/field base (#103177) (#103872)
* [Query] Es query/field base (#103177)

* remove es query dependency on format.convert

* FieldBase

* fix types

* types

* Fix type imports

* test types

* fix jest

* rename

* docs

* comment

* docs

Co-authored-by: Liza Katz <lizka.k@gmail.com>
Co-authored-by: Liza K <liza.katz@elastic.co>
2021-06-30 15:30:47 +00:00
Lisa Cawley
7c5d78965b
[7.x] [SECURITY] Adds security links to doc link service (#103830) 2021-06-30 02:44:16 -07:00
Lisa Cawley
ec5cb9a12a
[7.x] Adds ECS guide to doc links service (#103819) 2021-06-29 21:58:12 -07:00
Kibana Machine
06313f3b94
Sharing saved objects phase 3.5 (#100424) (#103575)
Co-authored-by: Joe Portner <5295965+jportner@users.noreply.github.com>
2021-06-28 20:33:16 -04:00
Alexey Antonov
98c5543866
[7.x] [TSVB] Fix references to the index pattern are not embedded when exporting a saved object (#103255) (#103508)
* [TSVB] Fix references to the index pattern are not embedded when exporting a saved object (#103255)

* [TSVB] Importing a dashboard with only TSVB viz on another space, breaks the dashboard

Closes: #103059

* move index-pattern to constant

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

* fix CI

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-06-28 14:56:50 -04:00
Kibana Machine
2998d9c971
Add warning toast when server.publicBaseUrl not configured correctly (#85344) (#103489)
Co-authored-by: Josh Dover <1813008+joshdover@users.noreply.github.com>
2021-06-28 12:27:54 -04:00
Liza Katz
67ce4861eb
[Query] Use a minimal index pattern interface for es query (#102364) (#103453)
* Move JSON utils to utils package

* Imports from tests

* delete

* split package

* docs

* test

* test

* imports

* minimal index pattern

* move some functions out and use miniaml ip in all es-kuery

* docs

* docs

* rename

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
# Conflicts:
#	docs/development/plugins/data/public/kibana-plugin-plugins-data-public.iindexpattern.md
#	src/plugins/data/public/public.api.md
2021-06-28 07:05:55 -04:00
Pierre Gayvallet
b02ddafaf4
Allow additive csp configuration (#102059) (#103405)
* add additive csp configuration

* add unit tests for new class

* fix types

* adapt test utils

* fix tests

* more unit tests on config

* generated doc

* review comments

* update ascii doc

* update ascii doc links

* automatically add single quotes for keywords

* add missing csp directives

* add more tests

* add additional settings to asciidoc

* add null-check

* revert test config props

* fix usage collection usage

* some review comments

* last review comments

* add kibana-docker variables

* try to fix doc reference

* try to fix doc reference again

* fix tests
# Conflicts:
#	src/core/server/csp/config.ts
#	src/core/server/csp/csp_config.test.ts
2021-06-25 16:54:07 -04:00
Kibana Machine
4ee24294a7
[Lens] Enable actions on Lens Embeddable (#102038) (#103398)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

Co-authored-by: Marco Liberati <dej611@users.noreply.github.com>
2021-06-25 11:02:34 -04:00
Kibana Machine
a6985b20ae
Add timeouts and setup enforcement for custom plugins statuses (#77965) (#103149)
Co-authored-by: Josh Dover <1813008+joshdover@users.noreply.github.com>
2021-06-23 16:02:07 -04:00
Kibana Machine
056cf014c0
Allow restored session to run missing searches and show a warning (#101650) (#103078)
* Allow restored session to run missing searches and show a warning

* tests and docs

* improve warning

* tests for new functionality
NoSearchIdInSessionError type

* managmeent tests

* Update texts

* fix search service pus

* link to docs

* imports

* format import

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

Co-authored-by: Liza Katz <lizka.k@gmail.com>
2021-06-23 10:23:04 -04:00
Alison Goryachev
92c9a0e096
[Rollups] Migrate to new page layout (#102268) (#102975) 2021-06-22 19:37:08 -04:00
Kibana Machine
cb684f5a80
Allow initialNamespaces to be used for isolated types (#102585) (#102985)
Co-authored-by: Joe Portner <5295965+jportner@users.noreply.github.com>
2021-06-22 16:41:36 -04:00
Kibana Machine
db838743f5
[Lens] Fix time shift bug (#102528) (#102752)
Co-authored-by: Joe Reuter <johannes.reuter@elastic.co>
2021-06-21 12:57:45 -04:00
Kibana Machine
4f99200ccd
[Fleet] Use docLinks service to link to the doc (#102660) (#102741)
Co-authored-by: Nicolas Chaulet <nicolas.chaulet@elastic.co>
2021-06-21 11:50:52 -04:00
Pierre Gayvallet
9cf01f1da5
[7.x] add isExportable SO export API (#101860) (#102698)
* add `isExportable` SO export API (#101860)

* add `isExportable` SO export API

* add warning when export contains excluded objects

* add FTR test

* fix API integration assertions

* lint

* fix assertions again

* doc

* update generated doc

* fix esarchiver paths

* use maps instead of objects

* SavedObjectsExportablePredicate is no longer async

* more docs

* generated doc

* use info instead of warning when export contains excluded objects

* try/catch on isExportable call and add exclusion reason

* add FTR test for errored objects

* log error if isExportable throws

* fix dataset for 7.x
2021-06-21 06:15:45 -04:00
Kibana Machine
243b167d8a
[Kuery] Move json utils (#102058) (#102365)
* Move JSON utils to utils package

* Imports from tests

* delete

* split package

* docs

* test

* test

* imports

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

Co-authored-by: Liza Katz <lizka.k@gmail.com>
2021-06-16 13:24:44 -04:00
Kibana Machine
e40ade086d
Use export type instead of export to reduce bundle size (#101796) (#102344)
* Use export type instead of export to reduce bundle size

* Update legacy docs

* update docs again

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

Co-authored-by: Stacey Gammon <gammon@elastic.co>
2021-06-16 11:36:23 -04:00
Alexey Antonov
db1bd7ec03
Add telemetry for editor clicks events (#100664) (#102341)
* Track editor clicks events

Closes: #98949

* add create and open telemetries

* add telemetry for dashboard

* remove hardcoded originatingApp for lens

* DashboardConstants.DASHBOARDS_ID ->  DashboardConstants.DASHBOARD_ID

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

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-06-16 11:21:17 -04:00
Kibana Machine
658d6378c4
[Lens] Formula overall functions (#99461) (#102303)
Co-authored-by: Joe Reuter <johannes.reuter@elastic.co>
2021-06-16 06:57:24 -04:00
Pablo Machado
22f73f6ac4
[Core] Update getUrlForApp to support deepLinks (#102172) (#102300)
* [Core] Update getUrlForApp to support deepLinks

* Add unit tests to getUrlForApp with deepLinkId parameter
2021-06-16 06:07:09 -04:00
Michael Dokolin
f09704df30
[Expressions] Refactor expression functions to use observables underneath (#100409) (#101988) 2021-06-11 06:00:14 -04:00
Stacey Gammon
d2ee3daa6d
Support owner and description attributes inside the Manifest file, use in API docs (#101786) (#101841)
* Support owner and description in manifest file, add to mdx output for each plugin

* Update parse_kibana_platform_plugin.ts

* edit a couple kibana.jsons

* Update write_plugin_mdx_docs.ts

* update api docs

* Update core server manifest plugin types

* update core docs

* Fix type_check failure

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-06-10 15:18:24 -04:00
Michael Dokolin
1826554a8b
[Expressions] Create expressions function to get UI settings (#101317) (#101895) 2021-06-10 11:24:53 -04:00
Anton Dosov
af45343bee
[7.x] [Index Patterns] Runtime fields CRUD REST API (#101164) (#101770)
* [Index Patterns] Runtime fields CRUD REST API  (#101164)

Part of index pattern REST API
# Conflicts:
#	docs/development/plugins/data/public/kibana-plugin-plugins-data-public.indexpattern.md
#	docs/development/plugins/data/server/kibana-plugin-plugins-data-server.indexpattern.md

* fix bad docs merge
2021-06-09 12:37:53 -04:00
Sergi Massaneda
ecc3a30556
[Core][Navigation] Chrome nav display application deepLinks (#100590) (#101615)
* chrome nav allows deepLinks

* docs updated

* use ChromeNavLink.url to call navigateToUrl

* to_nav_link test cases added for deepLink parameter

* snapshots updated

* deep nav links functional test added

* AppNavOptions type encapsulation

* docs updated

* docs for AppNavOptions

* implement navigateToApp deepLinkId option

* app searchable flag implementation

* code cleaning and test case added

* use explicit type

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

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-06-08 13:16:24 -04:00
Mikhail Shustov
100394cfb6
[7.x] Update @elastic/elasticsearch to 8.0.0-canary13 (#98266) (#101595)
* Update @elastic/elasticsearch to 8.0.0-canary13 (#98266)

* bump @elastic/elasticsearch to canary.7

* address errors in core

* address errors in data plugin

* address errors in Alerting team plugins

* remove outdated messages in Lens

* remove unnecessary comments in ML

* address errors in Observability plugin

* address errors in reporting plugin

* address errors in Rule registry plugin

* fix errors in Security plugins

* fix errors in ES-UI plugin

* remove unnecessary union.

* update core tests

* fix kbn-es-archiver

* update to canary 8

* bump to v9

* use new typings

* fix new errors in core

* fix errors in core typeings

* fix type errors in data plugin

* fix type errors in telemetray plugin

* fix data plugin tests

* fix search examples type error

* fix errors in discover plugin

* fix errors in index_pattern_management

* fix type errors in vis_type_*

* fix errors in typings/elasticsearch

* fix type errors in actions plugin

* fix type errors in alerting and apm plugins

* fix type errors in canvas and cases

* fix errors in event_log

* fix type errors in ILM and ingest_pipelines

* fix errors in lens plugin

* fix errors in lists plugin

* fix errors in logstash

* fix errors in metrics_entities

* fix errors in o11y

* fix errors in watcher

* fix errors in uptime

* fix errors in upgrade_assistant

* fix errors in task_manager

* fix errors in stack_alerts

* fix errors in security_solution

* fix errors in rule_registry

* fix errors in snapshot_restore

* fix remaining errors

* fix search intergration tests

* adjust assetion

* bump version to canary.10

* adapt code to new naming schema

* use mapping types provided by the client library

* Revert "adjust assetion"

This reverts commit 19b8fe0464.

* fix so intergration tests

* fix http integration tests

* bump version to canary 11

* fix login test

* fix http integration test

* fix apm test

* update docs

* fixing some ml types

* fix new errors in data plugin

* fix new errors in alerting plugin

* fix new errors in lists plugin

* fix new errors in reporting

* fix or mute errors in rule_registry plugin

* more ML type fixes

* bump to canary 12

* fix errors after merge conflict

* additional ML fixes

* bump to canary 13

* fix errors in apm plugin

* fix errors in fleet plugin

* fix errors in infra plugin

* fix errors in monitoring plugin

* fix errors in osquery plugin

* fix errors in security solution plugins

* fix errors in transform plugin

* Update type imports for ES

* fix errors in x-pack plugins

* fix errors in tests

* update docs

* fix errors in x-pack/test

* update error description

* fix errors after master merge

* update comment in infra plugin

* fix new errors on xpack tests/

Co-authored-by: James Gowdy <jgowdy@elastic.co>
Co-authored-by: Dario Gieselaar <dario.gieselaar@elastic.co>
# Conflicts:
#	package.json
#	src/core/server/saved_objects/migrationsv2/integration_tests/migration.test.ts
#	test/common/services/saved_object_info.ts
#	x-pack/plugins/snapshot_restore/server/routes/api/repositories.ts
#	x-pack/plugins/snapshot_restore/server/routes/api/snapshots.ts
#	yarn.lock

* revert  @ts-expect-error changes in infra plugin

* update docs
2021-06-08 12:21:59 -04:00
Matthew Kime
725d413131
[7.x] [Index patterns] Deprecate scripted field API functions (#100907) (#101301)
* [Index patterns] Deprecate scripted field API functions (#100907)

* deprecate scripted field functions in index patterns api

* merge
2021-06-03 14:24:40 -04:00
Joe Reuter
22fa45a373
[Lens] Time shift metrics (#98781) (#101186) 2021-06-02 14:40:57 -04:00
Ahmad Bamieh
3e755ccf1f
[7.x] [Deprecations service] make correctiveActions.manualSteps required (#100997) (#101156)
* merge conflicts

* update deprecation message
2021-06-02 11:28:22 -04:00
Anton Dosov
4202cb42dc
[7.x] [Index Patterns] Fix return saved index pattern object (#101051) (#101134)
* [Index Patterns] Fix return saved index pattern object (#101051)

* update docs
2021-06-02 07:38:47 -04:00
Kibana Machine
3295128346
[Deprecations service] add deprecationType and use it in configs deprecations (#100983) (#101039)
Co-authored-by: Ahmad Bamieh <ahmadbamieh@gmail.com>
2021-06-01 09:05:09 -04:00
Anton Dosov
64017d65cc
[Index patterns] Default index pattern REST API (#100691) (#100798) 2021-05-27 14:00:43 -04:00
Lisa Cawley
7b977771d9
[7.x]Use documentation link service for index pattern field editor #100609 (#100708) 2021-05-26 12:30:35 -07:00
Kibana Machine
2028d54b3e
[Maps] filter dashboard by map extent (#99860) (#100690)
* [Maps] filter dashboard by map extent

* clean up

* remove warning from filter pill

* tslint

* API doc updates, i18n fixes, tslint

* only show context menu option in edit mode

* add functional test

* review feedback

* do not use search session when filtering by map bounds

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

Co-authored-by: Nathan Reese <reese.nathan@gmail.com>
2021-05-26 12:45:01 -04:00