Commit graph

17523 commits

Author SHA1 Message Date
Walter Rafelsberger
e648269b95
[ML] Improve the field type icon's component structure. (#19200)
This fixes the component structure of the file type icon: The container component no longer needs to be wrapped inside a span element for the tooltip to work by using the recommendation to pass on the props to the first inner element (see elastic/eui#839). Also adapted a jest test which tests the hovering behavior and fails when the props are not passed on.
2018-05-18 10:59:27 +02:00
Tim Roes
39b277d372
Manually disable html5Mode and rewriteLinks (#19184) 2018-05-18 09:55:30 +02:00
Chris Roberson
d4f8a70527
Update jest snapshots (#19186) 2018-05-17 16:19:33 -04:00
Chris Roberson
80bb4b1867
[Management] Saved objects to React/EUI! (#17426)
* Not working proto code

* More proto code

* Work in progress

* Just go back to non interactive searching, much easier

* This should be on the server

* Revert "[@kbn/ui-framework] move ui-framework to a package (#17085)"

This reverts commit ef3339bd7a.

* Revert "Revert "[@kbn/ui-framework] move ui-framework to a package (#17085)""

This reverts commit ce9ce14e1060c426090b55a5367de3ff4329e681.

* Use BasicTable properly

* Table improvements

* Small tweaks to the table

* Improvements

* Flyout mostly working

* Remove in memory table

* Getting close

* Tweaks

* Revamping server code, still need to support editing

* Progress

* Fix export

* Updates and passing functional tests

* Better links in relationships flyout

* Add skip import option

* Fixes around importing and removing unnecessary code

* Remove tags for now

* Tests for lib/

* Some fixes

* Ensure we clear index pattern cache

* Parity with master

* Revert any changes in package.json

* Reset any changes in this file

* Move the new argumen to the end to prevent test failures

* Fix functional tests

* Add relationship tests

* Fix tests

* API integration tests for relationships

* Ensure we're properly waiting for things to happen

* Fix test issue

* Wait for the table to finish loading instead of the whole page

* Tests for objects_table

* Componentry tests

* Ensure this is grabbing the right field

* Update snapshot

* Fixes with importing index patterns

* PR feedback

* PR feedback

* PR feedback

* Update snapshot

* PR feedback

* Update snapshot

* Respect the savedObjects:perPage config

* Updates from PR feedback

* More updates from PR feedback

* Make this more efficient

* Add debugging for functional test failures

* Wait longer

* Wrap each button accessor with a retry.try

* Try wrapping this in a retry.try

* Debug

* Lets make sure it is visible

* Maybe the short timeout is affecting this - use the default timeout which should be higher and allow more time for the animation to finish

* Rewrite this per suggestions from stacey
2018-05-17 13:46:47 -04:00
Lisa Cawley
01bc401822
[DOCS] Cleans up X-Pack references in Kibana User Guide (#19150) 2018-05-17 09:31:23 -07:00
Lisa Cawley
a36a043ffe
[DOCS] Fixes URLs in Kibana Watcher info (#19151) 2018-05-17 08:38:22 -07:00
spalger
0ad665f216 [eslint/import-resolver] ensure compat with slightly older versions of node for IDE support 2018-05-17 08:04:52 -07:00
Peter Pisljar
0f0b498ac4
fixing disabled aggs (#18796) 2018-05-17 07:40:31 -05:00
Walter Rafelsberger
72083c9b0c
[ML] Fixes jest tests for bucket span estimator button. (#19164)
Fixes jest tests for the bucket span estimator button. The tests were not correctly considering the way jest runs tests asynchronously. Now each test is self-contained within the test callback.
2018-05-17 14:04:18 +02:00
Walter Rafelsberger
69b857ca54
[ML] Migrate field-type-icon to EUI/React. (#19159)
Migrates the field-type-icon directive to use EUI/React. Instead of the angular/bootstrap tooltip attribute on the directive's tag, there's now an option tooltip-enabled which when true wraps the component inside EuiToolTip.
2018-05-17 13:21:39 +02:00
Tim Roes
e46f0e8b65
Add TSVB table to docs (#17835)
* Add TSVB table to docs

* Change according to review
2018-05-17 11:03:49 +02:00
Walter Rafelsberger
a9d47320d5
[ML] Migrate bucket span estimator button to React/EUI. (#19045)
This migrates the bucket span estimator button to use React/EUI. The existing mlBucketSpanEstimator is refactored to use React without ngReact to have more detailed control in regards to the $scope being transformed to a trimmed down props object with only the information necessary for the React component. This also allows more control in regards to the $scope attributes being watched. Instead of custom styles and classes this now uses the options available for EuiButton. However, there were some minimal overrides necessary to the EUI styles to replicate the narrower height and padding to fit within the input element.
2018-05-17 09:26:01 +02:00
Walter Rafelsberger
13b97ac294
[ML] Migrate ml-info-icon to React/EUI (#19003)
This replaces the angular based tooltip used in the ml-info-icon directive with one based on React/EuiTooltip. It supports transclusion and rendering of angular template snippets inside the tooltip. Because the DOM structure of the EuiTooltips and the angular/bootstrap tooltips is quite different there is a bit more code involved to achieve this, but the result is that for this we don't have to change the markup in the original angular templates where ml-info-icon is used.
2018-05-17 09:21:39 +02:00
Chris Davies
2f9185df63
Fix #18838 incorrect 403 message when generating reports (#19054)
Fix #18838 incorrect 403 message when generating reports
2018-05-16 15:22:12 -04:00
Justin Kambic
748d152354
Add vertex reference to pipeline statement classes. (#19134) 2018-05-16 14:31:18 -04:00
Spencer
0b03166d2d
[eslint] unify resolver configs (#19102)
* [eslint] unify resolver configs

Our eslint resolver settings currently rely on the fact that we define
our resolver with a string globally, and an object in the overrides.
This causes the override value to completely override/replace the global
setting, which is desired, but when the global setting is converted to
an object they are merged, causing both resolvers to run.

This is a problem because some dependencies in the UI side of things
will resolve with the node resolver, but will resolve incorrectly
because they are intended to use some webpack specific override.

While trying to add TypeScript I needed to pass argument to the node
resolver which uncovered this issue. The change here moves us away from
using the node resolver directly and instead uses the kibana resolver
with `forceNode: true` set when linting server code and `forceNode:
false` when resolving imports that will be handled by webpack.

* [import-resolver] use object spread operator
2018-05-16 10:45:41 -07:00
Spencer
f24a725144
[mocha] remove grunt-simple-mocha (#19079)
* [mocha] run tests with mocha script, remove grunt-simple-mocha

* [ci] force colored output

* [ci] disable color when reading the yarn bin

* [dev/build/exec] support tooling log having its own chalk

* [dev/mocha] avoid changing the cwd of the process

* [dev/mocha] only match files, speed up negative matches

* [cli/serve/test] strip ansi control characters from logs

* [ci] disable color in all `yarn bin` invocations

* [dev/mocha] cleanup old runInBand check

* [dev/mocha] enable gloabl leak checks
2018-05-16 10:43:55 -07:00
Walter Rafelsberger
b620978ca1
[ML] Migrate mlDocumentationHelpLink to React. (#19124) 2018-05-16 17:55:35 +02:00
James Gowdy
329894ff4c
[ML] Initial creation of APM module (#18805)
* [ML] Initial creation of APM module

* updating query

* adding processor.name check to query

* removing processor.name exists check

* updating manifest with suggested changes

* renaming-job-id

* updating job description
2018-05-16 16:41:51 +01:00
Tim Roes
76c92246d3
Add a update function to visualize loader (#19030)
* Add loader update method and use in dashboard panel

* Add loader tests

* Make sure that it works inside and outside of Angular

* Fix tests for $evalAsync

* Use isEmpty for more semantic

* Allow nullifying timeRange again
2018-05-16 17:28:05 +02:00
Stacey Gammon
73c0ce1aa6
The previous retry wouldn't work because 'click' has it's own retry (#19078)
* The previous retry wouldn't work because 'click' has it's own retry, need to use exists first.

* add comment with link to issue

* fix wrong function (wish we had typescript!)
2018-05-16 10:52:22 -04:00
Nathan Reese
1e3e834e08
upgrade to EUI 0.0.47 (#19099) 2018-05-16 08:50:00 -06:00
Nathan Reese
01b90588be
[home] change recently accessed header to h3 (#19085)
* change recently accessed header to h3 to be more accessible

* change recently accessed header to h3 to be more accessible
2018-05-16 07:29:10 -06:00
Tim Roes
8d5f43c540
Replace _term order in terms agg by _key (#19032) 2018-05-16 15:28:32 +02:00
Pete Harverson
25324c1d19
[ML] Create server-side results service (#19044)
* [ML] Create server-side results service

* [ML] Edits to server side results service following review
2018-05-16 09:59:07 +01:00
Walter Rafelsberger
95e14bdebc
[ML] Fix issues with watching the scope of single metric viewer data. (#19029)
This fixes a bug with the single metric viewer not updating correctly and not showing anomaly records.
2018-05-16 10:05:01 +02:00
Nathan Reese
6811044f9d
Add status check to "add data" tutorials (#17732)
* add statusCheck configuration to instructionSetSchema

* add status check step to instruction set

* track status check state

* query elasticsearch for hits

* display message when status check completes

* clean up

* use callout to display status check results

* Updated status check

* update tutorial snapshot

* add jest tests for InstructionSet component

* pass function as prop instead of wrapping in new function

* refactor checkInstructionSetStatus

* update snapshots that broke after rebase

* Suggested changes (#24)

* update jest test for statusCheckState prop enum

* update tutorial snapshots
2018-05-15 16:12:08 -06:00
Søren Louv-Jansen
3bf6c43602
[APM] Fix bug that causes watcher emails to fail (#19071) 2018-05-15 23:03:40 +02:00
Tim Sullivan
0940f5755d
[Monitoring] Rename TypeCollector to CollectorSet for semantics (#18987)
* [Monitoring] Rename TypeCollector to CollectorSet for semantics

* boring test changes

* usage collector renames

* rename initKibanaMonitoring => createCollectorSet

* fix lint
2018-05-15 13:46:20 -07:00
Bill McConaghy
8b44aa86a8
upping ace version to the latest (#19067) 2018-05-15 16:31:26 -04:00
Peter Pisljar
b996f736a0
Don't deep clone vis in courier request handler (#19069) 2018-05-15 13:24:15 -05:00
Stacey Gammon
34a46ca8e0
Use find service instead of remote directly (#19070) 2018-05-15 14:16:28 -04:00
Tim Sullivan
cb67e6ce0d
[Gitignore/Test] Ignore test/functional/failure_debug (#19059) 2018-05-15 09:43:40 -07:00
Tim Sullivan
9e0a6e2a31
[Monitoring] Add a yellow status phase in plugin init (#18939)
* [Monitoring] Add a yellow status phase in the startup lifecycle

* comments

* more comments

* more comment

* undo register => registerType function name change
2018-05-15 09:32:14 -07:00
Aleh Zasypkin
078fb147a4
Rename @kbn/babel-preset/common & node & webpack to @kbn/babel-preset/common_preset & node_preset & webpack_preset. (#19025) 2018-05-15 17:23:20 +02:00
Bill McConaghy
52a7f4c1b6
[console] 6.0 API and ace refactor (#18930)
* capturing refactoring work in progress

* cleanup

* removing 5.0 API

* updating autocomplete aggregations to supported ones

* adding documentation links to generated specs

* progress on ace upgrade

* further progress

* cleaning up

* adding new minified source for worker

* fixing bug with merging API definitions

* addressing PR feedback

* using raw loader to load worker file

* addressing PR feedback

* fixing bad characters in comments

* removing inadvertent change

* fixing scope links

* fixing a couple of scope links

* adding in exists to query dsl

* adding slop param for match_phrase query

* adding autocomplete support for search params

* Revert "using raw loader to load worker file"

This reverts commit 16d33c189c.

* adding rescore API support for autocomplete

* adding index boost API support for autocomplete

* adding collapse to autocomplete

* adding highlight property support to autocomplete

* fixing issue with highlight

* adding support for common terms query

* adding inner hits support for autocomplete

* adding support for newer match options to match and multi_match

* better solution for worker
2018-05-15 09:13:59 -04:00
Pete Harverson
008701d031
[ML] Fix issues with end time of explorer swimlane selection (#18995) 2018-05-15 12:24:31 +01:00
Tim Roes
62badc5e10
Point issue links to new choose page (#19042) 2018-05-15 08:21:24 +02:00
Tyler Smalley
78243ce9f9
[docs] Disabling APM should be done through common config (#19058)
Signed-off-by: Tyler Smalley <tyler.smalley@elastic.co>
2018-05-14 17:53:28 -07:00
Søren Louv-Jansen
f1380e3ac5
[Kuery] Remove Angular dependencies (#17836)
* [kuery] Remove `byName` dependency

* Remove $http from kuery

* Fix test

* Add request headers

* Replace byName with getFieldByName; add isFilterable

* Replace Angular mock with static mock

* Update index pattern for query bar

* manually attach format.convert method to field

* Use KBN_FIELD_TYPES to determine isFilterable

* Bump yarn.lock file

* Add kfetch (Kibana fetch)

* Moved `getFromLegacyIndexPattern` to static index pattern functions

* Fix tests

* Mock out kfetch

* Move value formatting from getRangeScript to buildRangeFilter

* Remove getFieldByName (over abstraction)

* Split kfetch options into two
2018-05-15 00:10:40 +02:00
gchaps
2bcb0d2975
[DOCS: Getting Started] Edited text and updated screenshots] (#18699)
* [DOCS: Getting Started] Edited text and updated screenshots]

* [DOCS|Getting Started] Edited for consistency in addressing the user

* [DOCS|Getting Started] Incorporated review comments

* [DOCS|GS] Style changes for consistency
2018-05-14 13:54:23 -07:00
Nathan Reese
41fff1feec
[input controls] safely handle case where control index pattern no longer exists (#18931)
* handle case where control index pattern no longer exists

* fix errors when vis is edited with missing index pattern
2018-05-14 13:38:27 -06:00
Søren Louv-Jansen
acc3af0c59
Align x-pack and kibana devDeps (#19022)
* Align Node deps

* Added grunt task

* Update name
2018-05-14 19:33:04 +02:00
Nathan Reese
4a86a8042a
enhance index pattern delete documenation (#19007)
* enhance index pattern delete documenation

* add line about breaking saved objects that still reference index pattern

* indices spelling

* better wording from gchaps
2018-05-14 08:38:16 -06:00
Chris Roberson
6528ef0d33
The text property is optional (#19034) 2018-05-14 10:29:29 -04:00
Stacey Gammon
897f5f3f1a
Fix, or debug, flaky nested visualization filter test (#18957)
* Debug flaky test, or at least retry the spot that seems to be failing

* Fix missing await, use queryBar service, use more detailed error message

* update remaining references to dashboard.getQuery

* getQueryString not getQuery
2018-05-14 09:47:32 -04:00
Tim Roes
f579d2299f
Update React to 16.3 (#18768)
* Update React to 16.3

* Switch off specific eslint rules

* Update enzyme snapshots

* Incorporate PR feedback
2018-05-14 14:05:17 +02:00
Spencer
0f8a00304b
[x-pack] remove use of resolveKibanaPath from plugin helpers (#18979) 2018-05-11 07:46:44 -07:00
Thomas Neirynck
361160a03f
Re-enable the staging config (#18980) 2018-05-11 07:45:21 -04:00
Pete Harverson
daf01340ba
[ML] Sort Explorer view by swimlane for selected time (#18955)
* [ML] Sort Explorer view by swimlane for selected time

* [ML] Rename swimlane sort array with clearer name
2018-05-11 09:37:26 +01:00