Commit graph

27678 commits

Author SHA1 Message Date
gchaps b0faa0a256
[DOCS] Adds note about backups to Upgrade doc (#50525) (#50722)
* [DOCS] Adds note about backups to Upgrade doc

* [DOCS] Incorporates review comments in upgrade doc

* [DOCS] Fixes typo
2019-11-14 12:53:54 -08:00
Eli Perelman 647092dc23
Allow chromeless applications to hide left navbar link (#50060) (#50664) 2019-11-14 14:50:16 -06:00
Chris Roberson fca66a0a28
[Monitoring] De-duplicate pipeline ids based on the ephemeral_id changing (#49978) (#50671)
* De-duplicate pipeline ids based on the ephemeral_id changing

* Add tests
2019-11-14 15:42:00 -05:00
Gidi Meir Morris 6d517e16e6
[Task manager] Adds ensureScheduling api to allow safer rescheduling of existing tasks (#50232) (#50705)
Adds an ensureSchedule api to Task Manager which allow safer rescheduling of existing tasks by handling the case where a Task with a known ID is scheduled and clashes with an existing schedule of that same task.
2019-11-14 15:17:11 -05:00
gchaps 6a7435b112
[DOCS] Adds link to content security policy doc (#50698) (#50706) 2019-11-14 11:49:28 -08:00
Liza Katz f2029be705
[7.x] Moved filter generator ⇒ NP (#50118) (#50655)
* Moved filter generator ⇒ NP (#50118)

* Moved filter generator to NP

* Deleted unused test

* Fixed browser test + fix to discover actions

* Added jsdcos

* eslint
2019-11-14 19:41:56 +02:00
Tyler Smalley c71c5f9137 [7.x] Skips flaky Canvas Sharable Runtime test
https://github.com/elastic/kibana/issues/48842

Signed-off-by: Tyler Smalley <tyler.smalley@elastic.co>
2019-11-14 09:39:39 -08:00
Tyler Smalley 562bb933ac [7.x] Resolves ESLint errors
Signed-off-by: Tyler Smalley <tyler.smalley@elastic.co>
2019-11-14 09:39:31 -08:00
gchaps b5ba3b4178
[DOCS] Updates Graph documentation (#50410) (#50677)
* [DOCS] Updates graph documentation

* [DOCS] Adds information about terms per hop

* [DOCS] Incorporates review comments in Graph docs
2019-11-14 09:05:09 -08:00
gchaps 80ba1466c6
[DOCS][7.x] Removes dashboard only mode doc (#50581) 2019-11-14 08:40:06 -08:00
Greg Thompson 2a7a122dab
Upgrade EUI to v14.9.0 (#49678) (#50526)
* eui to 14.9.0

* euiswitch updtates

* misc snapshot

* x-pack functional fixes

* more euiswitch functional test fixes

* label-less switches for spaces management

* more euiswitch fixes

* telemetry form a11y

* snapshot update

* label updates

* more switch updates

* lint
2019-11-14 09:04:02 -06:00
Steph Milovic c683e07df5
[SIEM] HTTP Requests table (#49955) (#50071) 2019-11-14 07:32:00 -07:00
Peter Pisljar 3382f171e5
remove angular from Vis (#50402) (#50640) 2019-11-14 09:03:44 -05:00
Marta Bondyra 87625dc98a
[7.x] feat: replace autocomplete for exists operator from ':*'… (#50636) 2019-11-14 14:31:35 +01:00
Anton Dosov c2cc9f306c
Add test for implicitly fixed #45150 (#50284) (#50638)
#45150 appeared in 7.3 and disappeared in 7.4
2019-11-14 14:31:07 +01:00
Pete Harverson acf7186cf8
[ML] sets truncateText to true for the 'Latest timestamp' column (#50004) (#50635)
* sets truncateText to true for the 'Latest timestamp' column

* Truncates the creation time at the analytics panel
2019-11-14 13:02:50 +00:00
Dima Arnautov 3f8cb0e323
[ML] Fix escape special characters for Lucene query language (#50494) (#50630)
* [ML] avoid special characters escaping for Lucene query language

* [ML] unit test

* [ML] init the callback at the higher scope
2019-11-14 14:00:55 +01:00
Liza Katz 3b1768f007
Move query utils ⇒ NP (#49636) (#50633)
* Move query utils to NP

* Updated Query imports

* A few import fixes

* Fix import

* Fix docs
2019-11-14 14:49:25 +02:00
Joe Reuter 112be014a8
Shim dev tools (#49349) (#50625) 2019-11-14 13:10:05 +01:00
Jean-Louis Leysens 039ef1967e
[Rollup] Fix for clone job workflow (#50501) (#50621)
* First iteration of fix for clone job workflow

* Second iteration of fix, previous had race condition :gasp:

* Slight revision to logic and added test for wizard with rollup job after index pattern changed
2019-11-14 12:54:08 +01:00
Cauê Marcondes ef3e8f0413
[APM] Duration by Country map doesn't take transactionName into account (#50315) (#50617)
* filtering country map by transaction name

* filtering country map by transaction name

* filtering country map by transaction name
2019-11-14 12:36:54 +01:00
Cauê Marcondes 6f887e9ddd
Empty message "No data available" for Labels and User metadata sections missing (#49846) (#50619)
* Adding missing data message when sections are required

* refactoring test

* fixing unit test
2019-11-14 12:36:35 +01:00
MadameSheema 0edf8aafc3
fixes inspect tests (#50510) (#50626) 2019-11-14 12:22:54 +01:00
Pierre Gayvallet 1722e28294
[7.x] Remove react references from core Notifications apis (#49573) (#50616)
* 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

* adapt call in 7.x
2019-11-14 10:36:08 +01:00
Oliver Gupte 34f3feef67
Updated APM Indices endpoints to use the SavedObjectsClient from the legacy request context, and set the apm-indices schema object to be namspace-agnostic (#50615)
- rename apm-telemetry save object mapping -> apm-services-telemetry (#49994)
- move saved object types and document IDs to constants file
- Updated APM Indices endpoints to use the SavedObjectsClient from the
  legacy request context, and set the apm-indices schema object to be
  namspace-agnostic.
2019-11-13 23:47:08 -08:00
Maryia Lapata 2fe872b93f
Move table-list-view to kibana-react (#50046) (#50310)
* Move table-list-view to kibana-react

* Pass ui/* import as props

* Update i18n message ids

* Fix TS

* Fix unit tests
2019-11-14 09:51:04 +03:00
Tiago Costa bf795de4e0
chore(NA): add new platform discovered plugins as entry points to check for dependencies on clean dll tasks (#50610) (#50611) 2019-11-14 04:23:16 +00:00
Frank Hassanabad f115dfac04
[SIEM][Detection Engine] REST API Additions (#50514) (#50584)
## Summary

Added these to the create and update API:
* tags - Array string type (default [])
* False positives - Array string type (default [])
* immutable - boolean (default -- false)

Added these instructions to the READM.md
* Added "brew install jq" for all the scripts to work in the scripts folder in README.md
* Added tip for debug logging

Changed these shell scripts: 
* Removed the delete all api keys from the hard_reset script
* Changed the script for converting to rules to use the new immutable flag.

Testing
* Added unit tests for new schema types
* Added ad-hoc test for scripts
* Test ran through the saved searches 

### 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)~~

~~- [ ] 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)~~

~~- [ ] [Documentation](https://github.com/elastic/kibana/blob/master/CONTRIBUTING.md#writing-documentation) was added for features that require explanation or tutorials~~

- [x] [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-11-13 19:33:16 -07:00
Ahmad Bamieh 8196e0cdcd
[7.x] [Telemetry] change of optin status telemetry (#50158) (#50607)
* initial push

* self code review

* ignore node-fetch type

* usageFetcher api

* user agent metric

* telemetry plugin collector

* remove extra unused method

* remove unused import

* type check

* fix collections tests

* pass kfetch as dep

* add ui metrics integration test for user agent

* dont start ui metrics when not authenticated

* user agent count always 1

* fix broken ui-metric integration tests

* try using config.get

* avoid fetching configs if sending

* type unknown -> string

* check if fetcher is causing the issue

* disable ui_metric from functional tests

* enable ui_metric back again

* ignore keyword above 256

* check requesting app first

* clean up after all the debugging :)

* fix tests

* always return 200 for ui metric reporting

* remove boom import

* logout after removing role/user

* undo some changes in tests

* inside try catch

* prevent potential race conditions in priorities with =

* use snake_case for telemetry plugin collection

* refactors needed to extract cluster uuid based on collection

* refactoring uuid getters

* revert unneeded changes from merge

* finish server/browser fetching

* skip a test  :(

* skip handle_old

* merge master

* fix failing tests
2019-11-14 03:46:20 +02:00
Tyler Smalley 45e3cc25f0 Skip flaky "<Settings /> can navigate Autoplay Settings, closes" test
Signed-off-by: Tyler Smalley <tyler.smalley@elastic.co>
2019-11-13 16:13:49 -08:00
Caroline Horn 446f26978c
[Filters] Fix operator overflowing out popover (#50030) (#50535)
* Fixes combo overflow when the selected field is large

* Prettier quotes

* Changes the style class attribute to use Eui calculation and also the
class name to conform to the BEM naming convention

* Lints src/plugins/newsfeed/public/lib/api.test.ts
2019-11-13 19:04:38 -05:00
Nathan Reese 75888664d2
[Maps] make grid rectangles the default symbolization for geo grid source (#50169) (#50527)
* [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 15:59:38 -07:00
Tyler Smalley ea4bf92bbf Skip flaky "<Settings /> can navigate Autoplay Settings" test
Signed-off-by: Tyler Smalley <tyler.smalley@elastic.co>
2019-11-13 14:34:48 -08:00
Eli Perelman 7bf7f1e50a
Allow registered applications to hide Kibana chrome (#49795) (#50524)
* 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 16:30:59 -06:00
Tim Sullivan 53af425c62
[7.x] [Newsfeed] UI plugin for Kibana (#49579) (#50503)
* [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

* allow default export for ftr file

* [Newsfeed/Lint] fix chained fn lint
2019-11-13 14:36:23 -07:00
Corey Robertson c8d8047113
[Canvas] Fix incompatible ie11 method (#50007) (#50480)
* Fix incompatible ie11 method

* Comment about origin of polyfill
2019-11-13 16:25:26 -05:00
Lukas Olson 384b037d7d [Search service] Add support for ES request preference (#49424)
* Add support for ES preference

* Fix name of test
2019-11-13 13:23:01 -07:00
Corey Robertson 81d1f59866
Fixing bugs in the Shareable Runtime (#49965) (#50243)
* Fixing bugs in the Shareable Runtime

* Updating snapshots
2019-11-13 14:53:18 -05:00
Tim Roes b08dc0c8b4
[7.x] Upgrade Prettier 1.19 (#50506)
* Upgrade Prettier to 1.19

* Fix all prettier issues
2019-11-13 20:13:45 +01:00
Chris Roberson b601b692ac
[Monitoring] Fix logstash pipelines page in multi-cluster environment (#50166) (#50507)
* Ensure we pass in the clusterUuid

* Add test
2019-11-13 14:10:16 -05:00
MadameSheema 3f648dff1c
[SIEM] Events viewer fixes (#50175) (#50505)
* updates KQL_SEARCH_BAR locator

* updates HEADER_SUBTITLE locator

* waits for the events to be loaded
2019-11-13 19:59:06 +01:00
Joel Griffith cbcf601720
[7.x] [Telemetry] Remove telemetry splash page and add conditional messaging (#50189) (#50429)
* [Telemetry] Remove telemetry splash page and add conditional messaging (#50189)

* Removing tel splash page in UI layer

* Removing more components

* New disclaimer text

* Removing telemetry i18n text

* More i18n text removals

* Snapshot updates

* Snapshot tests + quick links for tel opt-out when possible

* Fixing TS issues in test

* i18n updates
2019-11-13 10:21:42 -08:00
Dario Gieselaar 57ab6e7ffb
[7.x] [APM] Use callWithInternalUser for agent configuration e… (#50488)
* [APM] Use callWithInternalUser for agent configuration endpoints

Closes #50050.

* Review feedback

* Use internalClient for agent conf queries only
2019-11-13 19:09:25 +01:00
Dario Gieselaar e9bad96d1f
[7.x] [APM] Document apm_oss.metricsIndices and `apm_oss.sou… (#50457)
Closes #49847.
2019-11-13 19:07:18 +01:00
Ahmad Bamieh d7992f9bf0 [Telemetry] Server side fetcher (#50015) (#50454)
* initial push

* self code review

* ignore node-fetch type

* usageFetcher api

* user agent metric

* telemetry plugin collector

* remove extra unused method

* remove unused import

* type check

* fix collections tests

* pass kfetch as dep

* add ui metrics integration test for user agent

* dont start ui metrics when not authenticated

* user agent count always 1

* fix broken ui-metric integration tests

* try using config.get

* avoid fetching configs if sending

* type unknown -> string

* check if fetcher is causing the issue

* disable ui_metric from functional tests

* enable ui_metric back again

* ignore keyword above 256

* check requesting app first

* clean up after all the debugging :)

* fix tests

* always return 200 for ui metric reporting

* remove boom import

* logout after removing role/user

* undo some changes in tests

* inside try catch

* prevent potential race conditions in priorities with =

* use snake_case for telemetry plugin collection

* usageFetcher -> sendUsageFrom

* more replacements

* remove extra unused route

* config() -> config

* Update src/legacy/core_plugins/telemetry/index.ts

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

* Update src/legacy/core_plugins/ui_metric/server/routes/api/ui_metric.ts

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

* config() -> config

* fix SO update logic given the current changes

* fix opt in check

* triple check

* check for non boolean

* take into account older settings

* import TelemetryOptInProvider

* update test case
2019-11-13 12:29:00 -05:00
Liza Katz cf7b36faae
Move temporary types in data plugin to common/types. (#50280) (#50495)
* Move temporary ui imported types in data plugin to common/types.
Remove unnecessary mocks.

* Updated dashboard, discover and visualize mappings - type removal

* Revert "Updated dashboard, discover and visualize mappings - type removal"

This reverts commit 5e931ce62a.
2019-11-13 19:25:32 +02:00
James Gowdy 5dadb0abc1
[ML] Server info service refactor (#50302) (#50466)
* [ML] Server info service refactor

* removing new job defaults

* changes based on review

* renaming all ml server info getter functions

* missed a file
2019-11-13 16:10:30 +00:00
Artyom Gospodarsky 416bd147b1 Move mockFields and mockIndexPatterns to relevant directories (#50012) (#50475)
* Move mockFields and mockIndexPatterns to relevant directories

* Restructure stubs store

* Remove test code from production files

* Restructure stubs store
2019-11-13 18:07:28 +02:00
Patrick Mueller 35644b1897
update telemetry banner notice text (#50403) (#50477)
Simplifies the telemetry banner for customers.
2019-11-13 10:07:03 -05:00
Pierre Gayvallet 45533f3809
Remove internal platform types exports (#50427) (#50459)
* remove exports of internal core types

* updates documentation

* rename internal types file
2019-11-13 13:23:52 +01:00