Commit graph

21932 commits

Author SHA1 Message Date
Tyler Smalley ef1e5b4288 [ci] Use trap to generate report for non-PR build (#26829)
Since this is no longer part of a reporting task in Jenkins, we no
longer need to re-run kbn bootstrap when generating a report.

We use the PR_SOURCE_BRANCH environment variable to prevent genererating
Github issues when we are on a PR.

Signed-off-by: Tyler Smalley <tyler.smalley@elastic.co>
2019-01-08 17:13:12 -06:00
Tim Sullivan 74c35fbbed
Allow Task Manager's internal init to fail and retry (#28130)
* Allow Task Manager's internal init to fail and retry

* keep afterPluginsInit sync and fix unit test

* force order of initialization by calling store.init from poller.start

* set isInitialized = true on poller start success

* avoid throwing when the store is already initted at poller start (retry scenario)

* fix ts

* return something that returns a promise, and is retryable
2019-01-08 12:05:59 -07:00
Bill McConaghy e7db05893a
fixing watcher threshold alerts by reverting to kui styles (#28266) 2019-01-08 13:38:59 -05:00
Lisa Cawley 6ac4dcbe0b
[DOCS] Use search profiler attribute (#28209) 2019-01-08 10:28:02 -08:00
Tyler Smalley 45dfd5046d
[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 08:52:32 -08:00
Lisa Cawley 61fcf98b6e
[DOCS] Updates X-Pack terminology (#28208) 2019-01-08 08:48:36 -08:00
Andrew Cholakian 7e4c1710db
[Uptime] Set min/max on search size for pings. (#28113)
You obviously can't show fewer than 0 and 10k is the ES max.
2019-01-08 08:46:46 -08:00
Silvia Mitter f959011d09
[APM] Add fields introduced by ECS to Index Pattern. (#28177) 2019-01-08 11:54:49 +01:00
Nox911 2dfe4136b9 Translate ml -> server -> lib (#27974) 2019-01-08 11:13:17 +03:00
Brandon Kobel 1861be716a
Awaiting element.isEnabled for staleness checks (#28106)
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:04:33 -08:00
Catherine Liu 404790d459
Fixes time filter component (#27532)
* 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:10:19 -07:00
Felix Stürmer 880ab9c74f
Add a local tsconfig.json for the infra plugin (#28076)
Without the local tsconfig.json file, the implicit project inference of
tsserver sees the local package.json as a marker for a project root and
does therefore not correctly apply the x-pack tsconfig.
2019-01-07 19:30:25 +01:00
Jen Huang a5fdc8e107
[ILM] Fix Index Management not loading when ILM enricher errors out (#28108)
* 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 09:35:53 -08:00
Chris Roberson fedd867f20
Update the title in the left nav (#28102) 2019-01-07 12:28:07 -05:00
Mark Robert Henderson c9dc5414a6
One last update to the accessibility template (#28152) 2019-01-07 12:13:36 -05:00
gchaps 61eed842e5
[DOCS] Add docs for 8.0 Upgrade Assistant (#28138) 2019-01-07 08:06:00 -08:00
Aaron Caldwell 837b00f095
Fix/tms without ems access (#28111)
* 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 07:45:02 -07:00
Chris Roberson d80adb336e
[Telemetry] Remove custom code for spaces in telemetry (#27903)
* Remove custom code for spaces in telemetry

* Undo this change

* Change how this is inserted into the monitoring doc
2019-01-07 09:00:59 -05:00
Chris Roberson 877395b354
Ensure all monitoring charts respond to onBrush (#28098) 2019-01-07 08:28:38 -05:00
Lukas Olson 5de724f772 Kuery/KQL: Support not passing an index pattern (#28010)
* Support not sending index pattern to Kuery functions

* fix match all inside is
2019-01-07 10:44:34 +01:00
Matthew Kime 9311f19732
undeprecate calling scripts from npm / yarn run (#27850)
* undeprecate calling scripts from npm / yarn run

* add sasslint

* use npm-run-all and remove elasticsearch task

* remove sterilize, bad merge
2019-01-06 21:18:07 -06:00
Matthew Kime ab0d678845
remove grunt sterilize (#27825) 2019-01-04 21:48:33 -06:00
Clint Andrew Hall fa475e2887
[Canvas][i18n] Elements (#27904)
* [Canvas][i18n] Elements

* Addressing feedback; using global i18n

* Fixing unit test to reflect globals

* Making i18n more flexible

* Switching to a Provider strategy for i18n
2019-01-04 19:53:36 -06:00
Matthew Kime 6cefed969b
add upgrade assistant sidenav (#28124) 2019-01-04 17:53:14 -06:00
Joe Fleming 82d05f5667
Fix: Interpreter plugin dir loading (#27638)
* chore: refactor directory filtering

* fix: filter out directories

the intention was to only load files at the root anyway, not direcories
2019-01-04 16:21:57 -07:00
Catherine Liu 0a1b86ad3c
Upgrades style-it to 2.1.2 (#27824) 2019-01-04 14:57:06 -07:00
Joe Fleming 9c4b4769db
chore: remove httpHeaders from server handlers (#28011)
it was kind of a hack in the first place, and now it's not used at all
2019-01-04 14:12:33 -07:00
Thomas Neirynck 7b5aa7ebea
[Maps] simplify source import/initialization (#28096) 2019-01-04 15:14:50 -05:00
Justin Kambic c46b102e77
[Uptime] Rename plugin (#28008)
* Rename "Uptime Monitoring" to "uptime".

* Remove "Monitoring" from the app's title.

* Fix broken integration tests.
2019-01-04 14:29:15 -05:00
Nathan Reese 858b61b3be
[Maps] add View Control displaying coordinates at mouse position (#28023)
* 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 12:15:01 -07:00
Chandler Prall dd47972cec
Sasslint precommit hook (#28095)
* Remove SCSS linting from dev server

* Add sasslint to precommit hook
2019-01-04 12:14:03 -07:00
Mark Robert Henderson d745694d23
Update Accessibility.md (#27750) 2019-01-04 12:27:04 -05:00
Pete Harverson ef5e7a596e
[ML] Update REST endpoint calls to remove _xpack (#28069) 2019-01-04 16:48:05 +00:00
Sarah Hersh 5654f608eb
DOCS/add detail to managing rollup jobs (#28000) 2019-01-04 10:42:35 -05:00
Nox911 fc94bb181d
[i18n] Translate ML - explorer (#27805)
* 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-04 17:53:34 +03:00
Thomas Neirynck e7e8d48535
[Maps] Add EMS Tile services to UI (#28032) 2019-01-04 09:21:50 -05:00
Nox911 fdfbd57a89
[i18n] Translate ML - index.js (#27976)
* Translate index.js

* Resolve issue from review comment
2019-01-04 16:19:13 +03:00
Walter Rafelsberger 99f99291ef
[ML] Tests for ML annotations feature. (#27994)
Adds unit/integration tests for various parts of the code base affected by the annotations feature.
2019-01-04 14:00:34 +01:00
Nox911 3496dff912
[i18n] Translate ML - util (#27971)
* Translate public -> util folder

* Add translations for register_feature.js and breadcrumbs.js

* Resolve issues from review comments
2019-01-04 15:26:42 +03:00
pavel06081991 bb3bd2a16d
[ML] translate job select (#27803)
[ML] translate job select
2019-01-04 10:31:50 +03:00
pavel06081991 21209debc4
[ML] translate formatters (#27806)
[ML] translate formatters
2019-01-04 10:00:55 +03:00
pavel06081991 ac99a2eb85
[ML] field data card translations (#27593)
[ML] translate field data card
2019-01-04 09:58:34 +03:00
Matthew Kime 20ed7d43b7
Index Pattern UI - remove _remote/info query (#27345)
* 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 22:51:50 -06:00
Chandler Prall d265b4b8d1
Remove SCSS linting from dev server (#28055) 2019-01-03 21:41:40 -07:00
Chandler Prall 52d2be5312 Change sass-lint config to very specifically target files to lint (#28048) 2019-01-03 19:16:37 -08:00
Tim Sullivan d568e65e78
Core task manager (#24356)
* 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-03 16:32:09 -07:00
Nathan Reese 46d8293992
[Maps] fix license check for gold and standard license (#27990) 2019-01-03 16:16:53 -07:00
Matthew Kime b491d8790a
Management: EUI Navigation sidebar (#25905)
* partial work - sidebar works, need to address rendering issues

* rendering fixes

* refactor sidenav into its own file

* refactor sidenav into its own file

* remove unneeded changes

* remove unneeded formatting changes

* remove unneeded formatting changes

* remove unneeded formatting changes

* remove unneeded formatting changes

* remove more unneeded EuiPage

* remove more unneeded EuiPage

* snap snap

* remove unused dependencies

* functional tests

* sidebar tweaks, beats-cm

* lint

* properly sharing UI code

* fix eui export

* type fixes

* add test

* add test

* testy test

* partial progress

* attmpt to fix functional test

* from merge

* snap snap

* clean up management for side nav changes

* functional test fix

* snap, blank landing

* snap snap

* change management item order

* test fix

* disable tslint line

* ts fix

* functional test fix

* functional test fixes

* fix functional test

* minor cleanup

* simplify management registry callback

* remove comment

* react island with kibana version

* merge

* fix scss reference

* fix types

* remove mistaken commit

* remove k7 switch

* snapshot update

* fix sidebar nav headers

* landing page copy

* remove dummy text

* merge

* i18n and revert unneeded change

* Update edit_role_page.tsx

* i18n

* i18n

* snap snap

* better text

* snap snap

* mergi

* pop open nav on mobile

* add management section tests

* NOTICE

* fix subhead text, add padding to bottom of management nav

* Update sidebar_nav.tsx

* merge merge

* fix sass lint
2019-01-03 17:09:42 -06:00
Nathan Reese faa5bd7288
update docs for reporting move to share menu (#27683) 2019-01-03 15:06:12 -07:00
Tim Sullivan 237e446ba3
[Reporting] Remove Phantom (#27142)
* remove some phantom stuff and tests

* remove phantom

* remove phantom

* remove phantom

* todo comments

* remove from yarn.lock

* edit fix

* use constant in init

* readme edit

* update migration guide

* remove refs to non-existing docs
2019-01-03 14:35:15 -07:00