Commit graph

19466 commits

Author SHA1 Message Date
Lisa Cawley
ed07e23e5c [DOCS] Use search profiler attribute (#28209) 2019-01-08 10:34:04 -08:00
gchaps
3aab350727
[DOCS] Edited to clarify which versions the assistant works with (#28263) 2019-01-08 10:29:23 -08:00
Lisa Cawley
415d13d5f7 [DOCS] Updates X-Pack terminology (#28208) 2019-01-08 09:12:29 -08:00
Tyler Smalley
54414f3f59 [GIS] Updates mapping to reflect that in ES (#28038)
On start-up, Kibana migrations check the mappings of the Kibana index to
determine if there are differing mappings, if so, we re-index the data.

When setting `"tree": "quadtree"`, ES is actually representing it in the mapping
as `"strategy": "recursive"`. This causes the migrations to always run. These
are both defaults for the geo_shape data type, so there shouldn't be any adverse
effect here.

Signed-off-by: Tyler Smalley <tyler.smalley@elastic.co>
2019-01-08 09:03:56 -08:00
pavel06081991
fdf1ac77bd Translate ml -> server -> lib (#27974) (#28230) 2019-01-08 12:16:54 +03:00
Jen Huang
e848e10cbc
[ILM] Fix Index Management not loading when ILM enricher errors out (#28108) (#28191)
* Only load ILM data enricher if UI is enabled

* Silently swallow errors from data enrichers

* Only add index management ILM extensions if ILM UI is enabled
2019-01-07 15:30:54 -08:00
Brandon Kobel
596de518c5
Awaiting element.isEnabled for staleness checks (#28106) (#28212)
The functional test runner's find service wasn't awaiting the promises
returned by element.isEnabled which was causing some of the staleness
checks to not succeed and potentially crash the process if it was the
very last test to be run.
2019-01-07 13:55:58 -08:00
Felix Stürmer
3e56ae3cb3
[6.x] Add a local tsconfig.json for the infra plugin (#28076) (#28196)
Backports the following commits to 6.x:
 - Add a local tsconfig.json for the infra plugin  (#28076)
2019-01-07 21:48:24 +01:00
Catherine Liu
fe6fabca42
Fixes time filter component (#27532) (#28202)
* set reuseDomNode to false in time_filter renderer

* Added minDate to start datepicker and maxDate to end datepicker in time filter component
2019-01-07 12:54:31 -07:00
gchaps
5a7834a1a4
[DOCS] Adds doc for 7.0 Upgrade Assistant (#28132) 2019-01-07 08:34:52 -08:00
Aaron Caldwell
67b14e60f0
Fix/tms without ems access (#28111) (#28179)
* Consolidate ems/tms request error handling, add timeout, ensure consistent return types

* Ensure tms is loaded (if configured), otherwise EMS. If neither is available, nothing is loaded

* Up time limit to 32 seconds
2019-01-07 09:26:53 -07:00
Chris Roberson
ae80be20d5
[Telemetry] Remove custom code for spaces in telemetry (#27903) (#28175)
* Remove custom code for spaces in telemetry

* Undo this change

* Change how this is inserted into the monitoring doc
2019-01-07 09:44:42 -05:00
Chris Roberson
2cb40a5514
Ensure all monitoring charts respond to onBrush (#28098) (#28170) 2019-01-07 09:13:39 -05:00
pavel06081991
7e39cd6cb3 [i18n] Translate ML - explorer (#27805) (#28083)
* Translate explorer

* Update snapshot

* Update test

* Resolve comments from review

* Resolve issues from review comments

* Translate additional files

* Fix issues from review comments

* Update test
2019-01-07 11:44:22 +00:00
pavel06081991
5965e52506 [ML] translate job select (#27803) (#28063)
[ML] translate job select
2019-01-07 11:43:54 +00:00
Marco Vettorello
ea93a18094
Kuery/KQL: Support not passing an index pattern (#28010) (#28163)
* Support not sending index pattern to Kuery functions

* fix match all inside is
2019-01-07 11:45:24 +01:00
Matthew Kime
90b202cb9b
remove grunt sterilize (#27825) (#28139) 2019-01-04 22:32:53 -06:00
Joe Fleming
7f16e36956
Fix: Interpreter plugin dir loading (#27638) (#28125)
* chore: refactor directory filtering

* fix: filter out directories

the intention was to only load files at the root anyway, not direcories
2019-01-04 17:26:08 -07:00
Tim Sullivan
7bbda9b867
Core task manager (#24356) (#28052)
* Core task manager (#23555)

* Initial stab at core task manager logic

* Update task_manager readme

* Update task manager readme

* Add cancelable helper package, OSS, and general purpose, but
will be useful for writing cancelable x-pack tasks.

* Make the cancellable package promise-compliant

* Update task manager readme w/ reference to cancellable

* Change pool from lazy to eager, add support for sub-pools per task type.

* Move cancellable to task_manager, and typescriptify it.

* Working proof of concept for task manager. Still have lots to do:
clean up, tests, comments, validations, assertions, etc.

* Add pagination support to task manager fetch

* Move task manager to OSS

* Remove task manager reference from x-pack

* Make task_manager a valid core plugin

* Modify how task resource allocation works

* Remove the special case 'max' workers occupied value

* Remove x-pack package.json changes

* Make taskDefinitions a part of uiExports

* Make task docs saved-object compliant.

* Add kbnServer to the task context.

* Allow tasks to have a void / undefined return type

* revert x-pack change

* move cancellable to src/utils

* move to src/server

* use afterPluginsInit hook

* task_manager.ts rename

* add a wrapper with a setClient method

* Add tests for task runner

* Break task_pool into smaller, testable pieces

* return raw task doc fields for calling code

* remove todo comment

* helper module for default client
 - setClient takes a callback fn

* fix misidentified field name

* fix rest args warning

* flatten task_pool

* remove cancellable

* return raw task doc fields for calling code

* remove todo comment

* helper module for default client
 - setClient takes a callback fn

* fix rest args warning

* typescript fixes

* roll back setClient takes a callback

* createTaskRunner returns an object with run/cancel functions

* Test task store, tweak task poller tests

* Rename num_workers to max_workers

* Tweak task pool method names

* Fix cancellable test, and ts errors

* Rename doc to _doc

* Fix the doc type in the task manager index mappings

* Make task costs configurable in kibana.yml

* fix a tslint warning

* TaskManager.afterPluginsInit replaces circuitous stuff

* addMiddleware, implement beforeSave

* wip

* comment

* run context stuff

* pretty fix

* comments

* lint/pretty fixes

* safeties in case they don't define both beforeRun and beforeSave

* task runner test constructor opts fix

* Add task_manager integration tests

* FIx readme mistakes, fix schedule signature

* Fix integration tests

* Add blurb about middleware

* make a libs directory for the small things

* test for extractTaskDefinitions

* unit test for middleware

* Comment, refactor, and test task_manager

* Touch up comments

* Make task store throw error if given an unknown task type

* Fix sample task definition in readme

* Make task manager toggle on / off based on Elasticsearch connectivity

* Prevent task manager from crashing Kibana if
elasticsearch plugin is disabled

* Fix task manager signature

* Move the task manager into the task manager mixin,
fix tests. It's an uber integration object anyway, so
it seemed to make sense to keep it in one place.

* Fix task manager integration tests

* Update the task manager index creation to use auto_expand_replicas

* Fix task manager integration tests

* Fix task manager integration tests

* Fix the overzealous deletion of .kibana during tests

* Core task manager

* Allow hardcoded ID passed in

* comments

* don't deconstruct type and task for payload

* remove uiExport support

* move task_manager to x-pack/plugins

* expose as client on the plugin namespace

* fix tests

* move plugin api integration tests

* roll back readme sample task definition example

* fix sample plugin link

* server.taskManager

* sanitizeTaskDefinitions

* fix integration tests

* sanitize rename

* assert unintialized and check for duplicates in registerTaskDefinitions

* Remove unnecessary defaults from task_manager.test.ts

* Remove task manager from OSS

* Remove task manager from src

* Tidy up task_manager unit tests around elasticsearch status changes

* Integration test for specifying ID in scheduling

* Task_manager init -> preInit to allow other plugins to consume
taskManager in their init.

* Remove task manager integration tests from OSS

* spelling

* readme fix

* fix test code impacted by hapi upgrade

* Task Manager index creation changes (#24542)

* Uses putTemplate for task manager mappings and index settings.

* Removes create option.

* Opposite day, the test catches up to the code changes.

* Ignores index unavailable during searches.

* Improve taskRunner's processResult (#24880)

* Set task state to idle after run, and add failed state

* fix tests

* Test alerting demo (#25136)

* Ensures that task store init gets called before schedule.

* Removes unused option for debugging purposes.

* Fix unit tests because a second callCluster was made.

* Task manager starts sanely.

Does not preInit
Will not allow definitions after initialization
Creates store immediately.
Modifies store after all plugins have initialized
Adds static tasks that will be defined by plugins.

* Task manager should not allow operations before initialization.

* Attempts to fix runner tests.

* Fixes unit test contract with APIs.

* Removes unused type definitions.

* Removes unused package json.

* Removes unused import type.

* Removes unnecessary async applied to a function.

* Returns diferently if task store has already initialized.

* Explains how to add static task instances to task definitions. (#25880)

* Tasks cannot be scheduled until task manager is initialized.

* Adds task manager api integration tests to ci group4.

* Context of describe test must be the test framework object.

* Update src/es_archiver/lib/indices/kibana_index.js

regex update to actually disallow non-kibana system indices

Co-Authored-By: tsullivan <tsullivan@users.noreply.github.com>

* verify fillPool exception passing

* readme update about max_workers/numWorkers

* change forEach to reduce

* use public interfaces in internal method

* replace getMaxAttempts with public readonly maxAttempts

* Update x-pack/plugins/task_manager/task_store.ts

`throw new Error` and initializattion spell fix

Co-Authored-By: tsullivan <tsullivan@users.noreply.github.com>

* min = 1 for max_workers

Co-Authored-By: tsullivan <tsullivan@users.noreply.github.com>

* timeOut => timeout

* min 1

* scope as an array

* no retries

Co-Authored-By: tsullivan <tsullivan@users.noreply.github.com>

* ConcreteTaskInstance is a TaskInstance

* remove guard per joi logic

* more return types for functions

* more comments around incremental back-off

Co-Authored-By: tsullivan <tsullivan@users.noreply.github.com>

* throw error instead of return undefined

* poll_interval min 1000

* avoid handling err.stack directly

* break up processResult

* fix a few runtime issues

* only fetch idle tasks

* remove check for status idle

* always return a state, and when there is an error return the state we had at beforeRun

* check isStarted before attemptWork

Co-Authored-By: tsullivan <tsullivan@users.noreply.github.com>

* ts fix
2019-01-04 17:09:46 -07:00
Catherine Liu
47595a48fc
Upgrades style-it to 2.1.2 (#27824) (#28118) 2019-01-04 15:58:49 -07:00
Joe Fleming
074caf362f
chore: remove httpHeaders from server handlers (#28011) (#28115)
it was kind of a hack in the first place, and now it's not used at all
2019-01-04 14:55:55 -07:00
Josh Dover
a8286160df
Combine node and cluster warnings in Upgrade Assistant (#27508) (#27526) 2019-01-04 14:44:51 -07:00
Thomas Neirynck
26dd5ef600
[Maps] simplify source import/initialization (#28096) (#28110) 2019-01-04 16:13:59 -05:00
Nathan Reese
d8c78de6f6
[Maps] add View Control displaying coordinates at mouse position (#28023) (#28104)
* put mouse position in store

* widget overview component

* Fixing layout of overlay (#28)

* move layer_control and layer_toc under widget_overview folder

* clear mouse coordinates when mouse leaves map

* change how settig map view works to avoid state timing bug

* debounce moveend event
2019-01-04 14:00:08 -07:00
Chandler Prall
32d1f01378
[6.x] Change sass-lint config to very specifically target files to lint (#28048) | Remove SCSS linting from dev server (#28055) | Sasslint precommit hook (#28095) (#28105)
* Change sass-lint config to very specifically target files to lint (#28048)

* Remove SCSS linting from dev server (#28055)

* Sasslint precommit hook (#28095)

* Remove SCSS linting from dev server

* Add sasslint to precommit hook
2019-01-04 13:30:13 -07:00
Thomas Neirynck
014128b3b7
[Maps] Add EMS Tile services to UI (#28032) (#28082) 2019-01-04 10:54:47 -05:00
pavel06081991
5eedacf358 [i18n] Translate ML - util (#27971) (#28075)
* Translate public -> util folder

* Add translations for register_feature.js and breadcrumbs.js

* Resolve issues from review comments
2019-01-04 18:44:15 +03:00
Walter Rafelsberger
0e2cc34a13
[ML] Tests for ML annotations feature. (#27994) (#28074)
Adds unit/integration tests for various parts of the code base affected by the annotations feature.
2019-01-04 16:09:43 +01:00
pavel06081991
64f4a9237c [i18n] Translate ML - index.js (#27976) (#28078)
* Translate index.js

* Resolve issue from review comment
2019-01-04 17:56:11 +03:00
Søren Louv-Jansen
a496dec949
[APM] Remove unneeded @ts-ignore and use destructed Lodash imports (#27881) (#27977)
* [APM] remove unneeded ts-ignore and make lodash imports specific

* Remove unneeded isomorphic-fetch import

* Combine lodash imports
2019-01-04 11:31:12 +01:00
pavel06081991
af7d8df6a4
[ML] field data card translations (#27593) (#28060)
[ML] translate field data card
2019-01-04 13:03:46 +03:00
pavel06081991
ba6e54b909
[ML] translate formatters (#27806) (#28061)
[ML] translate formatters
2019-01-04 13:02:57 +03:00
Matthew Kime
a4b5715e95
Index Pattern UI - remove _remote/info query (#27345) (#28057)
* use internal user to query _remote/info

* query both * and *:* rather than querying for clusters

* Update create_index_pattern_wizard.js

* Update create_index_pattern_wizard.js

* add a closing curly bracket

* fix for failed matches

* Update create_index_pattern_wizard.js
2019-01-03 23:35:26 -06:00
Larry Gregory
ea92634080
Fixes space name being read twice on the space selector screen (#27906) (#27991)
* fixes space name being read twice on the space selector screen

* fix comment

* fix type checks
2019-01-03 19:36:17 -05:00
Nathan Reese
7eee7cc427
update docs for reporting move to share menu (#27683) (#28045) 2019-01-03 17:01:31 -07:00
Nathan Reese
7306406f3f
[Maps] fix license check for gold and standard license (#27990) (#28051) 2019-01-03 17:01:16 -07:00
Aaron Caldwell
379aa21b19
If dynamic vector value is null, set color to transparent (#27821) (#28044) 2019-01-03 15:46:58 -07:00
Aaron Caldwell
d2c48a5d06
Set boolean flag to ensure initRoutes only called once in a given ses… (#27943) (#28043)
* Set boolean flag to ensure initRoutes only called once in a given session

* Completely remove license check. Not using to init latest EMS Client
2019-01-03 15:43:53 -07:00
Matt Apperson
fe1f3163cf
[BeatsCM] use static map of pages vs dynamic from FS (#27998) (#28030)
* [BeatsCM] use static map of pages vs dynamic from FS

* remove snapshot

* Apply suggestions from code review

* Update x-pack/plugins/beats_management/public/pages/index.ts
2019-01-03 17:08:24 -05:00
Thomas Neirynck
777ecb310e
update config (#28019) (#28034) 2019-01-03 16:49:49 -05:00
Aaron Caldwell
b5fea32611
[6.x] Remove KY dataset (#27708) (#27841)
* Remove KY dataset (#27708)

Resolves #27586. Removes the KY Dataset!
# Conflicts:
#	x-pack/plugins/gis/index.js

* Don't modify plugin require value as part of this PR
2019-01-03 14:05:20 -07:00
Larry Gregory
e6bbaac466
Provides context to spaces grid action buttons (#27911) (#28005)
## Summary
Fixes #27744

cc @elastic/eui-design -- It appears that the [`DefaultItemAction`](https://elastic.github.io/eui/#/display/tables) can only accept hard-coded `name`/`description` values. While this isn't necessarily a bad thing, I'm wondering if the linked issue (#27744) will be a common enough occurrence within Kibana to make the DefaultItemAction less useful. What do you think about allowing functions for the `name` and `description` fields, so that they can get access to the row's record, and provide context as necessary?
2019-01-03 15:38:54 -05:00
Joe Fleming
61be0a5b1b
fix: trick build into including dependencies (#27858) (#28012)
import server and common functions so the build correctly includes their
dependencies
2019-01-03 12:36:40 -07:00
Joe Fleming
49498dac73
Fix: Make timelion a browser function (#27944) (#28014)
* chore: revert #26809

it was a temp fix meant to be removed anyway

* chore: convert timelion to private browser function

allows access to ui/chrome, required for determining the server basepath
2019-01-03 12:36:31 -07:00
Aaron Caldwell
73469e733f
Confirm GIS app enabled and wait until license info enabled before passing license info through to maps app (#27607) (#27842)
# Conflicts:
#	x-pack/plugins/gis/server/routes.js
2019-01-03 11:54:36 -07:00
Aaron Caldwell
c258153d51
EAH - Convert geohash decode code to typescript (#23955) (#27844)
* Convert geohash decode code to typescript

* Change decode geohash js file over to ts file

* Update notice
2019-01-03 11:23:02 -07:00
Nathan Reese
77b344193e
[Maps] [ES document source] Make filterByMapBounds and tooltipProperties configurations editable (#27811) (#27999)
* move create source editor into its own file

* move tooltip and extent filter inputs to update editor
2019-01-03 10:48:30 -07:00
Chandler Prall
749374eb5a
Add SCSS linting (#27328) (#27995)
* scss linting POC

* update yarn.lock

* Include sass linting alongside es/ts lint tasks

* fix linting errors

* replace unceccessary selector on rollup creation
2019-01-03 09:50:49 -07:00
Matt Apperson
da542aa595
[BeatsCM] Correct new user redirect, enroll command extra space, and KQL bar EUI theme breaking change (#27891) (#27983) 2019-01-03 11:04:57 -05:00
Matthew Kime
41c9c5d31d
Make test runners available from yarn run test:* (#26671) (#27969)
* yarn test:mocha yarn test:jest, x-pack too

* remove inline comments, deprecate test:server and replace with test:mocha
2019-01-03 09:40:37 -06:00