Commit graph

688 commits

Author SHA1 Message Date
Lisa Cawley 68722313f2
Use documentation link service for runtime fields (#95256) 2021-03-26 11:28:42 -07:00
Anton Dosov d305e2769a
[Data] Unify autocomplete plugin (#95405)
Move KQL suggestions to data plugin
2021-03-26 17:45:43 +01:00
Pierre Gayvallet 32212644da
[Application Usage] use incrementCounter on daily reports instead of creating transactional documents (#94923)
* 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 08:11:35 +01:00
Peter Pisljar 1e87cef3e0
handling references for kibana_context and get_index_pattern expression functions (#95224) 2021-03-25 12:34:38 +01:00
Tomas Della Vedova 238791b942
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>
2021-03-25 04:47:16 -04:00
Luke Elmers 49078c82bc
[core.savedObjects] Add helper for using find with pit and search_after. (#92981) 2021-03-24 19:59:13 -04:00
Liza Katz 7f740831cb
Revert "use index patterns and search services for autocomplete (#92861)" (#95335)
This reverts commit 2ef7f3bd0c.
2021-03-24 22:16:38 +02:00
Joe Reuter f07b1722cb
[Lens] Implement filtered metric (#92589) 2021-03-24 11:44:23 +01:00
Shahzad 95b7635d7a
Expose filter item from data plugin (#94546)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-03-18 19:11:52 +01:00
Michael Dokolin e9568ceee1
Fix links to the numeral formatting (#94858)
* Fix links to the numeral formatting in the advanced settings (#84167)
* Fix a link to the numeral formatting in the index pattern field settings (#84167)
2021-03-18 16:12:30 +01:00
Anton Dosov 8820e00bba
[Search Session] Make session name editable (#94610) 2021-03-18 14:41:38 +01:00
Pierre Gayvallet 5669fac030
remove legacy doc links file (#94274)
* remove legacy doc links file

* remove entry from watch paths

* remove unused invalid link

* fix alerting.indexThreshold link

* fix more links

* update generated doc

* update generated doc
2021-03-17 22:05:02 +01:00
Liza Katz 2ef7f3bd0c
use index patterns and search services for autocomplete (#92861)
* use index patterns and search services for autocomplete

* imports

* extend DataRequestHandlerContext

* Catch error if index patterns service can't be created.

* doc

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-03-17 17:16:01 +02:00
James Rodewig 7cc9f01843
Update doc links for ingest pipelines app (#94742) 2021-03-17 10:14:42 -04:00
Tim Sullivan 067543b51b
App Services API updates for CSV Export (#94537)
* App Arch API updates for CSV Export

* add logging to show error cause from es

* revert logging the error in an inconsistent way
2021-03-16 09:34:03 -07:00
Zacqary Adam Xeper cda2fb3d5a
[Data UI] [Fleet] Add submitOnBlur functionality to QueryStringInput (#93819)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-03-15 14:33:49 -04:00
Lukas Olson 813e16f6ae
Fix search telemetry to only update SO periodically (#93130)
* Fix search telemetry to only update SO periodically

* Handle case when searches completed mid flight

* Fix error in resetting counters

* Update docs

* update docs

* Don't track restored searches

* Update docs

* Update docs

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Anton Dosov <anton.dosov@elastic.co>
2021-03-11 09:17:43 -07:00
Pierre Gayvallet 7d2c4d4d09
remove try auth mode (#94287)
* remove `try` auth mode

* update generated doc

* update generated doc

* adapt integration test
2021-03-10 20:21:39 +01:00
Michael Paul 426d495299
Fix "to to" spelling error (#93885)
* Fix "to to" spelling error

* Build API docs

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-03-10 17:46:31 +02:00
Pierre Gayvallet d0949121c8
Migrate /bootstrap.js endpoint to core (#92784)
* move bootstrap endpoint to core

* some initial cleanup

* hack around the 'try' auth status

* some UT

* more UT

* add try/catch around uISettings access

* add 'auth.isEnabled'

* remove dead files

* use `try` authent mode

* adapt UT

* revert themeTag movearound

* migrate apps route to core

* some cleanup

* nit

* add integration tests

* update generated doc

* add UT for /app route

* add etag IT

* nits

* remove auth.isEnabled API

* add tests on get_apm_config

* use string template instead of handlebars for bootstrap template

* improve plugin bundle tests

* update generated doc

* remove response.etag API

* update generated doc

* update generated doc

* update generated doc again

* extract getThemeTag

* add more unit tests
2021-03-10 10:35:26 +01:00
Wylie Conlon c33987d929
Support for number, date and IP range data types (#76971)
* 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 15:50:36 -05:00
Mikhail Shustov 7e3ca16aee
[Core] Simplify context typings (#93579)
* simplify context typings in core

* add tests for context types

* update docs
2021-03-04 17:00:50 +00:00
Wylie Conlon cae9ca4c19
[Field formats] Correctly format numeric histograms outside Discover (#91576)
* [Field formats] Correctly format numeric histograms outside Discover

* Fix types

* Fix types

* Fix failures

* Fix merge issue

* Fix tests

* Fix i18n

* Fix i18n

* Add doc and fix integration

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-03-03 13:13:57 -05:00
Mikhail Shustov f5e8b108da
Attempt to reduce Core bundle size with type exports. (#92221)
* compile core files as isolated modules

* fix export problems for isolated modules

* apply changes to kbn-test as core imports from it

* fix some exports

* fix lint errors

* update new exports

* fix eslint error

* expand export * where it is possible

* update docs

* update docs

* fix eslint error
2021-03-03 17:21:49 +01:00
Stacey Gammon deb555a552
Automatically generated Api documentation (#86232)
* auto generated mdx api doc system

* Fix README.md

* update core api docs after master merge

* clean up signature

* Update packages/kbn-dev-utils/src/plugins/parse_kibana_platform_plugin.ts

Co-authored-by: Spencer <email@spalger.com>

* migrate to docs-util package

* Remove bad links

* fix ref to release-notes and add extra dats service folder

* update name change

* Update packages/kbn-docs-utils/src/api_docs/build_api_declarations/get_type_kind.ts

Co-authored-by: Brandon Kobel <brandon.kobel@gmail.com>

* Update packages/kbn-docs-utils/src/api_docs/utils.ts

Co-authored-by: Brandon Kobel <brandon.kobel@gmail.com>

* review updates 1

* review feedback updates round 1

* Small refactor of extractImportReferences

* Review feedback updates 2

* Review update 3 plus support for links in class interface heritage clause

* debug failing test on ci only

* Escape regex directory path

* Update packages/kbn-docs-utils/src/api_docs/build_api_declarations/utils.ts

Co-authored-by: Spencer <email@spalger.com>

* fix for commit suggestion

Co-authored-by: Spencer <email@spalger.com>
Co-authored-by: spalger <spalger@users.noreply.github.com>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Brandon Kobel <brandon.kobel@gmail.com>
Co-authored-by: kobelb <brandon.kobel@elastic.co>
2021-02-24 19:23:19 -05:00
Aaron Caldwell 91d03f0c45
Increase index pattern select limit to 1000 (#92093)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-02-24 18:01:11 -05:00
Luke Elmers 0280d5a92b
[core.logging] Add RewriteAppender for filtering LogMeta. (#91492) 2021-02-24 17:25:34 -05:00
Shahzad 2ce344019a
Add text search mode in global kuery bar (#91814)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-02-23 10:37:56 +01:00
Liza Katz b1d76cedac
Fix track total hits not sent correctly from SearchSource (#91909)
* Move track total hits to root level

* code review

* doc
2021-02-22 23:05:32 +02:00
Pierre Gayvallet eed5f72b1a
Implement ScopedHistory.block (#91099)
* implements ScopedHistory.block

* add FTR tests

* fix test plugin id

* update generated doc

* deprecates AppMountParameters.onAppLeave

* typo fix

* add new FTR test

* fix added test
2021-02-22 12:27:07 +01:00
Lisa Cawley a6a567f476
Use documentation link service for snapshot restore (#91596)
Co-authored-by: Alison Goryachev <alisonmllr20@gmail.com>
2021-02-19 11:56:09 -08:00
Aaron Caldwell eea6f82e4e
[Maps] Use new index patterns service for Maps telemetry (#86703)
Co-authored-by: Matt Kime <matt@mattki.me>
2021-02-19 08:00:01 -07:00
Joe Reuter bf7fdfc87c
[Lens] Pass used histogram interval to chart (#91370) 2021-02-19 11:30:40 +01:00
Alejandro Fernández Haro 5342877a32
[HTTP] Apply the same behaviour to all 500 errors (except from custom responses) (#85541)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-02-18 17:31:18 +00:00
Alejandro Fernández Haro 3c0d73af8b
[DOCS] Accept core changes (#91826) 2021-02-18 14:35:27 +00:00
Peter Pisljar 7503fd256a
support serializing nested searchsource (#91525) 2021-02-18 15:12:41 +01:00
Walter Rafelsberger 2bb2629fec
[ML] Transforms: Adds missing bucket checkbox to group by popover form. (#91650)
Adds missing bucket checkbox to group by popover form.
2021-02-18 01:54:39 +01:00
Liza Katz 98bd8e0211
Report telemetry for autocomplete (#91428)
* Report telemetry about autocomplete
* error cound
* position of selected suggestion
* length of query used to generate the suggestions

Also added a couple if handly telemetry events:
* query language switch
* filter bar bulk actions

* Fix ts

* Report the value suggestions funnel

* docs

* docs

* fix jest

* test

* code review

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-02-17 14:41:15 +02:00
Mikhail Shustov 312351c52c
Unify Kibana & Elasticsearch logging config keys (#90764)
* align logging config with ES. rename kind to type.

* rename file "path" to "fileName"

* rename logger "context" to "name"

* update audit log docs and tests

* update docs

* fix integration tests

* update deprecations for audit appender

* add tests for audit logging deprecations

* fix eslint problem

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-02-16 20:27:25 +01:00
Matthew Kime 5f500a3c69
Improved painless error toasts (#91346)
* better painless error modal
2021-02-16 10:47:30 -06:00
Lukas Olson f06e722a99
[Search Sessions] Search session UI telemetry (#89950)
Co-authored-by: Liza K <liza.katz@elastic.co>
Co-authored-by: Anton Dosov <anton.dosov@elastic.co>
2021-02-16 11:28:13 +01:00
Ahmad Bamieh c1d1b2b453
[Saved Objects] Allow exporting and importing hidden types (#90178)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-02-14 19:05:36 +02:00
Joe Portner 5c3c3efdd8
Sharing saved objects, phase 2.5 (#89344) 2021-02-13 04:28:35 -05:00
Devon Thomson 7994e87cd7
[Time to Visualize] Clear All Editor State when Visualize Listing Page Loads (#91005)
* Changed the embeddable state transfer service so that it is possible to clear all editor state at once. Used that method in the visualize listing page
2021-02-11 23:23:14 -05:00
Devon Thomson 6e8622fadb
[Time to Visualize] Copy Panel to Dashboard (#90856)
* Added copy to dashboard action
2021-02-11 17:15:30 -05:00
Luke Elmers 7fc3d125bf
Support pit and search_after in server savedObjects.find (#89915) 2021-02-11 14:58:08 -05:00
István Zoltán Szabó b81967e4d4
Uses doc link service in Painless lab (#90433)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-02-11 17:37:10 +01:00
Anton Dosov 9ab5bcb141
[Search Session] Control "Kibana / Search Sessions" management section by privileges (#90818) 2021-02-11 04:33:32 -05:00
Pierre Gayvallet 570dcc07b5
Implement custom global header banner (#87438)
* first draft

* update plugin list

* fix tsproject

* update bundle limits file

* remove unused start dep

* adapt imports

* POC of footer banner

* update styles, mostly

* plug banner to uiSettings

* adding some unit tests

* add tests on sort_fields

* cleanup sums in sass mixins

* some self review stuff

* update generated doc

* add tests for color field

* update chrome header test snapshots

* retrieve license info from the server

* switch from uiSettings to plugin config

* update plugin list description

* update default colors

* NIT

* add markdown support

* fix banner overlap in fullscreen mode

* change banner height to 32px

* change banner's font size to 14

* delete unused uiSettings
2021-02-11 10:12:24 +01:00
Devon Thomson 31a3ec5934
[Time To Visualize] Make State Transfer App Specific (#89804)
* made state transfer app specific
2021-02-08 15:31:09 -05:00