Commit graph

26827 commits

Author SHA1 Message Date
Vadim Dalecky
48df3c8893
Utility types (#41246)
* feat: 🎸 add @kbn/utility-types

* feat: 🎸 improve @kbn/utility-types

* chore: 🤖 move @kbn/utility-types to dev deps

* chore: 🤖 change @kbn/utility-types build setup

* fix: 🐛 implement review suggestions

* feat: 🎸 add ShallowPromise type

* Update packages/kbn-utility-types/README.md

Co-Authored-By: Luke Elmers <lukeelmers@gmail.com>

* test: 💍 add tests for utility-types

* chore: 🤖 add utility-types tests to TypeScript config

* test: 💍 remove negative tests to not cause TypeScript fail

* chore: 🤖 remove ref to type defs to try fix CI tests

* Update packages/kbn-utility-types/index.ts

Co-Authored-By: Spencer <email@spalger.com>

* chore: 🤖 add TS types index to fix `grunt run:test_projects`

* chore: 🤖 use similar tsconfig.json as in other packages

* chore: 🤖 add "clean" script

* chore: 🤖 add kbn:bootstrap script
2019-08-12 15:45:32 +02:00
Mike Côté
d113d4c0c1
Move alerting tests into own folder (#43061)
* Move alerting tests into own folder

* Use ciGroup8

* Fix test failures
2019-08-12 09:28:10 -04:00
Maryia Lapata
3c2e4e41eb
[Vis Editor] Fix TS for Field control (#42121)
* Fix TS

* Rename groupAggregationsBy to groupAndSortBy and adjust TS

* Update unit tests

* Remove fieldParamType from field_filters interface

* Refactoring TS of groupAndSortBy

* Make displayName required since it always be set

* Use field name instead of displayName
2019-08-12 14:08:34 +03:00
Vadim Dalecky
ece2c35de1
Embeddables 👉 NP-ready (#41272)
* refactor: 💡 create registries file

* docs: ✏️ add testing command to docs

* chore: 🤖 create state folder

* chore: 🤖 WIP

* refactor: 💡 remove static imports of stateful things

Make Embeddables ./triggers tests pass

* test: 💍 add await-of for testing

* refactor: 💡 move stateless code into shim's lib/ folder

* test: 💍 add registry tests

* feat: 🎸 add Embeddable plugin public "setup" API

* feat: 🎸 create Embeddable plugin shim

* refactor: 💡 minor improvements for new plugin structure

* refactor: 💡 move test helpers into shim

* feat: 🎸 add Embeddable setup.getTrigger() method

* feat: 🎸 inject setup API into pure setup functions

* refactor: 💡 generate Embeddable setup API in a loop

* feat: 🎸 add getTriggerActions() Embeddable setup function

* feat: 🎸 add getTriggerCompatibleActions() to Embeddable shim

* chore: 🤖 uninstall await-of package

* chore: 🤖 simplify imports/exports

* test: 💍 improve testing utilities

* feat: 🎸 add executeTriggerActions() Embeddables setup method

* fix: 🐛 remove non-existing import

* chore: 🤖 cleanup actions

* refactor: 💡 move errors into dedicated errors.ts file, add test

* test: 💍 add unit test for ApplyFilterAction class

* test: 💍 import helpers correctly after refactoring

* test: 💍 fix actions tests

* feat: 🎸 clean up /lib/embeddables

* test: 💍 fix /lib/containers tests

* test: 💍 make embeddable_panel.test.tsx tests pass

* refactor: 💡 work on briging EditPanelAction action to /actions

* test: 💍 make /containers tests pass

* test: 💍 make /actions and /embeddables tests pass

* test: 💍 clean up tests from legacy platform static imports

* feat: 🎸 add getEmbeddableFactories API method

* test: 💍 add tests for factory list method

* feat: 🎸 add start life-cycle API

* feat: 🎸 unify Embeddables API

* refactor: 💡 create /css folder, move all CSS there

* feat: 🎸 improve dashboard container shim

* feat: 🎸 progress on dashboard container shim

* feat: 🎸 implement getEmbeddableFactory Embeddable API method

* feat: 🎸 improve embeddable container shim

* test: 💍 fix dashboard container expand panel tests

* test: 💍 fix dashboard grid tests

* test: 💍 fix createPanel tests

* test: 💍 fix dashboard viewport tests

* test: 💍 fix dashboard container tests

* test: 💍 add Embeddable plugin mock

* test: 💍 improve tests after merge

* refactor: 💡 move new platform code into np_ready folders

* chore: 🤖 fix some TS errors after merge

* chore: 🤖 fix more TS errors after merge

* fix: 🐛 fix TypeScript errors in kbn_tp_sample_panel_action

* fix: 🐛 fix more TypeScript errors

* fix: 🐛 fix TypeScript in functional tests

* fix: 🐛 fix more TypeScript errors

* fix: 🐛 fix more TS errors

* refactor: 💡 pass deps through constructors

* refactor: 💡 improve dependency injection and fix tests

* test: 💍 fix container integration tests

* test: 💍 fix customize_panel_modal tests after refactor

* test: 💍 fix all tests in embeddable_api

* chore: 🤖 fix linter error

* test: 💍 fix dashboard_embeddable_container tests after merge

* test: 💍 fix /src TypeScript errors

* fix: 🐛 fix Jest tests and add global typings in demo plugin

* fix: 🐛 fix build errors

* fix: 🐛 make build start without errors

* fix: 🐛 in dashboard container don't import types from ui/*

* chore: 🤖 fix linter errors

* refactor: 💡 remove getUserData, remove another ui/new_platform

* chore: 🤖 fix linter errors

* refactor: 💡 remove ui/new_platform from HelloWorldAction

* refactor: 💡 remove ui/new_platform from SendMessageAction

* refactor: 💡 remove ui/new_platform from ContactCardEmbeddableF*

* chore: 🤖 fix ESLint errors

* feat: 🎸 throw if action or trigger with given ID already exists

* feat: 🎸 throw if embeddable factory already registered

* docs: ✏️ fix tsdoc

* chore: 🤖 remove unused @ts-ignore

* refactor: 💡 remove createEmbeddables() function

* refactor: 💡 use new NP inspector plugin

* fix: 🐛 fix TypeScript errors

* chore: 🤖 improve plugin manifests

* feat: 🎸 cherry pick exported API from Embeddable plugin

* refactor: 💡 do not import constants from Kibana App

* fix: 🐛 remove unnecessary any

* chore: 🤖 uncomment SASS files

* refactor: 💡 remove IndexPattern logic out of dashboard panel

* refactor: 💡 move RefreshInterval and TimeRange to New Platform

* fix: 🐛 revert back notifications usage

* chore: 🤖 export test samples from index.ts files

* test: 💍 re-enable ApplyFilterAction integration tests

* chore: 🤖 remove unused translation

* refactor: 💡 rename variable to something less React specific

* fix: 🐛 improve CSS imports, remove unused hack, remove any type

* fix: 🐛 fix Embeddables demo plugin

* fix: 🐛 fix missing SASS variable

* fix: 🐛 re-enable translation

* fix: 🐛 uncomment saved object flyout panel logic

* refactor: 💡 pass in <SavedObjectFinder> from top level

* test: 💍 re-enable add_panel_flyout tests

* refactor: 💡 pass in <ExitFullScreenButton> through args

* fix: 🐛 import specific constants to fix functional tests

* fix: 🐛 fix CI type_check error

* test: 💍 change import paths to fix functional tests on CI

* test: 💍 fix exit button test after refactoring

* refactor: 💡 make do not change page on grid error

* test: 💍 fix functional test

* refactor: 💡 move CSS next to components

* fix: 🐛 remove missing props

* test: 💍 try fixing functional test on CI

These tests pass locally, but fail on CI. This is a stab to fix it on
CI.

* refactor: 💡 move variables.scss one folder up

* test: 💍 disable Embeddable Explorer functional tests

* chore: 🤖 remove onCoreReady in functional tests

* test: 💍 disable maps functional test for embeddables

* chore: 🤖 remove comment, export types explicitly

* refactor: 💡 remove unused `firstName`, add link to issue

* refactor: 💡 remove double underscore __ in test registry names

* refactor: 💡 remove utils folder, move bootstrap() fn to top lvl

* test: 💍 uncomment edit_panel_action tests

* test: 💍 uncomment inspect_panel_action tests
2019-08-12 12:41:18 +02:00
Marco Vettorello
7348a12fee
Avoid applying formatting on already formatted value (#41769) 2019-08-12 11:59:46 +02:00
Fuyao Zhao
44f26d5c51
[Code]: downgrade the log level of error message from subprocess (#42925) 2019-08-12 16:31:39 +08:00
Mengwei Ding
0891db0d53
[Code] Cancel clone/update job in the middle if disk space over the watermark (#42890)
* [Code] interrupt clone if disk usage goes above watermark during clone

* minor refactor

* add unit tests

* minor change

* fix type check

* minor fix

* fix test
2019-08-12 00:33:06 -07:00
VassilisAsteriou
85699b1376 Add Kibana App specific URL to the help menu (#34739) (#42580)
* Add Dashboard help menu

* Add Discover help menu

* Add Visualize help menu
2019-08-12 09:31:14 +02:00
Nathan Reese
cf7faedc16
[Maps] refactor createShapeFilterWithMeta to support more than just polygons (#43042)
* [Maps] refactor createShapeFilterWithMeta to support more than just polygons

* rename setPrecision to roundCoordinates

* i18n cleanup

* remove unused file

* review feedback

* split filter create into two functions
2019-08-11 20:31:56 -06:00
CJ Cenizal
3773371c12 Skip flaky es_ui_shared/request tests. 2019-08-11 14:09:30 -07:00
Liza Katz
060d99821f
Pass uiSettings to all data plugin services (#42159)
* kbn top nav in discover

* New top nav in dashboard and vis editor

* change kbn top nav directive

* Stop using template feature of kbn top nav

* Combined css

* console top nav

* Removed unnecessary use of kbn-top-nav in dev tools app (wrapping tabs)

* Changed console menu to new directive

* CSS adjustments + functional implementation of top nav menu item

* Fixed DevTools top nav toggle

* Optional show-border

* timelion menu works

* Improve filter sorting logic to be more stable

* Support showing filter bar as part of top nav

* Use search bar in top nav in discover and maps
Support search bar with no filter bar (TS)

* tmp revert

* Align search bar settings accross apps

* Reverted change in ML, removed unused css

* Added data test subj to top nav menu items

* Watch config by value

* Some directive magic to make sure that disabledButtons functions are watched correctly.

* Fix missing controls from new top nav in some visualizations

* showAutoRefreshOnly in input controls visualization

* Fixed inspector disabled test

* Fix dashboard action links
rewrite top nav menu item to functional style

* snapshots

* Fixed maps filter bar

* Remvoed comment

* Update Query Bar defaults

* Top nav menu item tests

* Moved storage instantiation to angular directive

* SearchBar jest tests

* Query bar additional tests

* Top nav menu tests

* Pass store into top nav menu correctly

* watch store by reference

* Added not null assertion

* Make index patterns optional (for timepicker only setup)

* QueryBar tests again

* Search bar tests

* Top nav tests

* Top nav menu tests

* removed unnecessary ui/new_platform mock

* Moved discover result count away from top nav

* Moved and improved top nav menu css

* remove unused translations

* Move timepicker (to be deprecated) into old kbn_top_nav

* Deleted search-bar and query-bar directives!

* moved search bar to kibana_react (it's a generic react component, not a service)

* translations

* Moved superDatePicker directive to kbn_top_nav (to be deprecated)
Deleted unused react_component directives call-out and tool-bar-search-box

* Use index patterns from data plugin itself instead of importing from ui/public

* Pass uiSettings from top level of data plugin

* Pass saved objects client from top level

* query bar input to rely on provided localStorage (?)

* import QueryBarInput correctly from vis ediror

* Query bar input tests - uiSettings

* Query bar - uiSettings tests

* import QueryBar from data plugin correctly

* Use provider to pass config to TSVB query bar inputs

* Add query bar input parms to agg types

* Standardize shape data plugin and use it to pass uiSettings in.

* Removed unnecessary mocks

* Fixed test typo

* Code review part 1

* Code review part 2 - clean up top nav menu item run interface

* Give top nav items better keys

* Simplified top nav construction logic in editor

* Fixed mock of search bar in top nav test

* Moved filter trigger button rendering to helper function

* Remove responsiveness from top nav items

* vertical align for cases where showSearchBarInline is true
(i.e. only menu and time picker in the same row)

* Export TopNavMenuData type

* Removed unused name attribute in top nav. Use app-name instead.

* Minor merge fixes

* Update data plugin shape

* type fixes

* fix core start import

* Fixed tests

* fix another test mock

* Brought back setup.ts for backward compatibility.
Chnaged to relative imports

* bad import from data plugin

* Yet another import :-(

* Code revire #1 @lukeelmers

* create wrapper for QueryBarInput

* use IndexPatterns type

* import order

* Code review fixes

* inject uiSettings into filter-bar directive

* Fix some type errors

* Fixes

* Filter bar context

* ts CoreSetupContextProvider

* Moved coreCOntext to vis_editor constructor

* Reverted filter bar context

* Removed editor html ng-show

* use saved objects contract + check uiSettings
2019-08-11 12:10:43 +03:00
Frank Hassanabad
fe3422cfc3
[SIEM] Upgrades react-redux and utilize React.memo for performance gains (#43029)
## Summary

* Upgrades react-redux so we can use React.memo with hooks and connected components.
* Adds displayName to all the components that are React.memo as well as all components that are `pure` components.

Using React Profiler you can see that when doing something as innocuous as dragging the divider bar of the Timeline you will get updates of the different tables:

<img width="1547" alt="Screen Shot 2019-08-08 at 1 25 22 PM" src="https://user-images.githubusercontent.com/1151048/62789872-19efad80-ba87-11e9-92b5-eb9666c7c07a.png">

This is a result of redux making changes based on the location of the timeline. As this occurs, the UrlState begins updating its self and all children which is not what we want.

You will see differences now in the snapshots such as this which adds naming to it:
<img width="1582" alt="Screen Shot 2019-08-09 at 2 34 06 PM" src="https://user-images.githubusercontent.com/1151048/62808504-7a95df00-bab5-11e9-89c1-910b3908c705.png">

For the rest of us profiling we will have friendly names in our profiling tools to be able to trace what is going on very quickly

Before where a name didn't exist and it just showed `Memo` or `pure`:
<img width="221" alt="Screen Shot 2019-08-09 at 11 55 08 AM" src="https://user-images.githubusercontent.com/1151048/62809192-79fe4800-bab7-11e9-993b-2e7abadbb691.png">

Now that a name exists you can trace to the code quickly to the component name:
<img width="1570" alt="Screen Shot 2019-08-09 at 3 08 42 PM" src="https://user-images.githubusercontent.com/1151048/62809235-9a2e0700-bab7-11e9-8711-bae7d263d487.png">


### 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~~

~~- [ ] [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-08-09 19:46:29 -06:00
Nathan Reese
95807a2d55
[skip-ci][Maps] add maki icon sheet to docs (#43063)
* [Maps] add maki icon sheet to docs

* use 8 columns instead of 16 so icons are legible

* add + to indent label to be inline with image
2019-08-09 16:51:27 -06:00
Brandon Kobel
2ce2bfbca7
Adding "style-src 'unsafe-inline' 'self'" to default CSP rules (#41305)
* Adding "style-src 'unsafe-inline' 'self'" to default CSP rules

* Updating jest snapshot

* Fixing api integration smoke test

* Verifying all CSP responses

* Fixing OIDC implicit flow test
2019-08-09 15:15:40 -07:00
renovate[bot]
7b39137ce8 Update dependency commander to v3 (#43041) 2019-08-09 16:13:31 -06:00
renovate[bot]
e1f692520c Update dependency @percy/agent to ^0.10.0 (#40517) 2019-08-09 16:12:02 -06:00
Nathan Reese
27d02bb2f5
[Maps] only show top hits checkbox if index has date fields (#43056)
* [Maps] only show top hits checkbox if index has date fields

* rename useTopHitsCheckbox to topHitsCheckbox
2019-08-09 14:51:16 -06:00
Dmitry Lemeshko
2198222f28
run chained_controls on Firefox to catch regression (#43044) 2019-08-09 21:40:34 +02:00
Bill McConaghy
5e76040369
fixing issue with dashboard csv download (#42964)
* fixing issue with dashboard csv download

* fixing test fixture to match new sort storage format for saved searches

* fixing sort in additional fixtures
2019-08-09 15:20:19 -04:00
Mike Côté
f41147020a
Expose task manager as plugin instead of server argument (#42966)
* Expose task manager as plugin instead of server attribute

* Cleanup

* Fix typo
2019-08-09 15:17:32 -04:00
Mikhail Shustov
c9220c5863
Expose createRouter from HttpService, prepare handlers for context introduction (#42686)
* expose createRouter, prepare route handler for context introduction.

* fix tests

* update examples in docs

* update tests

* re-genereated docs

* remove registerRouter from http service contract

createRouter registers a router under the hood. that reduces API surface
for consumers

* address comments

* update docs
2019-08-09 21:08:34 +02:00
Mengwei Ding
1562e6289a
[Code] disk watermark supports percentage and absolute modes (#42987)
* [Code] disk watermark supports percentage and absolute modes

* add unit tests

* use percentage mode by default
2019-08-09 11:56:11 -07:00
Dmitry Lemeshko
2ebbf1b091
[apps/dashboard] skip part of filtering tests on FF (#43047) 2019-08-09 20:46:28 +02:00
Melissa Alvarez
acabe3d269
[ML] Kibana management jobs list (#42570)
* Add Ml link section to management page

* Use job management table in kibana management

* add tabs and breadcrumbs

* link to filtered job manangement table

* Reduce expanded row tabs shown in management table

* add KM job list section styles

* Only anomaly detection jobs tab for now

* wip: adds access denied page

* fix types

* update mlManagement permission check to check license

* update permissions check for manage_ml

* Update permission check to manage_ml

* update privileges key type

* if spaces is disabled or ignoreSpace is true force isMlEnabledInSpace to be true

* remove id from filter on clear
2019-08-09 13:59:05 -04:00
James Gowdy
a209f1f3c3
[ML] Fix check for watcher being enabled (#43025)
* [ML] Fix check for watcher being enabled

* adding comments

* typo

* fixing test
2019-08-09 16:54:55 +01:00
Chris Roberson
3f65d5f2d8
[Monitoring] Use async/await pattern which should address weird bug (#42876)
* Use async/await pattern which should address weird bug

* Fix tests
2019-08-09 11:47:59 -04:00
Kerry Gallagher
abe56c2182
[Logs UI] Show highlighted log entries in the minimap (#40745)
* Commit to allow opening the PR

* Add start of the highlights menu

* Add terms input

* Add a container for highlights state

* Start to hook up highlights state effects, and Bridge with Redux

* Move highlighted logs to a separate graphql field

* Add highlights argument to unit tests

* Add initial draft of a log highlights hook

* Finish hooking up hook state ready for GraphQL query

* Take startKey and endKey from overall collection of log entries

* Add sourceVersion

* Fetch the data

* Use columns ids instead of column indices

* merge highlights into stream WIP

* Add highlighting for the message column type

* Use the serialized filter query

* UX / Performance improvements

* Show a highlight is active
* Focus input when menu is opened
* Icon for highlights menu
* Debounce onChange handler
* Loading state for highlights menu
* Neaten up Provider

* Tweaks

* Breathing room for icon
* Better debounce time for typing

* Menu changes

* Ensure width of popover stays consistent
* Add a button to clear highlights

* Add highlighting for field columns

* Use phrase query for highlighting

While a `phrase_prefix` query feels more natural, it doesn't work on
`keyword` type fields. Using just a `phrase` query keeps the
highlighting consistent between text and keyword type fields.

* Factor out commonly used visibility state

* Fix debounce to support changing onChange prop

* Move clear highlight button inline

* Translate labels

* Rely on popover ownfocus prop to focus the input

* Rename function to avoid i18n checker false positive

* Rough and ready WIP next / previous

* Add `countBefore` and `countAfter` highlight args

* Fix value used

* Add a check for entry

* Rearrange icons

* 0 falsey blurgh

* Organise into separate sub-hooks for clarity

* Add comment

* Use filter and highlight queries also beyond interval

* Refine behaviour of next / previous

* Stops wrapping
* Ensures that when scrolling next / previous takes off where it was left
* Ensures the first highlight is scrolled to when changing highlight term

* Add log highlights api tests

* Fix a few runtime and compiler errors and linter warnings

* Refactor prev/next jumping to avoid index errors

* Use nearest index for initial jump

* Include element type in translation id

* Disable clear button when nothing to clear

* Initial summary highlights state

* Amend component usage

* Comment out load call until query exists

* Add graphql api for summary highlights

* Add the client-side log summary highlight query

* Directly use log view configuration without a bridge

* Rename log entry highlight hook to maintain symmetry

* Re-enable highlight rendering in the minimap

* Keep the time cursor from intercepting clicks

* tweak minimap highlighting colors and interaction

* Clean up after merge

* Remove commented-out code

* Change cursor to hint at minimap highlighting interaction

* Restrict highlight query filter to relevant fields

* Add explanatory error message
2019-08-09 16:29:48 +01:00
James Gowdy
701996d893
[ML] Adding job overrides to the module setup endpoint (#42946)
* [ML] Adding job overrides to the module setup endpoint

* removing text code

* throw error for incompatible data

* changes based on review
2019-08-09 15:50:27 +01:00
Søren Louv-Jansen
40a0c0676c
[APM] Fix missing RUM url (#42940)
* [APM] Fix missing RUM url

* Reduce to single conditional branch

* Fix test

* Add tests for `url.full` and `error.page.url`
2019-08-09 15:25:32 +02:00
Jonathan Budzenski
d0fbff593c
close socket timeouts without message (#42456) 2019-08-09 08:15:08 -05:00
Marco Vettorello
ec1763269e
Upgrade elastic/charts to 8.1.6 (#42518) 2019-08-09 14:57:19 +02:00
Pete Harverson
f55e6da0d1
[ML] Delete old AngularJS data visualizer and refactor folders (#42962)
* [ML] Delete old AngularJS data visualizer - Resolve merge conflicts

* [ML] Fix imports

* [ML] Updating translation files
2019-08-09 12:02:35 +01:00
Bart Van Remortele
6637bbe357 Add custom formatting for Date Nanos Format (#42445)
* Add custom formatting for Date Nanos format

* Add date nanoseconds samples

* Add jest test for DateNanosFormatEditor
2019-08-09 12:33:29 +02:00
Alexey Antonov
dfd455df36
[Vega] Shim new platform - vega_fn.js -> vega_fn.js , use ExpressionFunction (#42582)
* [Vega] Shim new platform - vega_fn.js -> vega_fn.js , use ExpressionFunction

* fix PR comments

* fix PR comments
2019-08-09 16:42:52 +08:00
Mikhail Shustov
c30df8d136
add socket.getPeerCertificate to KibanaRequest (#42929)
* add socket.getPeerCertificate to KibanaRequest

* update request mocks

* update docs
2019-08-09 10:42:33 +02:00
Alexey Antonov
b27be54430
[Automation] ISTANBUL PRESET PATH is not working fine with constructor(private foo) (#42683) 2019-08-09 16:13:30 +08:00
Walter Rafelsberger
4a9300fe1b
[ML] Data frames: Updated stats structure. (#42923)
* Reflects the changes to transform stats on the ES side in elastic/elasticsearch#45276
* Updated mock __mocks__/data_frame_transform_list_row.json to reflect the new stats structure
* Previously there were stats attributes task_state and indexer_state, now there is only state.
* Renamed DATA_FRAME_TASK_STATE to DATA_FRAME_TRANSFORM_STATE .
* Extended possible states to aborting, failed, indexing, started, stopped, stopping.
* A stopped batch transform's stats no longer returns the progress until it was stopped. Instead of falling back and showing 0% with an empty progress bar, nothing will be shown. If the job is continued and returns progress again, the progress bar will also be shown again.
* The expanded row's details tab now exposes hard-coded stats/state attributes instead of inferring attributes dynamically from objects. This was done so we can do custom formatting for date fields for example.
2019-08-09 09:13:24 +02:00
Yang Yang
260f859d5f
[Code] fixed the issue that the repository can not be deleted in some cases. (#42841)
* [Code] fixed the issue that the repository can not be deleted in some
cases.

* [Code] catch the rejected exception while cancelling the job, and added
a unit test for CancellationService when the promise of the job get
rejected.

* [Code] refined tests for CancellationService by deferred completion of
the promise.
2019-08-09 13:25:03 +08:00
Tyler Smalley
35d33b7fbf
[kbn-es] Support for passing regex value to ES (#42651)
We test each value to determine if it's a file, in which case we move it to the
config directory. This is required to support things like SSL certificates which
are required to be within the ES directory. path.isAbsolute evalues to true for
a regular expression. In order to resolve this, we also verify that the file
exists.

Signed-off-by: Tyler Smalley <tyler.smalley@elastic.co>
2019-08-08 18:03:03 -07:00
Mike Côté
6d4191c1e6
Connect to Elasticsearch via SSL when starting kibana with --ssl (#42840)
* Initial work

* Add check for elasticsearch.hosts

* Make --ssl apply default config values only

* Move @kbn/dev-utils to devDependencies

* Check elasticsearch url for localhost

* Cleanup

* elasticsearch.hosts can be string too
2019-08-08 19:47:52 -04:00
Mike Côté
cb0cabf0cc
Add Elasticsearch SSL support for integration tests (#41765)
* Allow tests to use SSL between Kibana and Elasticsearch

* Fix cert path

* By default no tests will use the new ssl feature
2019-08-08 18:38:16 -04:00
Lukas Olson
fc1ea0b89d
Fix duplicate fetch in Visualize (#41204)
* Fix duplicate fetch in Visualize

* Don't refetch when disabled filters change

* Use query filter fetches observable

* Add back in watch on filters

* Revert change completely

* Update test to include non-disabled filter

* Remove unnecessary checks
2019-08-08 14:23:42 -07:00
Kaarina Tungseth
887cee40ed
[DOCS] TSVB and Timelion clean up (#42953) 2019-08-08 16:17:01 -05:00
Aaron Caldwell
6335a12b4c
[Maps] [File upload] Fix maps geojson upload hanging on index step (#42623)
* Remove timeout from fetch. Falls back to 30 second timeout on server-side indexing call

* Handle when indexing request is a success but every doc failed

* Return failures array from catch

* Review feedback

* Review feedback
2019-08-08 14:54:38 -06:00
Søren Louv-Jansen
0517ec99e8
[APM] Use rounded bucket sizes for transaction distribution (#42830)
* [APM] Use rounded bucket sizes for transaction distribution

* Rename and add examples
2019-08-08 22:10:29 +02:00
Jonathan Budzenski
46483d4eeb
[yarn.lock] consistent resolve domain (#42969) 2019-08-08 14:38:19 -05:00
Justin Kambic
6b3430ef9c [Uptime] [Test] Repurpose unit test assertions to avoid flakiness (#40650)
I had previously revised these tests to utilize Jest's toBeCloseTo assertion, because it provides a precision parameter. My understanding when I implemented this test was that it would check n significant digits, so if I ran code like expect(myValue).toBeCloseTo(36000, 3), a value like 36015 would be accepted by the assertion. After seeing this test fail in a flaky way while testing other changes (it failed when myValue === 36001), I researched the function more closely and found that it does not behave this way.

This led me to opt for the current solution, which should help avoid any flakiness issues while continuing to rely on the end-user simplicity of a snapshot. I do not expect a variance greater than 1 when running these tests, so the threshold of 100 should be sufficient to consider these tests stable.
2019-08-08 14:15:27 -05:00
Przemysław Hejman
25107e3bc8 [build] Override "org.label-schema.license" Docker label (#42836) 2019-08-08 14:09:05 -05:00
Nathan Reese
6182bcf48d
[Maps] fix bug with draw filters in maps application (#42956) 2019-08-08 12:00:10 -06:00
laraMorenoIgle
ef8072da2b
Update settings.asciidoc (#42820)
vega.enableExternalUrls setting missing but it still supported, so needed to be added
2019-08-08 18:44:16 +02:00