Commit graph

90 commits

Author SHA1 Message Date
Shahzad 5d54c30d78
[Uptime] Migrate uptime query bar to global kuery bar (#93889) (#96389) 2021-04-07 09:16:26 -04:00
Mike Côté 52f41d8750
Create new alerting HTTP APIs that use the new terminology (#93977) (#95781)
* Move current alert HTTP APIs to legacy folder (#93943)

* Move current HTTP APIs to legacy folder

* Rename BASE_ALERT_API_PATH to LEGACY_BASE_ALERT_API_PATH

* Fix failing tests and extra files

* Create new rule HTTP APIs (#93980)

* Move current HTTP APIs to legacy folder

* Rename BASE_ALERT_API_PATH to LEGACY_BASE_ALERT_API_PATH

* Fix failing tests and extra files

* Move current alert HTTP APIs to legacy folder (#93943)

* Move current HTTP APIs to legacy folder

* Rename BASE_ALERT_API_PATH to LEGACY_BASE_ALERT_API_PATH

* Fix failing tests and extra files

* Add necessary files

* Create rule route

* Get rule API

* Update rule API

* Delete rule route

* Aggregate rules API

* Disable rule API

* Enable rule API

* Find rules API

* Fix Update API

* Get rule alert summary API

* Get rule state API

* Health API

* Rule types API

* Mute all API

* Mute alert API

* Unmute all API

* Unmute alert route

* Update API key API

* corrected tpye by making it much more complicated

* removed unneeded cocde

* Fixes

* Add back health route

* mutedInstanceIds -> mutedAlertIds

* lastRun -> last_run

* alert_type_state -> rule_type_state & alert_instances -> alerts

Co-authored-by: Gidi Meir Morris <github@gidi.io>

* Create docs for new rule HTTP APIs, deprecate old docs (#94745)

* Create docs for new APIs, deprecate old docs

* Remove connector_type_id

* Update docs

* Add link to legacy APIs from rules API docs

* Remove connector_type_id references

* [DOCS] Add legacy APIs to index.asciidoc

* Fix camel case

Co-authored-by: lcawl <lcawley@elastic.co>

* Make alerting tests use new rules APIs (#95159)

* Make API integration tests use new HTTP APIs

* Fix end to end tests

* Fix test failures

* Fix more test failures

* Rename some files

* Add tests for legacy APIs (#95333)

* Initial commit (#95457)

* Move some new alerting APIs to /internal (#95461)

* Initial commit

* Update README.md

* Use internal API

* Merge deprecated warning w/ alternative solution

* Update API docs

Co-authored-by: Gidi Meir Morris <github@gidi.io>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: lcawl <lcawley@elastic.co>
# Conflicts:
#	api_docs/core.json
2021-03-30 10:41:41 -04:00
Stacey Gammon 8f1264b3c7
update api docs (#95154) (#95428)
# Conflicts:
#	api_docs/data.json
#	api_docs/data_index_patterns.json
#	api_docs/data_search.json
#	api_docs/fleet.json
#	api_docs/reporting.json
2021-03-25 14:11:24 -04:00
Kibana Machine 72ef242a38
Cleanup advanced settings (#93437) (#94803)
* Cleanup advanced settings

* Fix translations/telemetry settings

* Fix telemetry settings

* Fix discover api docs

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

Co-authored-by: Tim Roes <tim.roes@elastic.co>
2021-03-24 16:47:41 +00:00
Joe Reuter def8204814
[Lens] Implement filtered metric (#92589) (#95282) 2021-03-24 08:57:44 -04: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
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
Tim Sullivan 60c8c0233d
[7.x] [Reporting-CSV Export] Re-write CSV Export using SearchSource (#88303) (#94757)
* [Reporting-CSV Export] Re-write CSV Export using SearchSource (#88303)

* [Reporting-CSV Export] Re-write CSV Export using SearchSource

* replace PIT solution with scan-and-scroll

* update tests

* cleanup

* simplify pr

* update docs

* update docs

* update telemetry schema

* use getSearchRequestBody instead of flatten

* Revert "update docs"

This reverts commit ab9f4d9642.

* optimize some async calls

* cleanup

* --wip-- [skip ci]

* fix telemetry schema

* fix telemetry tests

* fix snapshot

* api docs

* api doc updates

* use import type

* format the data through chains of maps

* add another saved search to reporting/ecommerce_kibana

* add a failing test

* add error logging to query failures

* put clear scroll in a finally so the ES error can be captured

* log dat error

* set dat fieldsFromSource

* --wip-- [skip ci]

* Revert "add another saved search to reporting/ecommerce_kibana"

This reverts commit 6edf26eff2.

* functional test fixes

* clean up ecommerce test archive

* add test for new search with fieldsFromSource set

* add tests and refactor tests

* cleanup redundant conditionals

* add GenerateCsv.getFields

* fix some tests

* fix double-escaping

* fix test snapshots and refactoring

* fix other tests

* fix test

* fix default index pattern in functional tests

* fix ts and sort fields when they come from API response

* --wip-- [skip ci]

* fix formatting and increase maxSizeBytes for testing

* remove client-side logic for sanitizing fields

* do not prepend timefield name if it already is a column

* test the logic to prepend timeField

* test the logic to sort the fields

* fix functional test

* preserve the error from data.search

* add functional test for ES returning an error

* fix snapshot

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

* simplify logging tags

* update snapshots

* --wip-- [skip ci]

* fix types

* update jest snapshot

* Revert "simplify logging tags"

This reverts commit e844dbd6ab.

* Revert "update jest snapshot"

This reverts commit 88497529de.

* fix types again

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-03-16 22:43:18 -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
Chris Roberson dfc17496af
[Monitoring] Change license service to use recommended API (#93620) (#94604)
* Change license service to use recommended API

* Remove unused type

* Update this code too

* Generate docs

* New docs
2021-03-15 15:11:32 -04:00
Lukas Olson df329b0fc9
[KQL] Remove Lucene syntax warnings (#93619) (#94481)
* [KQL] Remove Lucene syntax warnings

* Remove unused translations

* Update docs
2021-03-11 16:45:29 -05:00
Lukas Olson aa9e554b31
Fix search telemetry to only update SO periodically (#93130) (#94454)
* 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>

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Anton Dosov <anton.dosov@elastic.co>
2021-03-11 13:35:23 -05:00
Joe Reuter 4f7da0e4dc
[Lens] Transpose columns (#89748) (#94422) 2021-03-11 09:57:54 -05:00
Pierre Gayvallet b8ca02d88e
remove try auth mode (#94287) (#94355)
* remove `try` auth mode

* update generated doc

* update generated doc

* adapt integration test
2021-03-10 16:30:41 -05:00
Steph Milovic 0c1d56217d
[Security Solution] [Cases] rename case dir/plugin/context/i18n to cases (#94149) (#94318) 2021-03-10 13:17:20 -05:00
Stratoula Kalafateli 648c40646b
Fix "to to" spelling error (#93885) (#94316)
* Fix "to to" spelling error

* Build API docs

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

Co-authored-by: Michael Paul <michael@michaelpaul.com.br>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-03-10 13:01:27 -05:00
Joe Reuter 34a7dae336
Add imperative delete field api (#93181) (#94310) 2021-03-10 12:42:43 -05:00
Pierre Gayvallet e293c14ded
Migrate /bootstrap.js endpoint to core (#92784) (#94271)
* 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 06:44:48 -05:00
Kibana Machine c43dbe3986
[7.x] [Fleet] Fix package policies created with null var values (empty defaults) (#94040) (#94183)
* [Fleet] Fix package policies created with null var values (empty defaults) (#94040)

* Make package validation be based on types

* Add package info to cache after it is generated from ES storage

* Add logging around package info retrieval and when cache is set

* Add snapshot api integration test for uploaded package info

* Use the apache package for snapshot test instead

* Remove date field from snapshot

* Update docs

* Fix streams getting overridden

* Add back package field to data streams

* PR fixes

* Remove coreMigrationVersion from snapshot

* Remove `latestVersion` too

(cherry picked from commit 6f3949c8d8)

Co-authored-by: Jen Huang <its.jenetic@gmail.com>
2021-03-10 02:25:52 +00:00
Kibana Machine 2c76ea86a3
[Alerting] Update alerting action variables to follow new terminology (#93836) (#94079)
* Removing duplicate ActionVariable interface. Updating common action variables in UI

* Passing in alert values as rule variables in transform_action_params

* Fixing unit tests

* Fixing functional test

* Adding functiional test

* Updating paths

* Fixing i18n

* Fixing i18n

* Fixing api docs

* Plugin api build

* Moving spaceId and tags under rule prefix

* Using top level alert prefix

* Fixing i18n

* build api docs

* Fixing functional test

* Fixing functional test

Co-authored-by: ymao1 <ying.mao@elastic.co>
2021-03-09 10:02:55 -05:00
Kibana Machine 274a64979d
[Asset Management] Add support for Live queries in Osquery (#89889) (#94078)
Co-authored-by: Patryk Kopyciński <patryk.kopycinski@elastic.co>
2021-03-09 09:43:45 -05:00
Alejandro Fernández Gómez bc91dc2caa
[Fleet] Migrate ES client (#92805) (#94051)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-03-09 05:52:31 -05:00
Nathan Reese 4f72ed95cf
Convert file_upload components to typescript (#93814) (#94005)
* Convert file_upload components to typescript

* i18n cleanup

* api doc updates

* fix i18n files

* tslint after merge

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 18:23:08 -05: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
Nathan Reese da075533d1
[Maps] chunk geojson upload to keep import requests under 1MB (#93678) (#93974)
* [Maps] chunk geojson upload to keep import requests under 1MB

* fix geojson_importer tests

* update failure.item to reflect location in file

* remove console statement

* clean up

* return instead of break if upload is no longer active

* add unit test for createChunks

* update file_upload API

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:37:43 -05:00
Kibana Machine 05ece63351
[Lens] Carry previous configured formatter in Last value (#93784) (#93963)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

Co-authored-by: Marco Liberati <dej611@users.noreply.github.com>
2021-03-08 13:51:10 -05:00
Kibana Machine c4011f8b53
Make alerts list sortable by name and status (#93426) (#93959)
* Initial commit

* Update docs

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

Co-authored-by: Mike Côté <mikecote@users.noreply.github.com>
2021-03-08 13:27:27 -05:00
Nicolas Chaulet afb144d051
[Fleet] Remove fleetServerEnabled feature flag and use fleet system indices (#92422) (#93923)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-03-08 13:01:50 -05:00
Stacey Gammon 6b8ebbfa18
API docs clean up (#93508) (#93881)
* Fix links to github

* Fix links to github

* Update docs to latest

* Sort, remove unneccessary path info, reduce tags

* Go back to having DocDef create the link to avoid backport conflicts

* update api docs
# Conflicts:
#	api_docs/actions.json
#	api_docs/advanced_settings.json
#	api_docs/alerting.json
#	api_docs/apm.json
#	api_docs/apm_oss.json
#	api_docs/banners.json
#	api_docs/beats_management.json
#	api_docs/bfetch.json
#	api_docs/canvas.json
#	api_docs/case.json
#	api_docs/charts.json
#	api_docs/cloud.json
#	api_docs/console.json
#	api_docs/core.json
#	api_docs/core_application.json
#	api_docs/core_chrome.json
#	api_docs/core_http.json
#	api_docs/core_saved_objects.json
#	api_docs/dashboard.json
#	api_docs/dashboard_enhanced.json
#	api_docs/dashboard_mode.json
#	api_docs/data.json
#	api_docs/data_autocomplete.json
#	api_docs/data_enhanced.json
#	api_docs/data_field_formats.json
#	api_docs/data_index_patterns.json
#	api_docs/data_query.json
#	api_docs/data_search.json
#	api_docs/data_ui.json
#	api_docs/dev_tools.json
#	api_docs/discover.json
#	api_docs/discover_enhanced.json
#	api_docs/embeddable.json
#	api_docs/embeddable_enhanced.json
#	api_docs/encrypted_saved_objects.json
#	api_docs/enterprise_search.json
#	api_docs/es_ui_shared.json
#	api_docs/event_log.json
#	api_docs/expressions.json
#	api_docs/features.json
#	api_docs/file_upload.json
#	api_docs/fleet.json
#	api_docs/global_search.json
#	api_docs/home.json
#	api_docs/index_lifecycle_management.json
#	api_docs/index_management.json
#	api_docs/index_pattern_field_editor.json
#	api_docs/index_pattern_management.json
#	api_docs/infra.json
#	api_docs/ingest_pipelines.json
#	api_docs/inspector.json
#	api_docs/kibana_legacy.json
#	api_docs/kibana_react.json
#	api_docs/kibana_utils.json
#	api_docs/lens.json
#	api_docs/license_management.json
#	api_docs/licensing.json
#	api_docs/lists.json
#	api_docs/management.json
#	api_docs/maps.json
#	api_docs/maps_legacy.json
#	api_docs/ml.json
#	api_docs/monitoring.json
#	api_docs/navigation.json
#	api_docs/newsfeed.json
#	api_docs/observability.json
#	api_docs/osquery.json
#	api_docs/presentation_util.json
#	api_docs/remote_clusters.json
#	api_docs/reporting.json
#	api_docs/rollup.json
#	api_docs/runtime_fields.json
#	api_docs/saved_objects.json
#	api_docs/saved_objects_management.json
#	api_docs/saved_objects_tagging.json
#	api_docs/saved_objects_tagging_oss.json
#	api_docs/security.json
#	api_docs/security_oss.json
#	api_docs/security_solution.json
#	api_docs/share.json
#	api_docs/snapshot_restore.json
#	api_docs/spaces.json
#	api_docs/spaces_oss.json
#	api_docs/stack_alerts.json
#	api_docs/task_manager.json
#	api_docs/telemetry.json
#	api_docs/telemetry_collection_manager.json
#	api_docs/telemetry_collection_xpack.json
#	api_docs/telemetry_management_section.json
#	api_docs/triggers_actions_ui.json
#	api_docs/ui_actions.json
#	api_docs/ui_actions_enhanced.json
#	api_docs/uptime.json
#	api_docs/url_forwarding.json
#	api_docs/usage_collection.json
#	api_docs/vis_type_timeseries.json
#	api_docs/visualizations.json
2021-03-06 10:05:27 -05:00
Mike Côté 357e5f11ce
Rename alerts plugin to alerting (#92898) (#93827)
* Rename alerts plugin to alerting

* Deprecate old config values

* Few more renames

* Update plugin list

* Rename xpack.alerts -> xpack.alerting

* Fix some ESLint rules

* Fix typecheck

* Fix some test failures

* Some more renames

* Fix ESLint

* Fix some test failures

* Fix failing jest test

* Undo exclusive test

* Fix APM deps

* Fix docs

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
# Conflicts:
#	.github/CODEOWNERS
#	api_docs/alerting.json
#	api_docs/triggers_actions_ui.json
#	rfcs/text/0003_handler_interface.md

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-03-05 21:38:33 -05:00
Sonja Krause-Harder ece846d345
[Fleet] Don't add extra quotes to YAML strings from manifest files (#93585) (#93773)
* Add UI validation for string YAML values in policies.

* Do not quote YAML strings containing special characters.

* Add test case for wildcards in the middle of strings.

* Add multiline test case.

* Polish test case.

* Update API docs

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

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-03-05 12:16:49 -05:00
Mike Côté fde6679696
[Alerting] adds Connectors APIs and deprecates old Actions APIs as per the new Alerting terminology (#92451) (#93762)
* moved legacy actions api to legacy folder

* introduced connector create api

* added new delete route

* added new execute and get_all

* introduced all connector APIs

* renamed action to connector in Apis

* comment on camel case type

* fixed va

* updated docs

* legacy title

* corrected APIs

* legacy links

* added linik to deprecatred APIs

* added linik to deprecatred APIs from index

* moved legacy apis down one level

* Apply suggestions from code review

Co-authored-by: ymao1 <ying.mao@elastic.co>

* renamed route file for connectorTypesRoute

* define legacy route

* Update docs/api/actions-and-connectors/legacy/index.asciidoc

Co-authored-by: Mike Côté <mikecote@users.noreply.github.com>

* api docs

Co-authored-by: ymao1 <ying.mao@elastic.co>
Co-authored-by: Mike Côté <mikecote@users.noreply.github.com>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
# Conflicts:
#	api_docs/actions.json

Co-authored-by: Gidi Meir Morris <github@gidi.io>
2021-03-05 09:22:17 -05:00
Alejandro Fernández Haro c1c20cba51
[Telemetry] Default to namespaces:['*'] in soClient.find requests (#93289) (#93759)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
# Conflicts:
#	api_docs/telemetry_collection_manager.json
#	api_docs/usage_collection.json
2021-03-05 08:58:39 -05:00
Peter Pisljar 73153c4765
fix agg config sub agg dsl generation (#93276) (#93736)
# Conflicts:
#	api_docs/data.json
#	api_docs/data_search.json
2021-03-05 03:12:43 -05:00
Devon Thomson e5be5e1d2d
Make Dashboard Unsaved Changes Space Specific (#92680) (#93700)
* Made dashboard unsaved changes space specific
# Conflicts:
#	api_docs/dashboard.json
2021-03-04 19:33:48 -05:00
Mikhail Shustov d7ddd67d94
[Core] Simplify context typings (#93579) (#93646)
* simplify context typings in core

* add tests for context types

* update docs
# Conflicts:
#	api_docs/core.json
2021-03-04 14:36:05 -05:00
Anton Dosov bb3d35bb12
Fix wrong import in data plugin causing 100kB bundle increase (#93448) (#93577)
# Conflicts:
#	api_docs/data.json
#	api_docs/data_search.json
2021-03-04 08:15:49 -05:00
Stacey Gammon 2117e1324c
API DOCS Step 3/3 (#92929) (#93530)
* update api_docs from gitignore

* api doc files

* Update api_welcome.mdx

* Pretty print json

* Add new lines and extra frontmatter to warn github viewers

* update api_docs with new lines and frontmatter

* Remove all apis tagged @internal and add tests

* Update docs with all internal APIs removed

* fix typescript error in test fixtures

* Update core.json

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
# Conflicts:
#	api_docs/core.json
#	api_docs/core_application.json
#	api_docs/core_http.json
#	api_docs/core_saved_objects.json
2021-03-03 20:12:24 -05:00
Mikhail Shustov a15e4760f1
Attempt to reduce Core bundle size with type exports. (#92221) (#93457)
* 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
# Conflicts:
#	api_docs/core.json
#	api_docs/core_application.json
#	api_docs/core_http.json
#	api_docs/core_saved_objects.json
#	src/core/public/index.ts
2021-03-03 14:01:11 -05:00