Commit graph

27049 commits

Author SHA1 Message Date
renovate[bot]
572274b779 Update babel related packages (#43595)
* upgrade all babel related modules, and bump lodash minors

* update kbn-pm dist

* update fetch-mock, necessary to use core-js 3

* use regenerator transform in jest tests, as required by EUI

* disable useBuiltIns rather than using regenerator plugin

* remove extra regenerator-runtime import
2019-08-22 18:40:57 -07:00
Matt Bargar
bba04a51e3
Save query form validation on blur (#43726)
This PR changes the save query form to only validate its inputs on blur. Previously we validated on every change. This could lead to the errors flashing in the user's face before they're done typing a valid input. For example, we allow spaces in the name field, but not at the beginning or end of the name. So if a user typed this is a long name with spaces they would see the error pop up every time they type a space, only to have it disappear when they type the next letter.
2019-08-22 17:39:29 -04:00
Nathan Reese
6577875374
add comments to decode_geo_hash lost by refactor to typescript (#43789) 2019-08-22 14:33:43 -06:00
Frank Hassanabad
a69a3f7dd2
[SIEM] Improves the timeline performance by optimizing the width, removing wasted renderers, and adding a visibility sensor (#43560)
## Summary

This improves the timeline performance by:

* Optimizing the widths using ContextProvider when the AutoSizer is moved.
* Optimizing the renderers found within the Stats component by using React.Memo
* Fixes a small mistake with a ContextProvider which would make the `Header.Div's` re-render on redraws of the width
* Changed the width to use inline in areas as that is recommended by `StyledComponents` as a performance improvement when you have a fast amount of CSS changes dynamically.
* Adds a visibility sensor to so we can perform "windowing" and remove heavy DOM elements from the timeline 

Windowing over 300 items will show "grey" placeholders now until they load
![windowing-up-and-down](https://user-images.githubusercontent.com/1151048/63405479-31db0180-c3a4-11e9-8444-7472e6265b8e.gif)

Another shot of the windowing:
![place-holders-300](https://user-images.githubusercontent.com/1151048/63405598-9b5b1000-c3a4-11e9-927a-4d3e761df0d7.gif)

### Checklist

Use ~~strikethroughs~~ to remove checklist items you don't feel are applicable to this PR.

- [x] This was checked for cross-browser compatibility, [including a check against IE11](https://github.com/elastic/kibana/blob/master/CONTRIBUTING.md#cross-browser-compatibility)
- [x] 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)
- [x] [Documentation](https://github.com/elastic/kibana/blob/master/CONTRIBUTING.md#writing-documentation) was added for features that require explanation or tutorials
- [x] [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

- [x] This was checked for breaking API changes and was [labeled appropriately](https://github.com/elastic/kibana/blob/master/CONTRIBUTING.md#release-notes-process)
- [x] 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-22 14:01:06 -06:00
Tyler Smalley
daa86da4cf
Transpile @kbn/analytics with Babel (#43407)
Since this is being imported by the UI as a package, we need to transpile for the
browsers we need to support.

Fixes #42782

Signed-off-by: Tyler Smalley <tyler.smalley@elastic.co>
2019-08-22 12:58:51 -07:00
dave.snider@gmail.com
37dc42167c
Typo in update button. fixes #43675 (#43799)
Fixes the update button text.
2019-08-22 12:49:13 -07:00
spalger
b4dbd06954 Revert "run x-pack-firefoxSmoke 40 times"
This reverts commit 84a5103e67.
2019-08-22 12:45:43 -07:00
Spencer
69755e0d2f
[ftr/services/pipelineEditor] use retry.waitFor() (#43704)
* [ftr/services/pipelineEditor] use retry.waitFor()

* run x-pack-firefoxSmoke 40 times
2019-08-22 12:45:25 -07:00
Dario Gieselaar
732b7c9061
[APM] Make sure histogram is responsive when resizing window (#43759)
* [APM] Make sure histogram is responsive when resizing window

Closes #43575.

* Move resize comment to ChartsWrapper
2019-08-22 21:28:33 +02:00
Dario Gieselaar
77edbbee39
[APM] Use transaction indices to create ML job (#43750)
* [APM] Use transaction indices to create ML job

Closes #43509.

* Remove unused translations
2019-08-22 21:26:24 +02:00
Dario Gieselaar
0c754e3d89
[APM] parse _debug query parameter from JSON before validating (#43744) 2019-08-22 21:25:44 +02:00
Dario Gieselaar
cb09211ba1
[APM] Correctly pass service language for syntax highlighting (#43771)
Closes #33580.
2019-08-22 21:25:08 +02:00
Nik Everett
21cc988bd8
Docs: Fix asciidoctor compatibility (#43473)
This modifies the asciidoc files so they can be built by asciidoctor.
The biggest change is removing callouts that aren't at the end of the
line. To do that I break the examples from one giant line into many
shorter lines.
2019-08-22 14:55:41 -04:00
Matthias Wilhelm
59e632afe5
Catch fetchSurroundingDocs missing anchor (#43661) 2019-08-22 20:17:57 +02:00
Catherine Liu
90edcf2b10
[Canvas] Added formatnumber and formatdate UIs to sidebar (#43059)
* Added formatnumber and formatdate transform UIs

* Added rounddate transform

* Changed default custom format

* Changed to UTC date

* Fixed ts error

* Fixed help text

* Added type def for arguments

* Added types for tranforms

* Added snapshots

* Fixed prop
2019-08-22 11:03:03 -07:00
Catherine Liu
c8cac164b6
[Canvas] Query default index when index is unspecified (#41515)
* Queries default index in esdocs, essql, and timelion if index is not provided

* Refactored essql
2019-08-22 11:01:36 -07:00
Melissa Alvarez
5a0fb2c16a
[ML] DataFrame bulk actions (#43331)
* wip: add selection and actions icon

* add bulk delete functionality. use existing delete action component

* add start bulk action

* add stop bulk action

* add label for number of transforms selected

* Action components only accept items array. Update endpoint calls for array param

* update tests

* fix translation error

* update start modal translation

* transformDelete to server side for synchronous looping through ids

* transformsStart to server side for synchronous looping through ids

* transformsStop to server side for synchronous looping through ids

* change request method for delete.

* update deprecated functional component type

* ensure bulk actions disabled when appropriate

* handle timeouts for start,stop,delete actions

* rename DataFrameTransformEndpointRequest type

* disable all row actions when selected items

* fix localization error
2019-08-22 13:23:13 -04:00
Peter Pisljar
21958809de removes usage of EventsProvider in vislib (#38533)
* removing EventsProvider usage in Vislib
2019-08-22 10:40:26 -05:00
Josh Dover
c2ef2c8f51
Add support for dynamic imports (#43716) 2019-08-22 09:48:39 -05:00
Daniil Suleiman
e568c3dfde
[Vis: Default editor] EUIficate gauge/goal options tab (#43265)
* Euificate gauge options

* Changes params places

* Add ranges validation

* Get rid of legacy translates

* Fix functional tests

* Split gauge to panel components

* Disable alignment option
2019-08-22 16:01:55 +03:00
Kerry Gallagher
7602710bdc
[LogsUI] Add analysis results screen (#43471)
* Add empty analysis tab

* Add ml capabilities check

* Add job status checking functionality

* Add a loading page for the job status check

* Change types / change method for deriving space ID / change setup requirement filtering check

* Use new structure

* Add a loading page

* Initial timeRange URL state hookup

* Hook up params to data fetching

* Fleshing out EUI structure

* Change tab syntax

* i18n translate message prop

* Fix import

* Add structural visual components

* Split section in to independent component

* Real loading and no data states

* Add initial chart rendering (WIP)

* Tick formatting for x axis

* Add series styling, tickFormatter etc

* Base bucketDuration on time range for a sensible number of data points (naieve version)

* Add auto refresh

* Adjust bucketDuration algorithm

* Add some dark theme support

* Call the functions

* Extract chart helpers

* Amend io-ts types

* i18n translations

* Add types for graph data

* Allow ability to toggle model bounds

* Add anomaly series

* Format date correctly

* Add anomalies detected text

* Simplify syntax

* Update title

* Render panel within a page

* Add ability to switch between chart and table view

* Fix typechecking errors

* Add a Beta badge to the analysis tab
2019-08-22 13:57:25 +01:00
Zacqary Adam Xeper
40b28c7d7f [Logs UI] Create screen to set up analysis ML jobs (#43413)
* Add empty analysis tab

* Add ml capabilities check

* Add job status checking functionality

* Add a loading page for the job status check

* Change types / change method for deriving space ID / change setup requirement filtering check

* Use new structure

* Add module setup to log analysis jobs hook

* Add ID to path

* [Logs UI] Add analyis setup landing screen

* Add function to set up ML module on click

* Use partial type for start and end props

* Add start and end time selection

* Fix syntax

* Change seconds timestamp to ms

* Update wording

* Use FormControlLayout to clear datepickers

* Update wording about earlier start date

* Remove specific point in time wording

* Fix typechecking

* Reload analysis page on successful job creation

* Add error handling for setup failure

* Update description ton of feature to reflect 7.4 feature set

* Add toggleable default message

* Revert to EuiFormControlLayout until eui changes are pushed

* Remove sample data index if user has it set
2019-08-22 13:55:26 +01:00
Filip Rydzi
3da522d42b Threshold line on bar/line/area charts (#42632)
* first steps towards threshold line (histogram)

* threshold line added for all point_series charts

* added settings for threshold line

* last fixes

* fixed typo

* default values for thresholdLineOptions

* resolving conflicts

* threshold line not displayed when out of the canvas

* linting

* added color picker for threshold line

* fixed assigning of a static color and i18 select options

* changing default color and lintings

* Fix remaining TS issues
2019-08-22 14:44:36 +02:00
Nick Partridge
b596edd6d9 upgrade elastic-charts to 10.0.1 (#43732) 2019-08-22 14:44:19 +02:00
James Gowdy
1f0981246c
[ML] Allow index patterns containing commas in recogniser modules (#43686)
* [ML] Allow index patterns containing commas in recogniser modules

* fixing issue where only 'indexes' is the allowed datafeed index list
2019-08-22 08:14:09 +01:00
Sébastien Loix
1b164c1902
[Console] Update autocomplete api definition (#43651) 2019-08-22 07:35:35 +02:00
Yulong
d83e3a6917
[Code] fix git for large repos (#43669)
add an abstraction for git operations
2019-08-22 11:17:33 +08:00
Mengwei Ding
c4f483a394
[Code]: exclude from getting write privilege when choosing all (#43700)
* [Code]: exclude from getting write privilege when choosing all

* adjust api integration test

* minor change of the role name
2019-08-21 20:00:10 -07:00
Thomas Neirynck
bcd079571b mod sample data (#43487) 2019-08-21 18:11:45 -06:00
Kaarina Tungseth
9b23ce3cfb
[DOCS] Fixes workpad and element links (#43727)
* [DOCS] Canvas elements content

* Data source build out

* Display options and actions

* Reorganization, cycle interval, and organization actions

* Reorganized content

* Reorganization and clean up

* Added images

* Review comments pt 1

* Review comments pt 2

* Review comments pt 2

* Review comments pt 3

* Change on to in

* xpack

* Comments from Catherine

* [DOCS] Fixes workpad and element links
2019-08-21 18:40:42 -05:00
Kaarina Tungseth
06b37dbad3
[DOCS] Fixes element link (#43725)
* [DOCS] Canvas elements content

* Data source build out

* Display options and actions

* Reorganization, cycle interval, and organization actions

* Reorganized content

* Reorganization and clean up

* Added images

* Review comments pt 1

* Review comments pt 2

* Review comments pt 2

* Review comments pt 3

* Change on to in

* xpack

* Comments from Catherine

* Fixed link issue
2019-08-21 17:46:48 -05:00
Larry Gregory
608e2391d0
Copy Saved Objects to Spaces API (#38014) 2019-08-21 17:27:55 -04:00
Kaarina Tungseth
5fe9d0e780
[DOCS] Canvas elements (#42473)
* [DOCS] Canvas elements content

* Data source build out

* Display options and actions

* Reorganization, cycle interval, and organization actions

* Reorganized content

* Reorganization and clean up

* Added images

* Review comments pt 1

* Review comments pt 2

* Review comments pt 2

* Review comments pt 3

* Change on to in

* xpack

* Comments from Catherine

* Export image

* Final clean up
2019-08-21 16:12:22 -05:00
Matt Bargar
e233e419cf
Implement saved queries and filters (#39140)
Introduces "saved queries". Saved queries are a new saved object type similar to saved searches but more limited in scope. They allow users to store the the query string in the query bar and optionally the set of filters and timefilter in order to reload them anywhere a query is expected: Discover, Visualize, Dashboard, anywhere that uses our full SearchBar component.
2019-08-21 16:53:19 -04:00
Matthias Wilhelm
cb8133aee5
Fix date_nanos formatting for formats without fractional seconds (#43114)
* Fix formatting for formats without S... part

* Add jest test catching the bug
2019-08-21 22:42:16 +02:00
Nathan Reese
0d4e979778
[Maps] allow embeddables to hide filtering controls (#43703)
* [Maps] allow embeddables to hide filtering controls

* fix typos in embeddable docs
2019-08-21 13:44:07 -06:00
Josh Dover
5071c74945
Replace CSP 'nonce-<base64>' directive with 'self' directive (#43553) 2019-08-21 14:11:38 -05:00
Mike Côté
90532673fd
Add spaces only tests for alerting and actions (#43616)
* Add spaces only tests

* Rename some tests to make more sense in spaces only context

* Modify test suite titles

* Apply changes from master

* Loop only one scenario for now

* Reduce amount of tests spaces_only runs

* Fix failing test

* Remove looping in spaces only tests
2019-08-21 13:23:06 -04:00
spalger
e4a72e4aa8 skip flaky test suite (#43557) 2019-08-21 08:47:47 -07:00
spalger
10c4b3e609 skip flaky test (#39163) 2019-08-21 08:45:42 -07:00
Dmitry Lemeshko
9b9801f470
functional tests for input control range (#42483)
* [apps/visualize] functional tests for input control range

* update jest test to have 100% combined coverage with functional
2019-08-21 17:22:54 +02:00
James Gowdy
a9032035b0
[ML] Population wizard layout improvements (#43664)
* [ML] Population wizard layout improvements

* updating string id
2019-08-21 16:04:47 +01:00
spalger
48ceb29185 disable flaky test (#43655) 2019-08-21 07:39:25 -07:00
Dario Gieselaar
4d54b5fa5e
[APM] migrate to io-ts (#42961)
* [APM] migrate to io-ts

* Migrate remaining routes to io-ts

* Infer response type for useFetcher()

* Review feedback

* Use createRangeType util

* Extract & test runtime types

* Simplify runtime types

* Tests for createApi and callApmApi

* Use more readable variable names in runtime types

* Remove UIFilters query param for API endpoints where it is not supported

* Fix issues w/ default parameters in create_api
2019-08-21 15:51:41 +02:00
Yulong
4a82b9541d
[Code] fix a launching embed ctag-langserver problem (#43561) 2019-08-21 21:45:05 +08:00
Alexey Antonov
3e75f304b2
[Inspector Views] [Data View] - Migrate inspector_views to new platform (#43349)
* [Inspector Views] [Data View] - Migrate inspector_views to new platform

* fix PR comments
2019-08-21 16:40:12 +03:00
Corey Robertson
54e2edce19
[Canvas] Canvas embeddable (#39839)
* Adds embeddable objects to canvas

* Handle embeddable_api -> NewPlatform changes

* Addressing PR feedback

* Properly mock new platform

* Snake case filenames{

* Switch relative paths to src/
2019-08-21 08:08:15 -05:00
Walter Rafelsberger
6ab5be15f0
[ML] Data frame analytics: Outlier detection results page (#43578)
Introduces a page to view results of outlier detection jobs. Users can navigate from the analytics jobs list to the results page by clicking on the View button.
2019-08-21 05:40:12 -07:00
Daniil Suleiman
db0e080cb0
Fix loading options tab in goal vis (#43345)
* Fix loading options tab in goal vis
2019-08-21 13:57:11 +03:00
Joe Reuter
9dd4369a33
Expression datatable formatting hints (#43091) 2019-08-21 12:52:25 +02:00