Commit graph

28866 commits

Author SHA1 Message Date
Cauê Marcondes c982b8f4dc
[APM] Update Error occurrences graph tooltip to display start and end for bucket period (#49638)
* Adding end time inside error tooltip

* changing end time precision

* refactoring

* refactoring

* pr comments refactoring

* pr comments refactoring

* pr comments refactoring

* pr comments refactoring

* renaming some functions to make it more clear

* Refactoring date difference range

* refactoring transformers file

* refactoring date time formatters

* refactoring formatters into a new folder

* refactoring getDurationUnit

* refactoring duration formatter

* fixing unit test

* refactoring unit test

* Adding timezone to tests

* fixing translation issue

* fixing translation issue

* improving code

* exporting toMicroseconds

* removing unused import

* refactoring duration

* refactoring duration

* fixing unit test

* fixing unit test
2019-11-15 13:26:57 +01:00
Dima Arnautov 0c42aa8a58
[ML] Add the job message tab to data frame analytics (#50468)
* [ML] get analytics job messages from ml-notifications

* [ML] remove commented import

* [ML] add job_type filter for anomaly_detector

* [ML] job messages component

* [ML] update styles

* [ML] update job messages container for anomaly detection with async await

* [ML] fix passing a prop

* [ML] fix types and error message

* [ML] fix i18n

* [ML] fix text alignment

* [ML] remove duplicated copyright comment
2019-11-15 12:56:24 +01:00
Pete Harverson 1a8bb3a223
[ML] Fixes word wrap in Overview page sidebar on IE (#50668) 2019-11-15 10:05:58 +00:00
Tim Roes 70d6220a41
Upgrade to TypeScript 3.7.2 (#47188)
* Update TS to 3.7.0-beta

* Upgrade to TypeScript 3.7.2

* Upgrade cypress to 3.5.0

* Upgrade apollo-link-http

* Update prettier

* Fix expression types

* Fix Lens test typings

* Fix ML breakage

* Fix APM breakage

* Fix sinon stub typing

* Fix beats management types

* Fix WMSOptions types

* Fix ui_filters in APM

* APM: Explicitly type Setup to prevent hitting TS limits

* Change file name to correct case

* Add styleguide rule for optional chaining

* Update typescript-eslint packages

* Revert changes in ui filters routes that are no longer needed
2019-11-15 10:33:29 +01:00
Marta Bondyra c3d0349fb0
fix: hide 'edit' button for mobile for dashboards (#50639) 2019-11-15 10:29:38 +01:00
MadameSheema 38899f0879
fixes conditional links tests (#50642) 2019-11-15 09:57:52 +01:00
patrykkopycinski eb0141d660
[SIEM] Fix IE11 timeline drag and drop issue (#50528) 2019-11-15 09:06:22 +01:00
Xavier Mouligneau 3131dd494d
[SIEM] Add SavedQuery in Timeline (#49813)
* Step-1: Add Search Bar in timeline instead of our own kql

* Step-2: Add the saved query with filter in timeline savedObject

* fix type

* Fix unit test

* fix bug when you use an exists filter

* Fix bug to do a search when add filter by itself

* Review I

* unit tests

* fix import for Filter

* add range as a filter

* remove comment

* forget to add range in ES mapping + allow query with only filters

* fix and/or with filter

* review with Liza
2019-11-14 20:45:21 -05:00
Tiago Costa 48a2156c4c
chore(NA): remove code plugin from codeowners (#50451) 2019-11-15 00:19:57 +00:00
gchaps bd96d738dc
[DOCS] Adds documentation on telemetry settings (#50739)
* [DOCS] Adds documentation on telemetry settings

* [DOCS] Adds not that both settings can't be false at the same time
2019-11-14 15:28:32 -08:00
Zacqary Adam Xeper c40b320104
[Logs UI] Add IE11-specific CSS fixes for anomalies table (#49980)
* [Logs UI] Add IE11-specific CSS fixes for anomalies table

* Switch to table-layout fix
2019-11-14 16:50:23 -06:00
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
Mike Côté e93cfd4805
Change URLs for support menu (#50700) 2019-11-14 15:35:23 -05:00
Tim Sullivan 08471cc88a
[Reporting] Remove any types and references to Hapi (#49250)
* [Reporting] Remove any types and references to Hapi

* clarification comment

* fix import
2019-11-14 12:56:15 -07: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
Felix Stürmer 73697c1777
[Logs UI] Improve infra plugin compatibility with TS 3.7 (#50491)
This prepares the `infra` plugin code to be compatible with TypeScript 3.7. It should not have any user-facing changes.
2019-11-14 13:52:59 -05:00
Gidi Meir Morris d7771285c7
[Task manager] Adds ensureScheduling api to allow safer rescheduling of existing tasks (#50232)
Adds an ensureScheduling 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 13:44:00 -05:00
gchaps fef7be495e
[DOCS] Adds link to content security policy doc (#50698) 2019-11-14 10:32:35 -08:00
Michael Basnight 790739b41b
Remove duplicate but in error message (#50530) 2019-11-14 12:27:27 -06:00
Melissa Alvarez 2516f94ee6
[ML] DF Analytics: Ensure creation flyout can be opened when no jobs exist (#50417)
* Ensure create flyout can be open when no jobs exist

* remove redundant isModalVisible check
2019-11-14 12:16:14 -05: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
Chris Roberson 5a8fabde72
[Monitoring] De-duplicate pipeline ids based on the ephemeral_id changing (#49978)
* De-duplicate pipeline ids based on the ephemeral_id changing

* Add tests
2019-11-14 11:10:48 -05:00
Andrew Cholakian 063d13b092
[Uptime] Hide integration using IP when IP not present (#50138)
Fixes https://github.com/elastic/kibana/issues/49366 , where this issue
was first described. If linking is based on IP we should only show the
link if we actually have an IP.
2019-11-14 10:47:41 -05:00
Eli Perelman e44616e8fc
Allow chromeless applications to hide left navbar link (#50060) 2019-11-14 09:36:03 -06: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
Tim Sullivan 0e9b576b6f
[Reporting] Convert main Reporting index to TS (#49129)
* [Reporting] Convert main Reporting index to TS

* fix typo that broke build

* fix type file import

* fix the ts imports for build
2019-11-14 07:29:49 -07:00
Liza Katz 6219cfdc16
Moved filter generator ⇒ NP (#50118)
* Moved filter generator to NP

* Deleted unused test

* Fixed browser test + fix to discover actions

* Added jsdcos
2019-11-14 16:26:58 +02:00
Peter Pisljar 4f888196b7
remove angular from Vis (#50402) 2019-11-14 07:34:20 -05:00
Anton Dosov b5a0d4b03d
Add test for implicitly fixed #45150 (#50284)
#45150 appeared in 7.3 and disappeared in 7.4
2019-11-14 13:08:50 +01:00
ffknob 6a6fc51bf8 [ML] sets truncateText to true for the 'Latest timestamp' column (#50004)
* sets truncateText to true for the 'Latest timestamp' column

* Truncates the creation time at the analytics panel
2019-11-14 11:31:58 +00:00
Marta Bondyra 9aca58966d
feat: replace autocomplete for exists operator from ':*' to ': *' (#50293) 2019-11-14 12:22:39 +01:00
Dima Arnautov f24497745b
[ML] Fix escape special characters for Lucene query language (#50494)
* [ML] avoid special characters escaping for Lucene query language

* [ML] unit test

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

* Updated Query imports

* A few import fixes

* Fix import

* Fix docs
2019-11-14 13:06:36 +02:00
MadameSheema cbc1c7d52f
fixes inspect tests (#50510) 2019-11-14 10:51:25 +01:00
Joe Reuter 62d035390e
Shim dev tools (#49349) 2019-11-14 10:38:44 +01:00
Jean-Louis Leysens d43c5c618c
[Rollup] Fix for clone job workflow (#50501)
* 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 10:12:18 +01:00
Cauê Marcondes 57d090f2f8
Empty message "No data available" for Labels and User metadata sections missing (#49846)
* Adding missing data message when sections are required

* refactoring test

* fixing unit test
2019-11-14 08:48:33 +01:00
Cauê Marcondes 353619b6aa
[APM] Duration by Country map doesn't take transactionName into account (#50315)
* filtering country map by transaction name

* filtering country map by transaction name

* filtering country map by transaction name
2019-11-14 08:47:52 +01: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
Oliver Gupte cd67addf15
Updated APM Indices endpoints to use the SavedObjectsClient from the legacy request context, and set the apm-indices schema object to be namspace-agnostic
- 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 21:26:22 -08:00
Phillip Burch bc7b7df00d
[Metrics UI] Calculate interval based on the dataset's period (#50194)
* Calculate interval based on the dataset's period

* Remove unused import

* Handle empty data case

* Update x-pack/legacy/plugins/infra/server/utils/calculate_metric_interval.ts

Co-Authored-By: Chris Cowan <chris@chriscowan.us>

* Update x-pack/legacy/plugins/infra/server/routes/metrics_explorer/lib/populate_series_with_tsvb_data.ts

Co-Authored-By: Chris Cowan <chris@chriscowan.us>
2019-11-13 21:59:04 -06:00
Tiago Costa 70c8a14eca
chore(NA): add new platform discovered plugins as entry points to check for dependencies on clean dll tasks (#50610) 2019-11-14 02:59:22 +00:00
Ahmad Bamieh 071656b908
[Telemetry] change of optin status telemetry (#50158)
* 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 02:20:27 +02:00
Frank Hassanabad 6f7ca4a4f4
[SIEM][Detection Engine] REST API Additions (#50514)
## 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 17:13:44 -07:00
gchaps f11f0ff5ab
[DOCS] Removes dashboard-only mode doc (#50441) 2019-11-13 14:57:17 -08:00
ffknob 88aebf07b6 [Filters] Fix operator overflowing out popover (#50030)
* 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 17:23:37 -05:00
Mike Côté bff235bf77
Change telemetry optIn to default to true (#50490)
* Change optIn to default to true

* Update snapshot

* Fix eslint errors
2019-11-13 17:10:36 -05: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
Greg Thompson 998b0e6fd6
Upgrade EUI to v14.9.0 (#49678)
* 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-13 14:54:21 -06:00