Commit graph

885 commits

Author SHA1 Message Date
Brian Seeders
d4ab1a01d7
Remove kibAiopsPluginApi reference to fix dev docs build 2022-05-23 21:26:06 -04:00
Thomas Watson
dc9f2732a1
Add csp.disableUnsafeEval config option to remove the unsafe-eval CSP (#124484)
Adds a new experimental Kibana setting called `csp.disableUnsafeEval` which will default to `false`. When set to `true`, it will remove `unsafe-eval` from our CSP.

Also introduces a new module called `@kbn/handlebars` which is a replacement for the official `handlebars` module used in the frontend. This new module is necessary in order to avoid calling `eval`/`new Function` from within `handlebars` which is not allowed once `unsafe-eval` is removed from our CSP.

The `@kbn/handlebars` module is simply an extension of the main `handlebars` module which adds a new compile function called `compileAST` (as an alternative to the regular `compile` function). This new function will not use code-generation from strings to compile the template but will instead generate an AST and return a render function with the same API as the function returned by the regular `compile` function.

This is a little bit slower method, but since this is only meant to be used client-side, the slowdown should not be an issue.

The following limitations exists when using `@kbn/handlebars`:

The Inline partials handlebars template feature is not supported.

Only the following compile options will be supported:
- `knownHelpers`
- `knownHelpersOnly`
- `strict`
- `assumeObjects`
- `noEscape`
- `data`

Only the following runtime options will be supported:
- `helpers`
- `blockParams`
- `data`

Closes #36311
2022-05-23 11:01:56 -07:00
Muhammad Ibragimov
b7866ac7f0
[Console] Refactor retrieval of mappings, aliases, templates, data-streams for autocomplete (#130633)
* Create a specific route for fetching mappings, aliases, templates, etc...
* Encapsulate data streams

* Encapsulate the mappings data into a class
* Setup up autocompleteInfo service and provide its instance through context
* Migrate the logic from mappings.js to Kibana server
* Translate the logic to consume the appropriate ES client method
* Update related test cases

* Lint

* Address comments

* Fix server proxy/mock

* Add API integration tests for /api/console/autocomplete_entities

* Lint

* Add tests
* Add API integration tests for autocomplete_entities API
* Add deleted tests

Co-authored-by: Muhammad Ibragimov <muhammad.ibragimov@elastic.co>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2022-05-19 14:30:59 +05:00
Thomas Neirynck
3a482f175a
Update API docs (#130999)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2022-05-03 16:13:19 -04:00
Alejandro Fernández Haro
fcf862220b
Create @elastic/analytics package (#128407)
Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
2022-04-05 08:21:57 -07:00
Stacey Gammon
131021050c
Fix deprecations being incorrectly counted (#128985)
* Adjust logic to fix overcounting bad deprecations

* Update api docs

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2022-03-31 14:01:14 -04:00
Stacey Gammon
7559f90c97
Update api docs (#128663) 2022-03-28 14:24:55 -04:00
Brian Seeders
f9badeb6a4
[api-docs] Update API docs (#127782) 2022-03-15 11:27:52 -07:00
Brandon Kobel
82f143c2b0
Use response-ops GitHub team everywhere, no more alerting services (#126518)
* Use response-ops GitHub team everywhere, no more alerting services

* Update x-pack/test/plugin_api_integration/plugins/event_log/kibana.json

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

Co-authored-by: Ying Mao <ying.mao@elastic.co>
2022-03-01 08:56:26 -08:00
Stacey Gammon
35c819c228
udpate api docs (#126460) 2022-02-28 08:26:15 -07:00
Matthew Kime
7db7b1aa8c
update docs (#125419) 2022-02-11 13:46:52 -06:00
Stacey Gammon
3bbbbb9ed3
Don't include teams with no usage of due deprecations (#124268)
* Don't include teams that have 0 due deprecations

* Update api docs
2022-02-01 10:53:35 -07:00
Stacey Gammon
41c7521402
Add a new file to list deprecations that are due, and by team (#124056)
* Add another file to track deprecations due by team

* update docs

* add link to new page

* Update api docs after merging master
2022-01-31 16:02:39 -05:00
Clint Andrew Hall
940c4e2833
[cloud] Create IFRAME chat component; add to Unified Integrations (#123772)
* [cloud] Create IFRAME chat component; add to Unified Integrations

* Provide chat user data from endpoint

* Apply suggestions from code review

Co-authored-by: Luke Elmers <lukeelmers@gmail.com>

* Addressing feedback

* Addressing feedback

* Fixing package.json

* Addressing feedback

* Wrap chat config in an observable

* Add tests

* Add integration tests, docs

Co-authored-by: Sergei Poluektov <sergei.poluektov@elastic.co>
Co-authored-by: Luke Elmers <lukeelmers@gmail.com>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2022-01-31 08:07:04 -06:00
Stacey Gammon
2d982c0070
Update api docs (#123839)
* Support the docs scripts knowing which json files are specifically for dev docs.

* Update jest snapshot docs

* Update api docs
2022-01-27 09:48:49 -05:00
Kevin Lacabane
24f0425284
[Stack monitoring] remove support for monitoring.cluster_alerts.allowedSpaces (#123229)
* remove allowed space setting

* set allowedSpaces as unused setting

* mock unused function in deprecation tests

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2022-01-25 15:29:18 +01:00
Christos Nasikas
586a8fd9fa
[ResponseOps][Cases] Update plugins and docs to point to new github teams (#123137) 2022-01-17 05:58:50 -07:00
Stacey Gammon
af283e8a07
Don't count any ci stats coming from code in node_modules (#122600)
* ensure no stats are tracked that are coming from third party libraries

Update stats.ts

* Build api docs with new stats
2022-01-11 08:34:07 -05:00
Tim Sullivan
6ca947b1e1
[Reporting] Tag internal APIs for TSDoc (#122100) 2021-12-29 11:40:46 -07:00
Thomas P
ac7636c31b
Fix typo in alerting_framework_health field name (#120496)
* Fix type in alerting_framework_health field name

So that it's set in accordance with the documentation
https://www.elastic.co/guide/en/kibana/current/get-alerting-framework-health-api.html

* ENH: Make sure to return the older field as well to avoid breaking existing code

* DOC: Document the typo field "alerting_framework_heath"

* ENH: Add a _deprecated field in the typo field response

* fixed es lint spaces issues

* fixed more spaces issues

* fixed scope issue

* fixed scope issue

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: YulNaumenko <jo.naumenko@gmail.com>
2021-12-22 16:38:40 -08:00
Stacey Gammon
cb588a3a15
Track unreferenced deprecated apis count (#121809)
* Track unreferenced deprecated apis count

* Update api docs
2021-12-21 15:34:53 -05:00
Stacey Gammon
434ad1b575
update api docs (#121760) 2021-12-21 10:26:37 -05:00
Stacey Gammon
92d64e5361
Fix typo in api docs system (#119521)
* fix typo

* update api docs
2021-11-23 15:32:54 -05:00
Stacey Gammon
d7b9a49d41
Fix any counts in api docs code (#119392)
* Update code

* Update api docs
2021-11-23 11:11:14 -05:00
Stacey Gammon
09a1a74069
update api docs (#119198) 2021-11-19 10:37:56 -07:00
Lucas F. da Costa
def6d85418
[Uptime] [User Experience] Prefix internal apis with /internal (#117852)
* [Uptime] prefix internal APIs with /internal [relates to #116334]

* [Uptime] move hard-coded URL paths to rest_api constants [relates to #116334]

* [Uptime] use API_URLS from constants in API integration tests [relates to #116334]

* [Uptime] Remove unnecessary filters route test

* [Uptime] prefix internal RUM routes with /internal and /ux [relates to #116334]

* [User Experience] update API docs for prefixed internal UX APIs
2021-11-11 13:12:36 +00:00
ymao1
7e4ae48efa
[Alerting] Renaming alert instance summary to alert summary (#117023)
* Renaming alert instance summary to alert summary

* api docs

* fixing types

* updating functional test

* Updating i18n and data test sub

* fixing functional tests

* Cleanup

* Fixing unit tests

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-11-08 19:15:46 -05:00
Bryan Clement
47e8f783dc
remove unused enrollment path (#117063) 2021-11-02 11:00:43 -07:00
Stacey Gammon
4bfb35b43a
Update api docs (#116495)
* update api docs

* update api docs
2021-11-01 19:16:16 +00:00
Tobias Stadler
cd3ec12128
[Cases] Fixed typo (#116042)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-10-26 23:09:29 +03:00
Søren Louv-Jansen
51f8feaea0
Rename apm-generator to apm-synthtrace (#116075) 2021-10-25 16:25:01 -04:00
Georgii Gorbachev
5d1b5104fc
Fix adding prepackaged rules via fleet plugin (#114467)
Co-authored-by: Garrett Spong <garrett.spong@elastic.co>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-10-19 20:16:31 -05:00
Stacey Gammon
45e9d51a44
Add pluginTeam to plugin API ci stats (#115007)
* Add pluginTeam to ci stats for easier higher level groupings

* Updated docs
2021-10-14 11:54:35 -04:00
Luke Elmers
e1e1830f15
[Breaking] Remove /api/settings & the xpack_legacy plugin. (#114730) 2021-10-13 21:20:56 +01:00
Marco Vettorello
ff1b014c7b
Update dependency @elastic/charts to v37 (master) (#113968) 2021-10-12 16:36:18 +02:00
Stacey Gammon
8e72e17648
api docs (#114565) 2021-10-11 19:46:01 -04:00
Yaroslav Kuznietsov
2498b6212c
[MetricVis] Move the expression function and renderer to a separate plugin. (#113427)
* Added expressionMetricVis plugin.

* splitted metric vis_type and expression.

* Fixed check errors.

* Fixed plugin docs.

* updated snapshots.

* Added code owner to expressionMetricVis.

* updated chart docs.

* Changed the `Metric` type export.

* Added storybook.

* Added bucket story.

* Added without label story.

* Added "with custom font size" story.

* Added other stories.

* Added DatatableColumn accessors.

* Replaced Metric with MetricOptions.

* Fixed MetricOptions.any

* updated the check of min/max existence.

* Updated function/renderer names.

metricRenderer -> metricVisRenderer
metricFunction -> metricVisFunction

* updated snapshot.

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-10-08 08:42:44 +03:00
Joe Portner
64f37e7414
Remove securityOss plugin (#113946) 2021-10-07 17:57:37 +02:00
Stacey Gammon
6723fa583f
Add packages to our API documentation (#113564)
* Add packages

* Update docs

* Fix test and types

* debug heap size

* remove debug heap line

* updated docs
2021-10-06 17:02:57 -04:00
Stacey Gammon
66f69d6a13
Clean up task manager public setup contract to improve readability and API docs (#113415)
* Improve API docs for task manager

* Update docs
2021-09-30 09:10:41 -04:00
Stacey Gammon
20202f7e7d
Add a plugin directory page to the docs build (#112862)
* Write plugin directory doc as part of api docs build.

* Replace service folder with the new name for index patterns

* Updated docs

* small update

* update docs
2021-09-28 13:17:12 -04:00
Stratoula Kalafateli
60500c20af
Move timeseries to vis_types folder (#112228)
* Move timeseries to vis_types folder

* Fix jest

* Fix types

* Fix more types

* Fix types

* fix jest tests

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-09-21 13:45:49 +03:00
Stratoula Kalafateli
e20f530762
Move to vis_types folder part 3 (#112084)
* Move to vis_types folder part 3

* Fix jest tests
2021-09-15 14:46:48 +03:00
Uladzislau Lasitsa
70090e326c
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>
2021-09-10 14:53:07 +03:00
Stacey Gammon
98b7e99747
Clean up some of the API doc code (#111635)
* Clean up api doc infra

* updated docs

* Update api dics
2021-09-08 17:50:25 -04:00
Stratoula Kalafateli
33c124b9d8
Move to vis_types folder part 2 (#110574)
* Move to vis_types folder part 2

* fix jest tests

* do some tests

* revert

* Test Tiago's fix

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-09-03 11:19:44 +03:00
Stacey Gammon
e097adbb6a
API Doc Fixes (#109685)
* Fixes

- Fix bad formatting of deprecated apis by plugin
- Collect deprecated apis recursively
- Include unreferenced apis in Deprecated apis by API page.

* Fix unreferenced dep list

* check in updated docs

* Fix the issue with saved objects management plugin docs not being included

* adding the new docs after fixing some docs missing

* update api docs
2021-08-24 13:42:23 -04:00
Matthias Wilhelm
42527e4188
[Discover] Remove Angular from doc viewer (#109368)
* Remove angular from doc viewer

* Remove types

* Remove plugin_functional for angular doc_view, since testing angular is no longer necessary
2021-08-24 10:50:22 +02:00
Joe Portner
65e04b1380
Remove spacesOss plugin (#109258) 2021-08-23 15:10:09 +02:00
Devon Thomson
95463f47f3
[Dashboard] Remove Legacy Dashboard Only Mode (#108103)
Remove all dashboard only mode code and tests. Align dashboard permissions to use showWriteControls only
2021-08-20 15:39:10 -04:00