Commit graph

866 commits

Author SHA1 Message Date
Joe Portner
7053f5b16b
Legacy url conflict UI improvements (#114172) (#114382)
# Conflicts:
#	docs/development/core/public/kibana-plugin-core-public.doclinksstart.md

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-10-09 18:50:51 -04:00
Kibana Machine
c854dfdbf8
[Fleet] Add installed integration callouts (#113893) (#114409)
Co-authored-by: Clint Andrew Hall <clint@clintandrewhall.com>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

Co-authored-by: Thomas Neirynck <thomas@elastic.co>
Co-authored-by: Clint Andrew Hall <clint@clintandrewhall.com>
2021-10-09 05:15:04 -04:00
Lisa Cawley
1e8f59a88c
[7.x] Add client URLs to documentation link service (#114047) 2021-10-06 15:45:06 -04:00
Pierre Gayvallet
7693195341
[7.x] Expose current branch and version to config deprecation providers (#113600) (#114067)
* Expose current `branch` and `version` to config deprecation providers (#113600)

* Expose deprecation context to config deprecations

* fix import

* add correct doc annotations

* fix another test file

* update generated doc

* fix yet another test file

* fix more types

* add proper mock

* fix import

* lint ?

* restore changes to files removed in master
2021-10-06 08:06:17 -04:00
Pierre Gayvallet
102822f4fd
[7.x] add SavedObjectType.management.displayName (#113091) (#113249)
* add `SavedObjectType.management.displayName` (#113091)

* add `SavedObjectType.management.displayName`

* fix unit tests

* add FTR test

* update generated doc

* also update labels

* fix unit tests
# Conflicts:
#	src/plugins/saved_objects_management/public/management_section/objects_table/components/flyout.test.tsx
#	src/plugins/saved_objects_management/public/management_section/objects_table/components/flyout.tsx
#	src/plugins/saved_objects_management/public/management_section/objects_table/saved_objects_table.test.tsx
#	src/plugins/saved_objects_management/public/management_section/objects_table/saved_objects_table.tsx
#	src/plugins/saved_objects_management/public/management_section/saved_objects_table_page.tsx

* fix types

* fix allowedTypes usage

* fix unit tests
2021-09-28 16:03:09 -04:00
Yulia Čech
a85f7a5361
[Upgrade Assistant] Batch reindex docs (#112960)
* [UA] Added batch reindexing docs link to the ES deprecations page. Added a link from "batch reindexing" docs page to "start or resume reindex" docs page and from there to ES reindexing docs page. Also renamed "reindexing operation" to "reindexing task" for consistency.

* [Upgrade Assistant] Added docs build files

* Update x-pack/plugins/upgrade_assistant/public/application/components/es_deprecations/es_deprecations.tsx

Co-authored-by: James Rodewig <40268737+jrodewig@users.noreply.github.com>

* Update x-pack/plugins/upgrade_assistant/public/application/components/es_deprecations/es_deprecations.tsx

Co-authored-by: James Rodewig <40268737+jrodewig@users.noreply.github.com>

* [Upgrade Assistant] Added review suggestions and fixed eslint issues

Co-authored-by: James Rodewig <40268737+jrodewig@users.noreply.github.com>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-09-28 10:26:49 +02:00
Kibana Machine
2937c7d2c3
[SOM] Add visibleInManagement option to management metadata (#112073) (#112639)
* implement SavedObjectsTypeManagementDefinition.visibleInManagement

* update generated doc

* improve FTR tests

* fix FTR test

Co-authored-by: Pierre Gayvallet <pierre.gayvallet@gmail.com>
2021-09-21 07:51:22 -04:00
Tyler Smalley
c16480e849
[7.x][DX] Upgrade prettier to v2.4.0 (#112359) (#112524)
Signed-off-by: Tyler Smalley <tyler.smalley@elastic.co>
2021-09-19 22:34:46 -07:00
Kibana Machine
b34f98695a
[7.x] Add SavedObjectsClient.bulkResolve (#112025) (#112486)
* Add SavedObjectsClient.bulkResolve (#112025)

* Fix type error

Co-authored-by: Joe Portner <5295965+jportner@users.noreply.github.com>
2021-09-16 23:54:56 +00:00
Kibana Machine
28b32b0aa1
[core.metrics] Add support for multiple processes in ops metrics & stats API; deprecate process field (#109820) (#112108)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

Co-authored-by: Ahmad Bamieh <ahmadbamieh@gmail.com>
2021-09-14 12:13:17 -04:00
Uladzislau Lasitsa
7c49a2d7b7
[7.x] Timelion App removal (#110255) (#111851)
* 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>

* Fix CI

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Alexey Antonov <alexwizp@gmail.com>
2021-09-10 15:57:40 -04:00
Lisa Cawley
5b88ab7661
Replace hard-coded links in infra alerting (#111072) (#111786) 2021-09-09 16:37:56 -04:00
Lisa Cawley
56cb2fdd36
[7.x] Replace hard-coded doc links in uptime #111075 (#111576) 2021-09-08 12:57:33 -07:00
Kibana Machine
43d55d95dd
add hasHeaderBanner$ API to chrome (#111248) (#111391)
* add hasHeaderBanner$ API to chrome

* update generated doc

Co-authored-by: Pierre Gayvallet <pierre.gayvallet@gmail.com>
2021-09-07 12:15:29 -04:00
István Zoltán Szabó
e7aef42036
[APM] Uses doc link service instead of ElasticDocsLink for linking custom links (#111149) (#111334) 2021-09-07 07:28:42 -04:00
István Zoltán Szabó
c9e42c92ea
[APM] Uses doc link service instead of ElasticDocsLink for linking dropped transaction spans (#110964) (#111315) 2021-09-07 04:50:39 -04:00
István Zoltán Szabó
2cace2f7ec
[APM] Uses doc link service instead of ElasticDocsLink for linking upgrading info (#111155) (#111293) 2021-09-06 13:35:12 -04:00
István Zoltán Szabó
17d06c8a07
[APM] Uses doc link service instead of ElasticDocsLink for linking metadata (#110992) (#111282) 2021-09-06 11:15:17 -04:00
Lisa Cawley
7b30aec2e2
[APM] Use doc link service instead of ElasticDocsLink (#109027) (#110873) 2021-09-01 17:37:05 -04:00
Ahmad Bamieh
f85a7b9e7e
[7.x] [Core deprecations] Add title field to deprecation info (#109840) (#110776)
* merge conflicts

* fix snapshot
2021-09-01 12:06:21 -04:00
Sergi Massaneda
9e6a2821c9
[7.x] [RAC] Remove rbac on security solution side (#110472) (#110765)
* [RAC] Remove rbac on security solution side (#110472)

* wip to remove rbac

* Revert "[Cases] Include rule registry client for updating alert statuses (#108588)"

This reverts commit 1fd7038b34.

This leaves the rule registry mock changes

* remove rbac on Trend/Count alert

* update detection api for status

* remove @kbn-alerts packages

* fix leftover

* Switching cases to leverage update by query for alert status

* Adding missed files

* fix bad logic

* updating tests for use_alerts_privileges

* remove index alias/fields

* fix types

* fix plugin to get the right index names

* left over of alis on template

* forget to use current user for create/read route index

* updated alerts page to not show table when no privileges and updates to tests

* fix bug when switching between o11y and security solution

* updates tests and move to use privileges page when user tries to access alerts without proper access

* updating jest tests

* pairing with yara

* bring back kbn-alerts after discussion with the team

* fix types

* fix index field for o11y

* fix bug with updating index priv state

* fix i18n issue and update api docs

* fix refresh on alerts

* fix render view on alerts

* updating tests and checking for null in alerts page to not show no privileges page before load

* fix details rules

Co-authored-by: Jonathan Buttner <jonathan.buttner@elastic.co>
Co-authored-by: Yara Tercero <yara.tercero@elastic.co>
# Conflicts:
#	x-pack/plugins/security_solution/cypress/integration/detection_alerts/alerts_details.spec.ts

* skip test

Co-authored-by: Xavier Mouligneau <189600+XavierM@users.noreply.github.com>
2021-09-01 10:31:01 -04:00
Stacey Gammon
e7dbd91d3d
[7.x] Make owner attribute required on kibana.json (#108231) (#110215)
* Make owner attribute required on kibana.json (#108231)

* make owner attribute required

* Add owner properties in more places

* add test for owner attribute

* add error check too in the test

* Fix tests

* fix tests and update docs

* wip

* More test fixes

* Fix All The Errorz

* Adding more owner attributes

* Update x-pack/test/saved_object_api_integration/common/fixtures/saved_object_test_plugin/kibana.json

Co-authored-by: Larry Gregory <lgregorydev@gmail.com>

* Update x-pack/test/ui_capabilities/common/fixtures/plugins/foo_plugin/kibana.json

Co-authored-by: Larry Gregory <lgregorydev@gmail.com>

* commeeeooonnnn

* Update docs

* soooo many kibanajsons

* adjust plugin generator to add an owner

* Add owner to the plugin generator scripts

* update snapshot

* Fix snapshot

* review updates

Co-authored-by: Larry Gregory <lgregorydev@gmail.com>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
# Conflicts:
#	dev_docs/tutorials/building_a_plugin.mdx
#	src/dev/code_coverage/ingest_coverage/integration_tests/fixtures/test_plugin/kibana.json
#	test/common/fixtures/plugins/coverage/kibana.json

* Update kibana.json

Add owner attribute

* Remove this json file. It was deleted.

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-08-31 16:19:52 -04:00
Matthew Kime
3d3cb0c46f
Turn off api changes for app services and remove legacy docs for App Services plugins (#109927) (#110378)
* Turn off legacy docs build script for app services plugins

* Remove legacy docs

* remove all *.api.md (minus core)

Co-authored-by: Stacey Gammon <gammon@elastic.co>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-08-27 11:54:23 -04:00
Kibana Machine
247f6102b2
bulkGet saved objects across spaces (#109967) (#110270)
Co-authored-by: Joe Portner <5295965+jportner@users.noreply.github.com>
2021-08-26 13:56:29 -04:00
Kibana Machine
8875ce2a9a
[Lens] Inspect flyout should be available in editor mode. (#109656) (#110243)
* [Lens] Inspect flyout should be available in editor mode.

* fix typo

* add test

* add functional tests for inspector

* toMatchInlineSnapshot -> toMatchSnapshot

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

Co-authored-by: Alexey Antonov <alexwizp@gmail.com>
2021-08-26 12:42:45 -04:00
Jean-Louis Leysens
3797202169
[Reporting/Dashboard] Update integration to use v2 reports (#108553) (#110177)
* very wip, updating dashboard integration to use v2 reports. at the moment time filters are not working correctly

* added missing dependency to hook

* added tests and refined ForwadedAppState interface

* remove unused import

* updated test because generating a report from an unsaved report is possible

* migrated locator to forward state on history only, reordered methods on react component

* remove unused import

* update locator test and use panel index number if panelIndex does not exist

* ensure locator params are serializable

* - moved getSerializableRecord to locator.ts to ensure that the
  values we get from it will never contain something that cannot
  be passed to history.push
- updated types to remove some `& SerializableRecord` instances
- fixed embeddable drilldown Jest tests given that we no longer
  expect state to be in the URL

* update generated api docs

* remove unused variable

* - removed SerializedRecord extension from dashboard locator params
  interface
- factored out state conversion logic from the locator getLocation

* updated locator jest tests and SerializableRecord types

* explicitly map values to dashboardlocatorparams and export serializable params type

* use serializable params type in embeddable

* factored out logic for converting panels to dashboard panels map

* use "type =" instead of "interface"

* big update to locator params: type fixes and added options key

* added comment about why we are using "type" alias instead of "interface" declaration

* simplify is v2 job param check

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

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-08-26 06:12:37 -04:00
Kibana Machine
121d28c589
Remove unused deprecated api (#109921) (#110089)
* remove unused deprecated apis

* Update legacy docs

Co-authored-by: Stacey Gammon <gammon@elastic.co>
2021-08-25 14:28:50 -04:00
Kibana Machine
229d735fee
[IndexPatterns] Clean up StubIndexPattern (#108555) (#110026)
Co-authored-by: Anton Dosov <anton.dosov@elastic.co>
2021-08-25 08:55:33 -04:00
Kibana Machine
94b12f1af4
[Data][Es Query] Use ES types in Filters (#108378) (#109793)
* es-query types

* jest and lint

* cc

* options

* type

* types for kuery FUNCTIONS

* doc

* types for filters

* sec fixes

* filtersss

* typey type

* typey type

* comparator options

* test typescript

* test

* fixes

* test types

* test

* cr

* cleanup a bit more

* Jest fix + types

* Remove geo bounding box and geo polygon filters

* delete geo filters

* geo

* geo

* Fix tests \_0_/

* doc

* types and fixes

* jests

* ts

* Remove geo bounding box and geo polygon filters

* delete geo filters

* delete geo filters

* geo

* remove geo docs

* ts

* plg ts

* types

* cast

* Update types.ts

* Update create_threat_signal.ts

* Update packages/kbn-es-query/src/es_query/migrate_filter.ts

Co-authored-by: Lukas Olson <olson.lukas@gmail.com>

* Code review

* revert change

* docs

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Lukas Olson <olson.lukas@gmail.com>

Co-authored-by: Liza Katz <lizka.k@gmail.com>
Co-authored-by: Lukas Olson <olson.lukas@gmail.com>
2021-08-24 07:56:17 -04:00
Uladzislau Lasitsa
e4fa7e4936
[Saved Search] Interrupted Loading Throws Console Error (#108926) (#109775)
* Add check if embeddable was destroyed.

* Move isDestroyed inside SavedSearchEmbeddable

* Use destroyed variable from parent

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

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-08-24 06:05:04 -04:00
Aleh Zasypkin
6fe650d303
Cumulative set of the preboot stage adjustments (#108514) (#109646)
# Conflicts:
#	src/plugins/interactive_setup/server/elasticsearch_service.test.ts
#	src/plugins/interactive_setup/server/elasticsearch_service.ts
#	src/plugins/interactive_setup/server/routes/enroll.test.ts
#	src/plugins/interactive_setup/server/routes/enroll.ts
2021-08-23 11:22:31 -04:00
Kibana Machine
d17d2e7cea
Add multiple namespaces support to PIT search and finder (#109062) (#109603)
* initial modifications

* change approach for openPointInTime and add tests for spaces wrapper changes

* fix and add security wrapper tests

* fix export security FTR tests

* update generated doc

* add tests for PIT finder

* NIT

* improve doc

* nits

Co-authored-by: Pierre Gayvallet <pierre.gayvallet@gmail.com>
2021-08-23 08:22:55 -04:00
Anton Dosov
9e00e1e393
[IndexPatterns] No data experience to handle default Fleet assets (#108887) (#109511)
Co-authored-by: Josh Dover <1813008+joshdover@users.noreply.github.com>
# Conflicts:
#	docs/development/plugins/data/public/kibana-plugin-plugins-data-public.indexpatternsservice.md
#	docs/development/plugins/data/server/kibana-plugin-plugins-data-server.indexpatternsservice.md
#	src/plugins/data/public/public.api.md
#	src/plugins/data/server/server.api.md

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-08-21 05:10:53 -04:00
Lukas Olson
f087c755d1
[data.search] Handle warnings inside of headers (#103744) (#109298)
* [data.search] Handle warnings inside of headers

* Update docs

* Add tests

* Remove isWarningResponse

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

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-08-20 14:54:54 -04:00
Kibana Machine
ffad23b11c
Remove unused chrome APIs (#109204) (#109254)
* remove unused chrome APIs

* update generated doc

* fix tests

* fix tests bis

Co-authored-by: Pierre Gayvallet <pierre.gayvallet@gmail.com>
2021-08-20 15:38:19 +00:00
Kibana Machine
e7f12de27c
Remove LegacyRequest type from Core public API (#109243) (#109268)
* remove LegacyRequest from public API

* remove LegacyRequest from Security plugin API

* update docs

* remove an obsolete comment

Co-authored-by: Mikhail Shustov <restrry@gmail.com>
2021-08-19 13:34:32 -04:00
Mikhail Shustov
9f78d17e8f
[Elasticsearch] remove legacy es client (#107619) (#109144)
* remove legacy es client

* update docs

* uninstall elasticsearch package

* fix global_search tests

* ad-hoc fix to address bazel failure. authored by Tiago

* update docs

* remove elasticsearch import. errors are muted with @ts-ignore

* Update WORKSPACE.bazel

Co-authored-by: Tiago Costa <tiagoffcc@hotmail.com>

* update docs

* fix problem when dev mock already mocked client

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Tiago Costa <tiagoffcc@hotmail.com>
# Conflicts:
#	src/core/server/elasticsearch/legacy/scoped_cluster_client.test.ts
2021-08-18 15:41:25 -04:00
Liza Katz
d3a9cc540d
[Data cleanup] Remove geo filters (#109097) (#109118)
* Remove geo bounding box and geo polygon filters

* delete geo filters

* delete geo filters

* geo

* remove geo docs
2021-08-18 13:41:22 -04:00
Patryk Kopyciński
a69287ff58
[Cases] Add Lens markdown plugin (#96703) (#109071)
# Conflicts:
#	x-pack/plugins/observability/public/components/shared/exploratory_view/header/header.test.tsx
#	x-pack/plugins/observability/public/components/shared/exploratory_view/header/header.tsx
#	x-pack/plugins/observability/public/plugin.ts
2021-08-18 13:27:47 -04:00
Katrin Freihofner
85be33c3c6
styling updates to alerts table and alignment of elements (#108507) (#109049)
Co-authored-by: Kerry Gallagher <471693+Kerry350@users.noreply.github.com>

Co-authored-by: Kerry Gallagher <471693+Kerry350@users.noreply.github.com>
2021-08-18 06:38:51 -04:00
Kibana Machine
6acf24aafd
Improves not found response handling in the saved objects repository (#108749) (#108954)
Co-authored-by: Christiane (Tina) Heiligers <christiane.heiligers@elastic.co>
2021-08-17 18:11:44 -04:00
Kibana Machine
08202ff2b1
[index pattern management] load index pattern list without loading field lists (#108823) (#108929)
* don't load field list for index pattern list

Co-authored-by: Matthew Kime <matt@mattki.me>
2021-08-17 13:27:51 -04:00
Alexey Antonov
8ea47cf769
[Lens] Make lens_time_scale function to pick timezone from the context (#108366) (#108892)
Part of: #97134

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

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-08-17 11:16:03 -04:00
Kibana Machine
70d8ef3573
[Data][Es Query] Use ES types in Kuery functions (#108367) (#108848)
* es-query types

* jest and lint

* cc

* options

* type

* types for kuery FUNCTIONS

* doc

* sec fixes

* typey type

* test typescript

* test

* fixes

* test

* cr

* cleanup a bit more

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

Co-authored-by: Liza Katz <lizka.k@gmail.com>
2021-08-17 12:18:04 +00:00
Alison Goryachev
58ad478688
[Upgrade Assistant] Create new status endpoint (#105998) (#108687) 2021-08-16 11:16:48 -04:00
Alison Goryachev
d96cffad3d
[Index pattern field editor] Add preview for runtime fields (#100198) (#108611) 2021-08-13 21:31:21 -04:00
Devon Thomson
6c3580b527
[Dashboard] [Embeddable] Add Ability to Defer Embeddable Loaded State (#107227) (#108459)
Added defer embeddable loading flag to embeddable for embeddables which aren't finished loading after their constructor is finished
2021-08-12 20:06:43 -04:00
Kibana Machine
9203a5918b
[Data][Es Query] Use ES types instead of DslQuery (#108290) (#108447)
* es-query types

* jest and lint

* cc

* options

* type

* type

Co-authored-by: Liza Katz <lizka.k@gmail.com>
2021-08-12 23:25:46 +00:00
Joe Portner
378bc7674b
Sharing saved objects developer guide (#107099) (#108132)
# Conflicts:
#	docs/developer/advanced/index.asciidoc
2021-08-10 22:59:45 -04:00
Kibana Machine
e05517cab9
Adds new SavedObjectsRespository error type for 404 that do not originate from Elasticsearch responses (#107301) (#108037)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

Co-authored-by: Christiane (Tina) Heiligers <christiane.heiligers@elastic.co>
2021-08-10 20:53:52 +00:00