Commit graph

25903 commits

Author SHA1 Message Date
Dario Gieselaar eae04f63df
[APM] Context-aware query examples for the query bar (#38915)
* [APM] Context-aware query examples for the query bar

We now adjust the query example based on whether the user is viewing transactions, errors or metrics.

* Change query example for transactions

* Address review feedback

* Fix ts issues in unit tests

* Use enum for route names, clarify queryExample w/ comment
2019-06-25 13:20:13 +02:00
Dario Gieselaar 650550c2ba
[APM] Change labels of user agent (#39337)
* [APM] Change labels of user agent

* Make everything but .name optional in TransactionRaw

* Fall back to os.name if os.full is undefined
2019-06-25 12:38:35 +02:00
Daniil Suleiman d39c6b267d
[Vis: Default editor] Euificate schema editors (#39331)
* EUIficate schema editors

* Fix types

* Fix comments and functional tests

* Add percentage to a tooltip

* Remove extra ts-ignore
2019-06-25 12:12:02 +03:00
Liza Katz 6a97f9a7ee
Stop using top nav template option, and instead use ru (#39518) 2019-06-25 11:56:48 +03:00
Mikhail Shustov e43c7cf9e3
window.crypto.subtle cannot be used in insecure env (#39428)
* window.crypto.subtle cannot be used in insecure env

* set extension. otherwise definition prioritiezed over js file

* move js to ts. fix build

* remove polyfills

* remove ext

* remove crypto from legacy
2019-06-25 09:49:06 +02:00
Peter Pisljar 01610b1a46
moving font function to OSS (#37619) 2019-06-25 09:48:48 +02:00
Tim Roes 850e7fb163
Add dateHistogramInterval utility (#39091)
* Add dateHistogramInterval utility

* Fix editor bug

* Fix tests

* FIx imports to temporary solution

* Remove wrongly merged translations

* Remove old static.ts file
2019-06-25 09:32:43 +02:00
David Roberts a139020c56
[ML] When importing CSV through file data viz, omit empty values (#39524)
CSV cannot distinguish between null and empty string.
Empty CSV values in numeric and date fields are better
considered as null rather than empty string, as empty
strings are rejected by Elasticsearch for these mapping
types. For consistency this change omits all empty
values from CSV records from the derived JSON document.

Fixes #39240
2019-06-25 06:36:15 +01:00
Yulong fbcd355f6c
[Code] api for lsp initialize state (#39425)
* [Code] added a api for lsp initialize state

* [Code] fix hang if lang-server exited during indexing
2019-06-25 09:50:13 +08:00
Nathan Reese e779ae71be
[Maps] do not allow save when map has unsaved layer changes (#39529)
* [Maps] do not allow save when map has unsaved layer changes

* fix jest test

* refactor add layer panel functional tests
2019-06-24 19:39:03 -06:00
Nathan Reese 7c7599ab84
[Maps] move symbol style property to top of UI (#39534)
* [Maps] move symbol style property to top of UI

* fix jest tests
2019-06-24 18:35:48 -06:00
Mengwei Ding 86ec72d443
[Code] always enforce HEAD revision for indexing even when repo get updated during index (#39528) 2019-06-24 15:09:10 -07:00
Josh Dover 91a5a54c78
Move ui/documentation_links to Core (#39411) 2019-06-24 13:57:21 -05:00
Kaarina Tungseth c4d2200ec2
[DOCS] Canvas getting started (#38324)
* [DOCS] Canvas Getting Started

* Area chart content

* Time filter content

* Intro, image, and clean up

* Removed extra spaces

* Comments from Rashmi and Bhavya

* Comments from Tim

* Comments from Gail and Ryan
2019-06-24 13:06:28 -05:00
Jonathan Budzenski 5f1d4cac79
[kbn-es] unset JAVA_HOME when using snapshot bundled jdk (#37316)
* [kbn-es] unset JAVA_HOME when using snapshot bundled jdk

* set explicitly
2019-06-24 12:59:18 -05:00
Jonathan Budzenski 4a583cec4f
[docs/production] multiple es nodes (#30276)
* [docs/production] multiple es nodes

* note console limitation

* mention related configuration
2019-06-24 12:58:46 -05:00
Mengwei Ding bf043e7513
[Code] Escape highlight extracting regex and use term ES query for document search (#39473) 2019-06-24 10:06:22 -07:00
Mengwei Ding 688e39051c
[Code] Prevent send all repository status requests in source view page (#39407) 2019-06-24 08:38:20 -07:00
Meir Meshi 0e20785e4d Add setting to allow labels on bar chart (#36511)
* add labels to bar chart

* code simplification

* clean trailing spaces

* for stack mode label color will be w/b

* change label message on option panel, and show the option only for histogram type

* better way to manipulate axis to make room for labels

* fixes for user defined axis, and negative value

* fix label position in grouped vertical mode

* refactor label color style to css classes

* cosmetic changes in label classes
2019-06-24 17:27:15 +02:00
Court Ewing ed4549a1f9 [core] Support x-pack plugins in new platform (#39454)
* Include x-pack plugin path when appropriate

Unless Kibana is running as oss-only, the x-pack plugins path is
configured in the environment for use in plugin discovery.
2019-06-24 10:07:07 -05:00
liza-mae 16b8f3bef7
Add rendering of canvas images and update percy agent package (#39456)
* Add rendering of canvas images and update percy agent package

* Spencer's fix for eslint issues

* restore canvas elements after taking snapshot

* copy over all styles from canvas to image stand-in

* percy snapshots only run in chrome, so they can use modern js features

* only run visual regression suites

* add stub maps test

* fix arg order

* use more modern syntax that totally works in chrome

* typo

* fix ftr test timeout when using --inspect-brk

* Revert "add stub maps test"

This reverts commit 32dc965adb.
2019-06-24 08:34:59 -06:00
Mikhail Shustov 99c36d8fa6
support unknown keys for object type in @kbn/schema-config (#39448)
* support unknown keys for object type in @kbn/schema-config

* add test for children objects

* update snapshot test

* allowUnknowns as TypeOptions
2019-06-24 16:22:36 +02:00
Joe Reuter 4d88aaa274
Add configs for terminate_after (#37643) 2019-06-24 15:27:18 +02:00
Daniil Suleiman 3184be10e0
[Vis: Default editor] EUIficate date_ranges param editor (#38647)
* EUIficate date_ranges param editor

* Add unit tests

* Move link before the list

* Add validation

* Fix comments
2019-06-24 12:13:35 +03:00
Matthias Wilhelm c9c7a1a62d
Remove filter bar field text trimming (#38971)
By adaption of scss files, long values autosuggested to the user like URIs are no longer trimmed at 250px

Co-authored-by: Caroline Horn <549577+cchaos@users.noreply.github.com>
2019-06-24 08:40:14 +02:00
Yulong 2278765544
[Code] add enabled option for language server (#39421) 2019-06-24 13:59:20 +08:00
Yulong f4ac0fd1d8
[Code] trim remote branch names (#39427) 2019-06-22 17:11:15 +08:00
Yulong df9a5dc6f8
[Code] fix hang if lang-server exited during indexing (#39334) 2019-06-22 17:10:49 +08:00
spalger 09db01afcd Disable flaky test (#39486) 2019-06-21 22:29:07 -07:00
Lee Drengenberg 0f3feaedc2
convert timestamp in UTC to fix "InfraOps app Home page with metrics present renders the waffle map for dates with data" (#39124)
* convert timestamp in UTC

* use moment-timezone

* switch from long unix time to strings
2019-06-21 20:39:31 -05:00
Fuyao Zhao d7f1934931
[Code]: Fix script location (#39460) 2019-06-21 18:02:22 -07:00
Nathan Reese 4048c10a16
[Maps] Provide IntlProvider to map listing page (#39459) 2019-06-21 18:52:47 -06:00
Jen Huang b9f8bacdda
Fix path concatenation (#39468) 2019-06-21 15:32:31 -07:00
chongzhe e2f2eef9c5
[Code] fix link to feature control and update toast text (#39457) 2019-06-21 15:04:09 -07:00
Nathan Reese bd4b7a03ea
show link to Maps application in create new visualize menu (#39191)
* show link to Maps application in create new visualize menu

* use VisTypeAlias for typing

* change title to just Maps

* add betaBadge for visTypeAlias menu items

* typescript whack-a-mole round one

* typescript whack-a-mole round 2

* typescript whack-a-mole round 3

* update text based on gchaps feedback

* typescript whack-a-mole round 4

* typescript whack-a-mole round 5

* fix defaultMessage problem

* update jest snapshots

* simplify VisHelpText

* wrap description in p element

* move register_vis_type_alias.js to legecy folder
2019-06-21 15:07:52 -06:00
Justin Kambic c3c5e92455
[Uptime] Replace deprecated EUI charts (#34313)
* WIP adding new charts.

* Replace remaining charts.

* Update charts on monitors view.

* Working on getting y0 to work for duration chart.

* Add date label module.

* Improve label generation code.

* Extract charts to dedicated components.

* Move monitor charts to dedicated charts directory.

* Extract datemath to context.

* Merge master.

* Add hidden access to monitor list bar series to format tooltip date value.

* Update unit tests for helper formatting function.

* Update helper label getter function tests.

* Refactor simplify code.

* Add jsdoc comment to checks chart function.

* Translate bare heading string.

* Translate axis headings for duration chart.

* Extract map instantiation and clean up variable names for duration chart.

* Extract map instantiation and clean up variabble names for checks chart.

* Add jsdoc comment to helper colors function.

* Add comments to snapshot histogram props. Remove obsolete props. Move histogram to charts directory.

* Remove unneeded code, translate heading of duration chart.

* Remove unneeded code.

* Remove obsolete props from snapshot component.

* Remove unneeded style.

* Remove imports of deprecated charts.

* Add comment to test.

* Add jsdoc and improve symbol naming for new helper function.

* Perfer floor to round for conversion function.

* Remove unnecessary addition to x-pack package.json file.

* Update comments, props order.

* Extract helper function to dedicated file.

* Update test snapshots to fix outdated tests.

* Update chart components to preserve existing translation values.

* Preserve translations for new charts components.

* Write snapshot tests for new components.

* Delete tests.

* Update label generation logic to attach hours to wider delta.

* Update chart labels.

* Remove unneeded @ts-ignore, fix domain prop.

* Remove renderer props from chart components.

* Set yScaleToDataExtent to false for line series.

* Specify timeZone prop for all ScaleType.Time charts.

* Update obsolete test snapshots.

* Remove reliance on context date values from deep functional components.

* Add missing reference to absolute times.

* Supply absolute date values from Overview page to child components.

* Remove unneeded import.

* Move headings outside of panels.

* Translate untranslated string.

* Delete invalid prop.

* Delete unneeded default prop.

* Attempt to undo changes to yarn.lock file.

* Rename new files to ~/x-pack/legacy path.

* Fix misplaced directory.

* Fix broken test snapshots.

* Delete obsolete files.
2019-06-21 14:56:41 -04:00
Spencer abd223d87c
[ts/type_check] use less concurrency, give x-pack more memory (#39419)
* [ts/typeCheck] limit concurrency based on CPU count

* [ts/typeCheck] increase memory limit for x-pack type check

* avoid fractional concurrency value

* run typescript script 80 times

* Revert "run typescript script 80 times"

This reverts commit 32bf59b84f.
2019-06-21 09:10:41 -07:00
Matthias Wilhelm 809c406186
Adjust Dashboard tables _source formatting to Discover _source formatting (#39073)
Tables at Dashboard now pretty-print  _source like Discover
2019-06-21 17:22:28 +02:00
Zacqary Adam Xeper 6b92aa0e7b
[DOCS] Add documecumentation for the log entry flyout (#39403) 2019-06-21 10:07:45 -05:00
Daniil Suleiman 3d4a3ce673
[Vis: Default editor] Euificate vis-editor-agg-add (#38898)
* Euificate vis-editor-agg-add

* Rebuild UI and fix functional tests

* Make all labels sentence case

* Disable schema instead of filter

* Calculate disabled only in open state
2019-06-21 16:01:22 +03:00
Chris Cowan 2f029e63d0
Fixes 36818 - Metrics Explorer action menu to honor uiCapabilities (#36824)
* Fixes 36818 - Metrics Explorer action menu to honor uiCapabilities

* making test description clearer

* Fixing uiCapabilities
2019-06-20 21:47:38 -05:00
Mike Côté 98f7c75ff4
Introduce basic alerting and actions plugin (#37042)
* Create actions plugin (#35679)

* Basic alerting plugin with actions

* Remove relative imports

* Code cleanup

* Split service into 3 parts, change connector structure

* Ability to disable plugin, ability to get actions

* Add slack connector

* Add email connector

* Ability to validate params and connector options

* Remove connectorOptionsSecrets for now

* Fix plugin config validation

* Add tests for slack connector

* Default connectors register on plugin init, console renamed to log, slack to message_slack

* Add remaining API endpoints for action CRUD

* Add list connectors API

* Change actions CRUD APIs to be closer with saved objects structure

* WIP

* Fix broken tests

* Add encrypted attribute support

* Add params and connectorOptions for email

* WIP

* Remove action's ability to have custom ids

* Remove ts-ignore

* Fix broken test

* Remove default connectors from this branch

* Fix API integration tests to use fixture connector

* Rename connector terminology to action type

* Rename actionTypeOptions to actionTypeConfig

* Code cleanup

* Fix broken tests

* Rename alerting plugin to actions

* Some code cleanup and add API unit tests

* Change signature of action type service execute function

* Add some plugin api integration tests

* Fix type check failure

* Code cleanup

* Create an actions client instead of an action service

* Apply Bill's PR feedback

* Fix broken test

* Find function to have destructured params

* Add tests to ensure encrypted attributes are not returned

* Fix broken test

* Add tests for validation

* Ensure actions can be updated without re-passing the config

* Remove dead code

* Test cleanup

* Fix eslint issue

* Apply Peter's PR feedback

* Code cleanup and fix broken tests

* Apply Brandon's PR feedback

* Add namespace support

* Fix broken test

* Pass services to action executors (#37194)

* Pass services to action executors

* Fix tests

* Apply PR feedback

* Apply PR feedback pt2

* Cleanup actions plugin (#37250)

* Cleanup actions, move code from alerting plugin PR

* Rename service terminology to registry

* Use static encryption key for encrypted attributes plugin inside of tests

* Empty data after create test is done running

* Fix type checks

* Fix inconsistent naming

* add server log action for alerting (#37530)

adds the first "builtin" alertType for performing a `server.log()`

* Create alerting plugin (#37043)

* WIP

* Rename fire function and remove @ts-ignore in all places

* Change naming in alerting service

* Remove alert instance class for now, support interval configuration

* Cleanup TS

* Split alerting between registry and client

* Use saved object alongside task manager instance

* Add remaining alerting APIs

* Change create structure

* Rename some variables, change actionGroups structure

* Use handlebars for templating strings at fire time

* Fix params given to alert type execute function

* Use alert instance class

* Alert instances support meta attributes

* Move alert instances deserialization

* Change interval to be ms

* Rename actions es archive

* Fix tests to use encrypted esArchive for action record

* Add create alert test to demo end to end flow

* Fix type check issue

* Alerts to use references to action objects

* Only update task manager tasks after saved objects are fully updated

* Use scope in task manager

* Fix type check

* Use task manager to execute actions

* Convert ids into references and back

* Apply PR feedback

* Fix broken test

* Fix some bugs

* Fix test errors

* Alert interval to be previous runAt + interval instead of now + interval

* Add range support

* Remove extra line

* Cleanup

* Add alert_instance.test.ts

* Add alert_type_registry.test.ts

* Move tests around

* Create generic task manager mock

* Add note about saved objects client mock

* Create alert_type_registry.mock.ts

* Add alerts_client.test.ts

* Add create_alert_instance_factory.test.ts

* Add create_fire_handler.test.ts

* WIP

* Fix get_create_task_runner_function.test.ts and make test pass

* Make get_create_task_runner_function.test.ts 100% coverage

* Add unit tests for routes

* Move files around

* Created transform_action_params.ts

* Add get_next_run_at.ts

* Add comment explaining why we copy nextRunAt

* Re-use state within alert instance

* Finalize code coverage in unit tests

* Create base api integration tests

* Add a test that ensures end to end functionality of an alert

* Fix ui capabilities test

* Fix broken plugin api integration test

* Fix jest tests with new saved objects client

* Fix broken integration tests

* Change api integration test fixture to make more sense, add functions for future tests

* Move alerts integration testing into own file, prep to add more tests

* Add tests to ensure failed task instances get retried

* Add get_create_task_runner_function.test.ts for actions, create encrypted saved objects mock

* Add action validation tests

* Ensure action type validation occurs on update

* Test 400 on unregistered alert types

* Ensure alertTypeId can't be updated

* Add validation test for alert create / update

* Fix broken checks / tests

* Skip failing test for now

* Cleanup jest tests

* Ensure action objects can be updated while keeping encrypted attributes readable

* Remove partial update sopport, remove ability to change actionTypeId, require config

* Ensure actionTypeConfig is validated on create and update

* Add alertTypeParams validation support

* Fix failing tests

* Ensure alert cleanup errors don't replace the original error

* Pass callCluster as a service to alerts and actions

* Only pass log to alerts client

* Pass savedObjectsClient as a service to alerting and actions

* Fix failing tests

* Remove range support, provide when current and previous task got scheduled

* Ensure Joi validation happens before every execute

* Remove skipped tests, to be done in future PR

* Apply self feedback pt1

* Apply self feedback pt2

* Fix broken tests

* Apply PR feedback

* PR feedback pt1

* Apply security team PR feedback

* PR feedback pt1

* PR feedback pt2

* PR feedback pt3

* Fix broken tests

* Fix callCluster to have signature

* Revert f11a6aeb06

* PR feedback pt4

* Remove __jest__ folders

* PR feedback pt5

* Fix Joi from leaking secrets

* Fire instance actions in parallel instead of series

* Fix failing jest tests

* Accept core api changes

* Fix saved objects client mock

* PR feedback pt1

* Fix eslint issues

* Throw error when alert instance already fired (#39251)

* Throw error when alert instance already fired

* shouldFire doesn't need its own boolean value

* Actions & alerting getting started user guides (#39093)

* Initial user guides

* Cleanup

* Typos, example changes

* Switch to tables, use ordered list for usage

* Start docs around alert instances and templating

* Documentation changes

* Some adjustments

* Apply PR feedback

* Apply suggestions from code review

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

* PR feedback pt2

* Provide better examples for alert types

* Apply PR feedback

* Update README locations
2019-06-20 19:37:17 -04:00
Spencer eeab45df7b
[kbn/es] support minor version numbers (#39353) 2019-06-20 14:52:28 -07:00
Josh Dover 5941436e1b
Remove final legacy dependencies from Header UI (#38175)
* Remove final legacy dependencies from Header UI

* Address @eliperelman comments

* Move files for x-pack move
2019-06-20 15:57:02 -05:00
Court Ewing 48c5df2e98 Revert "Temporarily invalidate node_modules cache"
This reverts commit 33c237e187.

This commit was only necessary until the cache was rebuilt.
2019-06-20 15:04:51 -04:00
Court Ewing 33c237e187 Temporarily invalidate node_modules cache 2019-06-20 13:34:48 -04:00
Court Ewing 2d171c92f5 Fix path references into and out of x-pack/legacy 2019-06-20 13:34:48 -04:00
Court Ewing 7ac8e4d9cc Move x-pack plugins/server/common to x-pack/legacy 2019-06-20 13:34:48 -04:00
Lisa Cawley c065b3b41a
[DOCS] Adds screenshots for sample data and metricbeat ML job wizards (#39225) 2019-06-20 06:57:01 -07:00
Josh Dover 87feb050c5
Add link to migrations docs in Core README (#39260) 2019-06-20 08:53:58 -05:00