Commit graph

1099 commits

Author SHA1 Message Date
Tim Roes 0af7e33df9
Restore vega.enableExternalUrls documentation (#42820) (#43003)
vega.enableExternalUrls setting missing but it still supported, so needed to be added
2019-08-09 10:06:18 +02:00
KOTungseth 1e30a66fe7 [DOCS] TSVB and Timelion clean up 2019-08-08 16:18:23 -05:00
Mikhail Shustov 26bd65014b
Unify response interface in handler and request interceptors (#42442) (#42918)
* add response factory to the interceptors

* adopt x-pack code to the changes

* Add a separate response factory for lifecycles.

Only route handler can respond with 2xx response.
Interceptors may redirect or reject an incoming request.

* re-generate docs

* response.internal --> response.internalError

* use internalError for exceptions in authenticator

* before Security plugin proxied ES error status code. now sets explicitly.

* provide error via message field of error response for BWC

* update docs

* add customError response

* restore integration test and update unit tests

* update docs

* support Hapi error format for BWC

* add a couple of tests
2019-08-08 13:51:01 +02:00
Josh Dover ead46453f1
[7.x] Add PluginManfiest to generated docs (#42795) (#42861) 2019-08-07 16:37:17 -05:00
gchaps cbd17632a4
[DOCS] [7.4] Updates dashboard only docs (#42775)
* [DOCS] Updates dashboard only docs

* [DOCS] Adds deprecation notice to dashboard-only mode docs
2019-08-07 14:24:34 -07:00
Oliver Gupte 4301be4821
[APM] Always get the root transaction when fetching trace items (#42508) (#42812)
* [APM] Always get the root transaction when fetching trace items
Fixes #33210

* code tweaks

* displays message notifying user that trace items exceeds maximum displayed

* remove getTraceRoot query by adjusting the score and order of trace
items with no parent.id

* add `apm_oss.maxTraceItems` config options to control the number of displayed trace items

* changed config `apm_oss.maxTraceItems` to `xpack.apm.ui.maxTraceItems`

* added missing configs to apm settings doc and docker template

* minor code tweak
2019-08-07 06:58:51 -07:00
Rudolf Meijering 1995eafdb0
[Core] Public saved objects client (#39891) (#42760)
* Move SavedObjectClient files to core/public

* Initial SavedObjectsService in public Core

* Public SavedObjectsClient tests

* Import SimpleSavedObject from src/core/public

* Use types from source files for kibana.d.ts

* Add html raw loader to x-pack/jest

* Cleanup

* Drop case utilities and improve test coverage

* Update types and documentation

* Fix build breaking when importing directly from /server in /public

* Ensure that all option paramaters are picked and renamed

* Fix option mapping and introduce stronger types

* Eslint: allow imports from src/core/*/types

* Add compatibility layer for kfetch vs http.fetch error responses

* Improve documentation

* Expose SavedObjectsMigrationLogger

* Documentation and type tweaks

* Revert type changes from 73e601f and update api docs

* Refactor request into savedObjectFetch + test

* Make legacy SavedObject compatible with http.fetch exceptions

* Fix types and tests

* simple_saved_object import from src/core/server

* server imports from root instead of server/types

* Make SavedObjectsService a class

* Don't pick unkown keys from server response

* Rename SavedObjectsFindResponse to SavedObjectsFindResponsePublic

* Remove err.response from SavedObjects fetch errors

* Revert "Remove err.response from SavedObjects fetch errors"

This reverts commit 61705ca361.

* Don't introduce err.response until we deprecate err.res
2019-08-07 11:29:30 +02:00
Catherine Liu ddfe6e8dea
[Canvas] Format argument for the metric element (#42007) (#42779)
* Added numberFormat arg type and metricFormat arg to metric function

    Updated function reference doc

    Fixed default arg value

* Added stories for NumberFormatArgInput

* Added arg alias

* Added stories for metric renderer

* Fixed ts errors and added comments

* Updated comments

* Removed extra test

* Added snapshots

* Addressing feedback

* Fixed typo

* Updated metricFormat help text

* Removed redundant help prop
2019-08-06 16:26:25 -07:00
gchaps 657ffc7c0c
[DOCS] Adds links to release blogs in highlights doc (#42768) 2019-08-06 13:52:06 -07:00
gchaps 9b4936f587 [DOCS] Removes outdated image (#42624) 2019-08-06 12:09:10 -07:00
Josh Dover 6e6c01815d Add ContextService to server (#42395) (#42750) 2019-08-06 21:07:52 +02:00
Mike Côté 07ae78f0db
Make task manager index configurable again (#42394) (#42706)
* Initial work

* Fix type check

* Accept core API changes

* Fix broken tests

* Destructure index pattern
2019-08-06 13:01:58 -04:00
Mikhail Shustov c2aafcff93
Document HTTP service (#42331) (#42558)
* improving naming, add TSDoc

* re-genereate docs

* use response name in migration guide

* Apply suggestions from code review

Co-Authored-By: Josh Dover <me@joshdover.com>

* place docs near the related code

* re-generate docs

* mark code as example to reduce noise in http-service.md
2019-08-04 12:57:34 +02:00
Brandon Kobel 5b002848ea
[docs][skip ci] Maps read only access (#35561) (#42553)
* Adding read only access to the maps docs

* Removing redundant x-pack label, maps is already x-pack only

* Apply suggestions from code review

Co-Authored-By: gchaps <33642766+gchaps@users.noreply.github.com>

* Switching to using a Note
2019-08-02 15:57:27 -07:00
gchaps 92d318adf8 [DOCS] Updates images and content in Dashboard docs (#42500)
* [DOCS] Updates images and content in Dashboard docs

* [DOCS] Incorporated feedback
2019-08-02 14:54:01 -07:00
Spencer 32219d2c11
[7.x] [basePathProxy] add __UNSAFE_bypassBasePath route (#4120… (#42450) 2019-08-02 13:41:36 -07:00
Garrett Spong ecf3fba931
[SIEM] Adds Machine Learning section to 'Using the SIEM UI' docs (#42399) (#42521)
## Summary

Adding `Anomaly Detection with Machine Learning` section to docs for new Machine Learning features.

Example generated docs:

![image](https://user-images.githubusercontent.com/2946766/62312719-2a32d780-b44c-11e9-9967-4639eedf05d5.png)




### Checklist

Use ~~strikethroughs~~ to remove checklist items you don't feel are applicable to this PR.

- [] ~This was checked for cross-browser compatibility, [including a check against IE11](https://github.com/elastic/kibana/blob/master/CONTRIBUTING.md#cross-browser-compatibility)~
- [x] Any text added follows [EUI's writing guidelines](https://elastic.github.io/eui/#/guidelines/writing), uses sentence case text and includes [i18n support](https://github.com/elastic/kibana/blob/master/packages/kbn-i18n/README.md)
- [x] [Documentation](https://github.com/elastic/kibana/blob/master/CONTRIBUTING.md#writing-documentation) was added for features that require explanation or tutorials
- [ ] ~[Unit or functional tests](https://github.com/elastic/kibana/blob/master/CONTRIBUTING.md#cross-browser-compatibility) were updated or added to match the most common scenarios~
- [ ] ~This was checked for [keyboard-only and screenreader accessibility](https://developer.mozilla.org/en-US/docs/Learn/Tools_and_testing/Cross_browser_testing/Accessibility#Accessibility_testing_checklist)~

### For maintainers

- [ ] ~This was checked for breaking API changes and was [labeled appropriately](https://github.com/elastic/kibana/blob/master/CONTRIBUTING.md#release-notes-process)~
- [ ] ~This includes a feature addition or change that requires a release note and was [labeled appropriately](https://github.com/elastic/kibana/blob/master/CONTRIBUTING.md#release-notes-process)~
2019-08-02 08:50:16 -06:00
Matthias Wilhelm 2c8efa49ac
Add missing doc for dateNanosFormat (#42459) (#42506) 2019-08-02 08:08:46 +02:00
Mikhail Shustov c90f663309
revert PR 36804 (#42333) (#42443) 2019-08-02 07:56:05 +02:00
chongzhe c45ec427c1
[Code] Add doc for 7.3 (#42392) (#42487) 2019-08-01 13:34:10 -07:00
Larry Gregory d107d0845e
[7.x] Expose saved object import/export from core (#42022) (#42458)
* expose saved object import/export from core

* additional tests

* removing unused mock

* updater snapshots

* add objectLimit to saved objects service

* don't export the import/export functionality from core; only types

* documenting exported types

* export missing type
2019-08-01 13:55:26 -04:00
Matt Bargar ba516a41f5
Add advanced setting to turn off search on Discover's initial page load (#42036) (#42408)
Discover currently executes a search as soon as it loads. For some users this is useful. But for others it may return worthless results at the expense of extra load on their ES cluster and increased page load times, making it harder to get to the data they actually want. This PR adds an advanced setting allowing users to turn off the "search on page load" functionality in Discover.
2019-08-01 13:23:07 -04:00
lcawl 1ea7b73d7e [DOCS] Kibana 7.3 Release Notes (#41798) 2019-07-31 14:51:40 -07:00
Mikhail Shustov a3a70979ee
Http server route handler implementation (#41894) (#42326)
* add response error

* add hapi response adapter

* add router handler

* add tests

* add comments, update docs

* update tests

* cleanup tests

* address @joshdover comments

* move tests under integration test cathegory

* update docs

* get rid of KibanResponseError class

* update docs
2019-07-31 11:38:28 +02:00
Josh Dover 1898510de8
[7.x] Add ContextService (#41251) (#42278) 2019-07-30 17:55:48 -05:00
Dmitry Lemeshko b4a60f2243
[DOCS] Update functional test runner doc (#41806) (#42256)
* [ftr/docs] replace leadfoot with webdriver

* [ftr/docs] more details about running tests in Firefox

* [ftr/docs] update references to ftr services

* [ftr/docs] fix links and update description

* [ftr/docs] update services information

* [ftr/docs] fix more links

* small fix

* [ftr/docs] Firefox run example

* revert link changes

* review fix

* review fixes

* add details on how to start x-pack tests

* lost fix for tags description

* Update docs/development/core/development-functional-tests.asciidoc

Co-Authored-By: Spencer <email@spalger.com>

* Update docs/development/core/development-functional-tests.asciidoc

Co-Authored-By: Spencer <email@spalger.com>
2019-07-30 20:48:57 +02:00
Josh Dover 0b52c2672a
[7.x] [new-platform] Add legacy property to NavLinks registe… (#42220) 2019-07-30 11:13:15 -05:00
István Zoltán Szabó 7481c2cf50 [DOCS] Updates ML/anomaly detection terms in the Kibana guide (#41965) 2019-07-30 10:05:49 +02:00
Mengwei Ding f88ba439cb
[Code] remove the disableIndexScheduler flag (#42179) (#42223) 2019-07-29 21:58:33 -07:00
gchaps 0535ffea9d
[DOCS] Adds 7.3 Release Highlights (#42043)
* [DOCS] Adds 7.3 Release Highlights

* [DOCS] Removes some of the images in the Canvas highlights

* [DOCS] Updates content in 7.3 highlights
2019-07-29 10:02:18 -07:00
Tim Roes 92d1e5f5df
GoodBye Notifier (#41663) (#42122)
* Begin notifier removal

* Remove remaining notifier traces

* Remove dead translations

* Remove Angular from config listener

* Import angular-sanitize explicitly in map
2019-07-29 14:32:36 +02:00
Mikhail Shustov 7683a741d5
Export public http interfaces (#42001) (#42075)
* re-export http types

* update docs
2019-07-27 10:47:18 +02:00
Mike Côté 44f8c129f7
Task manager enhancements for error handling in alerting and actions (#39829) (#42004)
* Allow mtask definitions to overwrite default setting maxAttemps

* Leverage scheduledAt from task manager

* Treat maxAttempts like attempts and not retries

* Add support for second intervals

* Min 1 attempt

* Reverse relying on scheduledAt

* Add new startedAt attribute in task manager that keeps track when task started running

* Don't extend runAt when claiming a task

* Remove startedAt from state

* Attempt trying to define custom getBackpressureDelay function

* Pass error object to getBackpressureDelay

* Cleanup processResultForRecurringTask code

* Add backpressure to timed out tasks

* Change default timeout backpressure calculation

* getBackpressureDelay to return seconds instead of milliseconds

* Add comment for task store query

* Compress query

* Revert alert / actions specific code

* Add more interval tests

* Fix failing jest tests

* Fix test

* Add more unit tests

* Fix integration tests

* Fix sorting of tasks to process

* WIP

* Always provide error when getBackpressureDelay is called

* Rename getBackpressureDelay to getRetryDelay

* retryAt to be calculated from timeout time by default

* Remove invalid test

* Add unit tests

* Consider timeout before scheduling a retryAt

* Remove backpressure terminology

* Remove support for 0 based intervals and timeouts

* Apply PR feedback

* Fix last place using Math.abs

* Modify migrations to allow running a script when converting an index to an alias

* Convert task manager to use saved objects

* Fix broken test

* Fix broken tests pt1

* Remove index from task manager config schema

* Accept platform changes

* PR feedback

* Apply PR feedback

* Apply PR feedback pt2

* Apply PR feedback pt3

* Apply PR feedback pt4

* Fix feedback pt3

* Rename RawSavedObjectDoc to SavedObjectsRawDoc
2019-07-25 21:35:42 -04:00
gchaps 5a46b8c4fe Updates getting started guide (#41778) 2019-07-25 14:29:24 -07:00
Mikhail Shustov 2dcc69c4fe
AuthResultData configures response headers (#41775) (#41948)
* extend AuthResultData with response headers

* add tests

* update docs

* rename headers --> requestHeaders to clarify intention

* update docs

* address comments
2019-07-25 08:50:49 +02:00
gchaps e87539da69
[DOCS] Updates images and adds example to rollup jobs doc (#41839) (#41913)
* [DOCS] Updates images and adds example to rollup jobs doc

* [DOCS] Edits to rollup text
2019-07-24 10:47:07 -07:00
Lisa Cawley e83b6b4889 [DOCS] Clarifies xpack.security.enabled setting (#41904) 2019-07-24 09:33:31 -07:00
gchaps 84427a1af4
[DOCS] Puts Spaces content on single page (#41536) (#41809)
* [DOCS] Puts Spaces content on single page

* [DOCS] Incorporates review comments

* [DOCS] Incorporated review comments
2019-07-23 12:29:05 -07:00
gchaps 53ed5186f2
[DOCS] Updates Console doc (#41371) (#41813)
* [DOCS] Updates Console doc

* [DOCS] Incorporates comments on Console docs

* [DOCS] Updated Console images
2019-07-23 11:27:57 -07:00
Larry Gregory d05a449986
Added Flexmonster Pivot Table to known plugins list (#41655) (#41781)
* Add Flexmonster Pivot Table to known plugins list

* Update docs/plugins/known-plugins.asciidoc

Co-Authored-By: Larry Gregory <lgregorydev@gmail.com>
2019-07-23 12:48:17 -04:00
Mikhail Shustov 93e4815b61
Narrow type of PluginDeps to an object (#40846) (#41745)
* Narrow type of PluginDeps to an object

* re-generate docs
2019-07-23 12:01:08 +02:00
Mikhail Shustov 8058093241
core doesn't use Record<string, unknown> for public API (#41448) (#41742)
* core contracts don't use unknown to support type assignment

limitations of https://github.com/Microsoft/TypeScript/wiki/Breaking-Changes#-k-string-unknown--is-no-longer-a-wildcard-assignment-target

* regenereate docs

* remove type over-write
2019-07-23 11:25:26 +02:00
Lisa Cawley c1e3d51278
[DOCS] Fixes includes for TSVB (#41721) 2019-07-22 15:59:40 -07:00
KOTungseth 762ea86775 Comments from Gail 2019-07-22 16:35:36 -05:00
KOTungseth f9e82d5038 Final clean up 2019-07-22 16:35:20 -05:00
KOTungseth 8d17eb2cc5 Content conslidation 2019-07-22 16:35:06 -05:00
KOTungseth b8ee245ede Added task content 2019-07-22 16:34:51 -05:00
KOTungseth 570147ed04 Updated image 2019-07-22 16:34:15 -05:00
KOTungseth e10683c62a Content reorg 2019-07-22 16:12:56 -05:00
KOTungseth 9ca8129ec2 Reorg of interface changes 2019-07-22 16:12:39 -05:00