Commit graph

1221 commits

Author SHA1 Message Date
Nate Archer
51a6eeb6c2
[DOCS][SIEM]: Change Kibana advanced settings to match UI (#50679)
* [DOCS] Fix beta tag in Code Docs

* Change kibana advanced settings to match UI

* Add random line break for illustration
2019-11-14 14:42:48 -06:00
gchaps
930c156585
[DOCS] Adds note about backups to Upgrade doc (#50525)
* [DOCS] Adds note about backups to Upgrade doc

* [DOCS] Incorporates review comments in upgrade doc

* [DOCS] Fixes typo
2019-11-14 11:24:53 -08:00
gchaps
fef7be495e
[DOCS] Adds link to content security policy doc (#50698) 2019-11-14 10:32:35 -08:00
cachedout
30a70b3f3a
Add filebeat notice (#49065)
* Add filebeat notice

Refs https://github.com/elastic/kibana/pull/48929

* Update docs/user/monitoring/monitoring-troubleshooting.asciidoc

Co-Authored-By: Lisa Cawley <lcawley@elastic.co>

* Update docs/user/monitoring/monitoring-troubleshooting.asciidoc

Co-Authored-By: Lisa Cawley <lcawley@elastic.co>

* Update docs/user/monitoring/monitoring-troubleshooting.asciidoc

Co-Authored-By: Lisa Cawley <lcawley@elastic.co>

* Update docs/user/monitoring/monitoring-troubleshooting.asciidoc

Co-Authored-By: Lisa Cawley <lcawley@elastic.co>

* Update docs/user/monitoring/monitoring-troubleshooting.asciidoc

Co-Authored-By: Lisa Cawley <lcawley@elastic.co>

* Update docs/user/monitoring/monitoring-troubleshooting.asciidoc

Co-Authored-By: Lisa Cawley <lcawley@elastic.co>

* Fixup per review comments
2019-11-14 17:03:37 +00:00
gchaps
0af6ea3ba3
[DOCS] Updates Graph documentation (#50410)
* [DOCS] Updates graph documentation

* [DOCS] Adds information about terms per hop

* [DOCS] Incorporates review comments in Graph docs
2019-11-14 06:41:23 -08:00
Pierre Gayvallet
e04adbe34b
Remove react references from core Notifications apis (#49573)
* add reactMount util to kibana_react

(kibana-react) properly export reactMount

* add MountPoint types and utility

* adapt toast API to no longer accept react elements

(toast API) properly export new Toast type

* adapt calls by using reactMount

createNotifications: do not wrap if text

* update generated doc

* add custom snapshot serializer for reactMount

* fix unit tests

fix xpack unit tests

* adapt non-ts calls

* do not add __reactMount__ property in production

* remove string check on createNotifications

* fix typo and small fix using obj spread

* improve react mount snapshot serializer

* simplify convertToEui

* rename reactMount to toMountPoint

* adapt newly added calls

* move mount types to proper file

* use new Mount types for OverlayBanner apis

* fixing typo

* adapt new calls

* use destructured imports
2019-11-14 08:40:14 +01:00
gchaps
f11f0ff5ab
[DOCS] Removes dashboard-only mode doc (#50441) 2019-11-13 14:57:17 -08:00
Nathan Reese
9212eb2d5f
[Maps] make grid rectangles the default symbolization for geo grid source (#50169)
* [Maps] default grid aggregation source rendering to grid

* Update docs/maps/maps-aggregations.asciidoc

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

* add animated gif and text describing the animation

* clean up text

* simply text

* combine link to getting started with previous paragraph
2019-11-13 14:28:51 -07:00
Eli Perelman
6955593d01
Allow registered applications to hide Kibana chrome (#49795)
* Allow registered applications to hide Kibana chrome

* Fix bug in flipped value of application chromeHidden

* Add additional test for app chrome hidden versus chrome visibility

* Rename chromeHidden to chromeless

* Default chrome service app hidden observable to same value as force hidden

* Consolidate force hiding in chrome, add functional tests

* Move chromeless flag to App interface to prevent legacy applications from specifying

* Address review nits to improve separation
2019-11-13 14:57:15 -06:00
Yuliia Naumenko
a50dbefb62 [Newsfeed] UI plugin for Kibana (#49579)
* Added base folder structure for Newsfeed plugin

* Added base folders for lib and component

* Added newsfeed button to navigation controls on the right side

* add getApi() to return api data observable (#49581)

* Added flyout base body and provided EuiHeaderAlert component inside the newsfeed plugin

* Moved newsfeed plugin to OSS and added for the styles purpose new folder for legacy plugin 'newsfeed' with the same id to support this

* Added subscribe on fetch newsfeed change

* Add NewsfeedApiDriver class (#49710)

* add NewsfeedApiDriver class

* fix xpack prefix

* add corner case handling

* Added data binding to the ui

* added EuiHeaderAlert style overrides (#49739)

* Fixed due to comments on PR

* add missing fields to NewsfeedItem and FetchResult

* fix templating of service url

* gracefully handle temporary request failure

* Mapped missing fields for data and badge

* Fixed typos issues

* integrate i18n.getLocale()

* allow service url root to be changed in dev mode

* replace a lot of consts with config

* fix flyout height (#49809)

* Add "error" field to FetchResult: Error | null

* simplify fetch error handling

* Do not store hash for items that are filtered out

* add expireOn in case it is useful to UI

* always use staging url for dev config

* unit test for newsfeed api driver

* simplify modelItems

* Fixed eslint errors

* Fixed label translations

* Add unit test for concatenating the stored hashes with the new

* add newsfeed to i18n.json

* Fixed expression error

* --wip-- [skip ci]

* fix parse error

* fix test

* test(newsfeed): Added testing endpoint which simulates the Elastic Newsfeed for consumption in functional tests

* add tests for getApi()

* add tests for getApi

* Added no news page

* fix fetch not happening after page refresh with sessionStorage primed

* test(newsfeed): Added testing endpoint which simulates the Elastic Newsfeed for consumption in functional tests

* Added loading screen

* Small fixes due to comments

* Fixed issue with stop fetching news on error catch

* test(newsfeed): Configure FTS to point newsfeed to the simulated newsfeed endpoit

* Fixed browser error message: Invariant Violation: [React Intl] Could not find required `intl` object. <IntlProvider> needs to exist in the component ancestry.

* Fixed typo issue in label name

* polish the code changes

* Add simple jest/enzyme tests for the components

* honor utc format

* Filter pre-published items

* Fall back to en

* retry tests

* comment clarfication

* Setup newsfeed service fixture from test/common/config

* Added base functional tests for newsfeed functionality

* valid urlroot is for prod

* add documentation for the supported enabled setting

* more urlRoot

* --wip-- [skip ci]

* add the before for fn

* add ui_capabilties test

* update jest snapshot

* Fixed failing test

* finish newsfeed error functional test

* include ui_capability config

* error case testing in ci group 6

* refactor(newsfeed): moved newsfeed api call so that it is done before its use

* code polish

* enabled newsfeed_err test in CI
2019-11-13 08:48:34 -07:00
Pierre Gayvallet
e6ea2bf16b
Remove internal platform types exports (#50427)
* remove exports of internal core types

* updates documentation

* rename internal types file
2019-11-13 09:30:38 +01:00
Dario Gieselaar
6c3ee583c8
[APM] Document apm_oss.metricsIndices and `apm_oss.sourcemap… (#50312)
Closes #49847.
2019-11-13 08:54:18 +01:00
Nathan Reese
9fdbf82ab3
[skip-ci] Replace coordinate map in Kibana getting started docs with Maps (#50167)
* [Maps] replace coordinate map with Elastic Maps in Kibana getting started docs

* update dashboard getting started page

* update screen shot

* Update docs/getting-started/tutorial-visualizing.asciidoc

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

* review feedback

* update dashboard instructions to include step to set time fitler

* clean up more instances for vector style

* review feedback
2019-11-11 15:34:45 -07:00
István Zoltán Szabó
4860c055e1
[DOCS] Fixes typo in ML related privileges. (#50142) 2019-11-11 07:44:37 -05:00
Lisa Cawley
0d45daf6d4
[DOCS] Removes Extend your use case section (#49812) 2019-10-31 12:18:07 -07:00
Kaarina Tungseth
ded8950559
[DOCS] Canvas embeddable workpads (#45027)
* [DOCS] New Canvas snapshots documentation

* Changes from 1-Oct meeting

* Some tweaks

* Added beta tag

* Fixes to images

* Comments from Gail and Tim

* New images

* Final changes
2019-10-31 10:45:43 -05:00
Aleh Zasypkin
27c464e35d
Fix link to OpenID Connect Elasticsearch guide from the Kibana OpenID Connect docs. (#49731)
Co-Authored-By: Lisa Cawley <lcawley@elastic.co>
2019-10-30 19:40:29 +01:00
Matt Bargar
1dcec9d210
Add nested field support to KQL (#47070)
This PR adds a new syntax to KQL for querying nested fields.

Nested fields can be queried in two different ways:

Parts of the query may only match a single nested doc (bool inside nested). This is what most people want when querying on a nested field.
Parts of the query may match different nested docs (nested inside bool). This is how a regular object field works but nested fields can be queried in the same way. Although generally less useful, there are occasions where one might want to query a nested field in this way.
The new KQL syntax supports both.
2019-10-30 13:07:43 -04:00
Larry Gregory
29c5b44403
[DOCS] - fixing references to kibana_user role (#49309)
* fixing references to kibana_user role

* Update docs/uptime-guide/security.asciidoc

Co-Authored-By: Lisa Cawley <lcawley@elastic.co>


Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2019-10-30 07:08:01 -04:00
Marjorie Jones
5e05bbd05f
[DOCs] Rename some instances of Infrastructure to Metrics (#49195)
* Renaming Infrastructure to Metrics whenever the context is the metrics app.

* More renames, and picking up a few stray references to Infrastructure/Metrics/Logs UI too.

* Fixing typo
2019-10-29 11:29:21 +00:00
Nathan Reese
ce521bb281
[Maps] hide map visualization types with default kibana.yml settings (#49103)
* [Maps] hide map visualization types with default kibana.yml settings

* add docs explaining xpack.maps.showMapVisualizationTypes

* clean up docs

* fix docs build

* fix typescript failures

* move docs to troubleshooting section

* add message about xpack.maps.showMapVisualizationTypes in coordinate map and region map docs

* doc updates based on gchaps feedback

* Update docs/visualize/regionmap.asciidoc

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

* Update docs/visualize/tilemap.asciidoc

Co-Authored-By: gchaps <33642766+gchaps@users.noreply.github.com>
2019-10-28 18:30:25 -06:00
Mikhail Shustov
b6591eb0bd
Provide uiSettings service in NP (#48413)
* provide ui settins client via context

* update mocks

* update types and expose setDefaults to plugins

* move ui settings routes to NP

* add typings fro test kbn server

* move integration test & improve typings

* hide client private methods, update tests

* add unit tests for get_upgradable_config

* inline writeErrors into createOrUpgradeConfig to simplify testing

* regen docs

* add functional tests for ui_settings service

* unify test suites

* add types for sipertest in core_plugin tests

* tsify core_plugins tests

* add test for empty saved config

* update renovate

* rename get/setDefaults to reguster

* regen docs

* regen docs

* Update src/core/MIGRATION.md

Co-Authored-By: Josh Dover <me@joshdover.com>
2019-10-28 16:06:12 -04:00
Josh Dover
2d1c239fdd
Migrate necessary ui/autoload functionality to NP (#48689) 2019-10-28 12:58:29 -05:00
Court Ewing
0b82cfeae7
Remove experimental code app (#49404)
* Fix erroneous code plugin import in apm

* Stop running legacy code plugin

* Stop testing code app and apis

* Remove code plugin source and deprecate config

* Remove code plugin docs

* Remove xpack.code translations

* Remove code import on api_integration

* Remove code privilege from security test

* remove two more mentions of code

* remove code es_archives

* remove code doc images
2019-10-28 11:40:27 -04:00
Marjorie Jones
cbe6fd3e3d
[DOCS] Changes to support the split of the Metrics Guide and the Logs Guide (#48633)
* Linking to new Metrics and Logs documents

* Linking to new Metrics and Logs documents
2019-10-28 09:39:53 +00:00
Catherine Liu
9482ba5765
Fixed typo in formatnumber example (#49379) 2019-10-26 06:25:09 -07:00
Nick Peihl
3e89cb54de
Remove mapping type from example url (#49425) 2019-10-25 17:35:16 -07:00
gchaps
9bd8f74ff8
[DOCS] Updates Snapshot docs to include retention (#49007)
* [DOCS] Updates Snapshot docs to include retention

* [DOCS] Creates tutorial for snapshot & restore

* [DOCS] Incorporates review comments for Snapshot doc

* [DOCS] Fixes typo

* [DOCS] Adds x-pack label
2019-10-25 13:27:55 -07:00
gchaps
243a9815e3
[DOCS] Adds docs for API Keys UI (#49135)
* [DOCS] Adds docs for API Keys UI

* [DOCS] Incorporates review comments into API keys doc

* [DOCS] Fixes typo
2019-10-25 11:59:01 -07:00
Tim Schnell
a4d2638d48
[skip ci] Function Reference Docs Update (#48791)
* setting up function reference pattern

* adding functions A-F

* grammar fixes

* Apply suggestions from code review

Co-Authored-By: Catherine Liu <catherineqliu@outlook.com>

* more review updates
2019-10-25 12:27:11 -05:00
Gidi Meir Morris
2ac82dec61
[Saved Objects] Adds support for custom Refresh settings on mutating operations (#48932)
Adds the ability to override the Refresh setting of mutating operations (Update, Delete, Bulk, Index) of Saved Objects.
2019-10-25 08:28:55 +01:00
Pierre Gayvallet
ccd01a3af0
Migrate ui/doc_title to New platform (#48121)
* create NP docTitle service and bridge LP to it

Signed-off-by: pgayvallet <pierre.gayvallet@elastic.co>

* properly prefix the docTitle public types

Signed-off-by: pgayvallet <pierre.gayvallet@elastic.co>

* update documentation

Signed-off-by: pgayvallet <pierre.gayvallet@elastic.co>

* replace direct NP access with closure to avoid error when importing module in tests with no usages

Signed-off-by: pgayvallet <pierre.gayvallet@elastic.co>

* remove arrow functions for doc generation

Signed-off-by: pgayvallet <pierre.gayvallet@elastic.co>

* remove get$ from the api

Signed-off-by: pgayvallet <pierre.gayvallet@elastic.co>

* remove apply param and excludeBase option

Signed-off-by: pgayvallet <pierre.gayvallet@elastic.co>

* remove removed export

Signed-off-by: pgayvallet <pierre.gayvallet@elastic.co>

* adapt legacy service to new api

Signed-off-by: pgayvallet <pierre.gayvallet@elastic.co>

* add entry about docTitle in the migration guide

Signed-off-by: pgayvallet <pierre.gayvallet@elastic.co>

* add link in migration guide

Signed-off-by: pgayvallet <pierre.gayvallet@elastic.co>

* update generated doc

Signed-off-by: pgayvallet <pierre.gayvallet@elastic.co>

* update chrome mock

Signed-off-by: pgayvallet <pierre.gayvallet@elastic.co>

* update snapshots due to api change

Signed-off-by: pgayvallet <pierre.gayvallet@elastic.co>

* remove ChromeDocTitleChange in favor of inline type

Signed-off-by: pgayvallet <pierre.gayvallet@elastic.co>
2019-10-24 16:21:46 -07:00
Nathan Reese
48313f73f6
[Maps] add unique count metric aggregation (#48961)
* [Maps] add unique count metric aggregation

* do not format unique_count aggregation results

* do not format value in legend for unique count

* update heatmap docs

* one more doc change
2019-10-24 14:57:46 -06:00
Brandon Kobel
a149497b73
NP Security HTTP Interceptors (#39477)
* We have a NP plugin! :celebration:

* Redirecting to login on all 401s

* Adding commented out code for when credentials are omitted

* Fixing types

* Respond 403 when user changes password with incorrect current password

* Adding AnonymousPaths where we ignore all 401s

* Adding anonymous path tests

* Extracted a dedicated SessionExpires class and added tests

* Fixing plugin after refactoring to add SessionExpired

* Beginning to work on the session timeout interceptor

* Fixing UnauthorizedResponseInterceptor anonymous path test

* Removing test anonymous path

* Trying to improve readability

* Displaying session logout warning

* Mocking out the base path

* Revert "Mocking out the base path"

This reverts commit 824086c168.

* Changing coreMock to use a concrete instance of BasePath

* Adding session timeout interceptor tests

* Adding session timeout tests

* Adding more tests for short session timeouts

* Moving some files to a session folder

* More thrashing around: renaming and reorganizing

* Renaming Interceptor to HttpInterceptor

* Fixing some type errors

* Fixing legacy chrome API tests

* Fixing other tests to use the concrete instance of BasePath

* Adjusting some types

* Putting DeeplyMocked back, I don't get how DeeplyMockedKeys works

* Moving anonymousPaths to public core http

* Reading sessionTimeout from injected vars and supporting null timeout

* Doesn't extend session when there is no response

* Updating docs and snapshots

* Casting sessionTimeout injectedVar to "number | null"

* Fixing i18n issues

* Update x-pack/plugins/security/public/plugin.ts

Co-Authored-By: Larry Gregory <lgregorydev@gmail.com>

* Adding milliseconds postfix to SessionTimeout private fields

* Even better anonymous paths, with some validation

* Adjusting public method docs for IAnonymousPaths

* Adjusting spelling of base-path to basePath

* Update x-pack/plugins/security/public/session/session_timeout.tsx

Co-Authored-By: Larry Gregory <lgregorydev@gmail.com>

* Update src/core/public/http/anonymous_paths.ts

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

* Update src/core/public/http/anonymous_paths.ts

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

* AnonymousPaths implements IAnonymousPaths and uses IBasePath

* Removing DeeplyMocked

* Removing TODOs

* Fixing types...

* Now, ever more normal
2019-10-24 08:59:45 -07:00
István Zoltán Szabó
8a529f11ab
[DOCS] Adds list of privileges to file data viz (#49156) 2019-10-24 14:39:29 +02:00
Nathan Reese
531448e981
[skip-ci][Maps] clean-up documenation references to match UI text updates (#48993) 2019-10-23 07:52:38 -06:00
Nathan Reese
33d704b3d5
[skip-ci][Maps] Add tooltip documenation (#48171)
* [skip-ci][Maps] Add tooltip documenation

* mention field formatters

* gchap's updates
2019-10-21 12:02:34 -06:00
Eli Perelman
ab147e16fc
Pass along request object to all HTTP interceptors (#47258)
* Pass along request object to all HTTP interceptors

* Do not trigger response interceptors from request errors; make request readonly

* Update core API

* Fix failing test

* Add tests to ensure that interceptors accumulate request and response across calls

* Make request readonly for request error interception, simplify response interception return types

* Update docs from request and response interception API change

* Add missing InterceptedHttpResponse generated docs
2019-10-18 15:23:03 -05:00
Melori Arellano
8d34f25134
[DOCS] Add space_id path parameter to saved_object APIs (#47627)
* [DOCS] Add space_id path parameter to saved_object APIs

* [DOCS] Apply suggested edits for #47627

* [DOCS] Apply suggested edits for #47627 to delete API
2019-10-18 11:17:54 -06:00
Lisa Cawley
ed9abf057c
[DOCS] Updates links to Stack Overview (#48582) 2019-10-17 14:41:13 -07:00
Eli Perelman
1762782943
Supply deprecated req and res properties on IHttpFetchError for legacy compatibility (#48430) 2019-10-17 10:52:25 -05:00
Gidi Meir Morris
3f4024c398
[Saved Objects] Add support for bulkUpdate to SavedObjectsClient (#47540)
This PR adds support for `bulkUpdate` to the Saved Objects API and exposes it on all Saved Objects clients (base client, encrypted, spaces etc.).
2019-10-17 11:12:27 +01:00
Kaarina Tungseth
1e3f14395c
[DOCS] API intro (#47164)
* [DOCS] API intro

* Logstash configuration management

* Reformatting

* Comments from Josh

* Commets from Gail

* Fixed broken things
2019-10-16 15:10:40 -05:00
Mikhail Shustov
5676ac00ab
UI settings move to NP (#47590)
* add tests for logWithMetadata in LP

* allow passing metadata to log in NP & LP

* move ui_settings_client to NP

* add ui_settings config

* add ui_settings_service

* switch to NP logging

* export types

* bootstrap uiSettings service in NP

* pass NP uiSettings to LP

* move ui_settings mock to NP

* add  test for mixin and switch to NP logger

* make UiSettingsClient.getDefaults sync as it is

* ui_settings_client uses private fields

* ui_settings_client uses private methods

* keep uiSettings config validation in NP only

* update mocks

* core context should know it is mocked

* add tests for ui_settings_service

* remove unused code from ui_settings_mixin test

* improve types in ui_settings_mixin test

* gen docs

* test moved to NP

* set pkg version in tests explicitly

* update mocks in tests

* UiSettingsServiceSetup --> InternalUiSettingsServiceSetup

* add links to types

* address eli comment

* regen docs

* remove unused types
2019-10-16 14:18:34 +02:00
Pierre Gayvallet
7df981fbf8 Ignore missing references on saved object exports (#47685)
* add saved object export details in ndjson response

Signed-off-by: pgayvallet <pierre.gayvallet@elastic.co>

* update core doc

Signed-off-by: pgayvallet <pierre.gayvallet@elastic.co>

* exclude export details for space copy

Signed-off-by: pgayvallet <pierre.gayvallet@elastic.co>

* fixing tests

Signed-off-by: pgayvallet <pierre.gayvallet@elastic.co>

* display warning instead of success if export contains missing refs

Signed-off-by: pgayvallet <pierre.gayvallet@elastic.co>

* nits/typo

Signed-off-by: pgayvallet <pierre.gayvallet@elastic.co>

* properly updates api integration tests

Signed-off-by: pgayvallet <pierre.gayvallet@elastic.co>

* fix typings

Signed-off-by: pgayvallet <pierre.gayvallet@elastic.co>

* add test on objects_table component

Signed-off-by: pgayvallet <pierre.gayvallet@elastic.co>

* remove added translations from jp/cn bundles

Signed-off-by: pgayvallet <pierre.gayvallet@elastic.co>

* restoring line feeds

Signed-off-by: pgayvallet <pierre.gayvallet@elastic.co>

* improve doc and user alert message

Signed-off-by: pgayvallet <pierre.gayvallet@elastic.co>

* restoring line feeds on server.api.md

Signed-off-by: pgayvallet <pierre.gayvallet@elastic.co>

* warning test label

Signed-off-by: pgayvallet <pierre.gayvallet@elastic.co>
2019-10-16 12:48:34 +02:00
Rudolf Meijering
3d28467d00
Server saved objects client through request context (#44143)
* Expose Saved Objects client in request context

* API Integration test for savedobjects in req context

* SavedObjectsClient docs

* SavedObjectsClient#find remove dependency on indexPatterns

And use the saved objects mappings instead

* Review comments

* Review comments, fixes and tests

* Use correct type for KQL syntax check
2019-10-16 10:36:40 +02:00
Ahmad Bamieh
a42a767285
[Telemetry] Move to OSS (#45769)
* update paths and licenses

* localization collector in oss

* node-crypto typings in oss

* update telemetry i18n labels

* update translation rc files

* remove duplicate components in home for telemetry

* update tests

* finalize collection + move csp collector to oss

* self review

* use apm instead of beats

* xpack collection

* fix collection tests

* remove space specific settings

* mock npSetup and npStart

* disable banner in tests

* remove commented mock

* monitoring np telemetry fixes

* replace telemetryOptedIn in oss instead of xpack_main

* fix telemetry OptIn test
2019-10-16 10:24:20 +03:00
Lisa Cawley
611409f160
[DOCS] Fixes link to node.js documentation (#48334) 2019-10-15 17:33:08 -07:00
Lisa Cawley
0ed925b077
[DOCS] Fix missing attribute (#48298) 2019-10-15 16:07:31 -07:00
Luca Belluccini
b0dd6c8c71 Provide an example for timepicker:refreshIntervalDefaults (#47345)
* Provide an example for timepicker:refreshIntervalDefaults

Add an example for `timepicker:refreshIntervalDefaults`

* align with master
2019-10-15 10:14:09 -07:00