Commit graph

4542 commits

Author SHA1 Message Date
Dmitry Lemeshko 304f702764
jest & mocha test coverage reporting (#43742)
* grunt task to get mocha tests coverage

* update jest x-pack config to save report in target

* update report path to match /target/kibana-* pattern
2019-08-24 16:48:08 +02:00
Nathan Reese 898c3d0d87
[Maps] add i18n wrappers around missed text (#43635)
* [Maps] add i18n wrappers around missed text

* fix i18n duplicated id
2019-08-24 07:17:48 -06:00
Nathan Reese 14a8192f0a
[Maps] add migration to switch tile layers with EMS_TMS source to vector tile layer (#43777)
* [Maps] add migration to switch tile layers with EMS_TMS source to vector tile layers

* update migration on sample data saved objects since they have already been migrated

* update jest test expect
2019-08-24 07:15:54 -06:00
Frank Hassanabad ab7874efb2
[SIEM] Removes expensive global CSS calculations of resize handle (#43898)
* [SIEM] Removes global style that caused expensive CSS calculations when the resizebar is moved

* Add back grow={1} to the EuiFlexItem

* Update docs

* Fix safari issue with feature detection
2019-08-23 18:29:57 -06:00
Alison Goryachev bd686f3a2d
[IM] Index templates form wizard (#42457) 2019-08-23 16:03:56 -04:00
Vadim Dalecky 85d4147cfd
exit_full_screen_button 👉 New Platform (#43414)
* refactor: 💡 move ExitFullScreenButtonUi to src/plugins

* refactor: 💡 move ExitFullScreenButtonUi to src/plugins

* refactor: 💡 use <ExitFullScreenButton> button from src/plugins

* test: 💍 fix exit_full_screen_button tests

* refactor: 💡 import _index.scss from main SCSS file

* feat: 🎸 port translations to a NP plugin

* test: 💍 update Jest snapshot
2019-08-23 21:51:25 +02:00
Gidi Meir Morris e8c50c0cfb
[Alerting] Adds a builtin action for triggering webhooks (#43538)
Adds the ability to trigger webhooks using an action.

This feature is currently locked off while we figure out the right privileges model.
2019-08-23 19:42:25 +01:00
Larry Gregory 6a9844c223
Spaces - Copy Saved Objects to Spaces UI (#39002) 2019-08-23 14:24:53 -04:00
renovate[bot] c145a33b95 remove ansi-colors dependency (#43804) 2019-08-23 10:38:52 -07:00
Mikhail Shustov 9a732014cb Response factory parameters as named arguments (#43248)
* pass body as response parameter. use attributes for error responses

* update core

* update tests

* update x-pack code

* update x-pack tests

* regen docs

* update comment

* Review feedback and fixes after master merge

* Eslint fixes
2019-08-23 19:31:17 +02:00
Kerry Gallagher 182f4f3a83
[LogsUI] Log rate analysis wrap up (#43774)
* Use filter for exclusion on index

* First pass at failure scenario (WIP)

* Fix the bug with didSetupFail value

* Ensure job statuses are reset properly when we are in a new unknown state

* Adjust no data wording to accont for first use scenario
2019-08-23 18:22:57 +01:00
renovate[bot] 07618e22c4 Update dependency xregexp to v4 (#43229) 2019-08-23 09:45:55 -07:00
Vadim Dalecky 748afc11c6
Embeddables React (#43272)
* docs: ✏️ add demo command

* feat: 🎸 add openFlyout method to kibana-react

* chore: 🤖 revert master changes

* refactor: 💡 update core types and use mocks provided by NP

* chore: 🤖 remove old mock

* feat: 🎸 export react-use context, use useUiSetting in infra

* feat: 🎸 create React wrapper for Overlays service

* chore: 🤖 App Architecture team as kibana-react code owners

* feat: 🎸 improve kibana-react context interface

* feat: 🎸 check for uiSettings service in useSetting hook

* feat: 🎸 improve interface of KibanaReactOverlays

* feat: 🎸 improve Dashboard container options

* test: 💍 adapt tests to use context

* fix: 🐛 fix TypeScript types

* feat: 🎸 add notifications service wrapper

* feat: 🎸 add withKibana HOC

* feat: 🎸 add <UseKibana> render prop

* refactor: 💡 use React context in DashboardGrid

* test: 💍 use context in dashboard_grid tests

* test: 💍 add tests for createReactOverlays()

* test: 💍 add tests for React notification service wrapper

* docs: ✏️ add kibana-react documentation

* docs: ✏️ fixes to README

* docs: ✏️ add overlays and notifications context examples

* refactor: 💡 rename useUiSetting to useUiSetting$

* feat: 🎸 add useUiSetting hook

* docs: ✏️ remove un-necessary HOC usage

* feat: 🎸 add <KibanaContextProvider> component

* refactor: 💡 rename createContext to createKibanaReactContext

* feat: 🎸 make notifications and overlays always available

* refactor: 💡 use <KibanaContextProvider> component in infra

* test: 💍 fix dashboard embeddable tests

* refactor: 💡 remove context creation from Dashboard factory

* fix: 🐛 improve error messages

* fix: 🐛 fix TypeScript type check
2019-08-23 17:41:22 +02:00
James Gowdy 6685bc5861
[ML] Removing text fields from detectors (#43847)
* [ML] Removing text fields from aggregations

* adding comments
2019-08-23 15:06:17 +01:00
Dario Gieselaar 0150c8e8cf
[APM] Update query input when url changes (#43773)
Closes #42135.
2019-08-23 14:28:03 +02:00
James Gowdy efb27e4ebd
[ML] Fixing job progress subscriber leak (#43767) 2019-08-23 11:11:25 +01:00
James Gowdy 6d659e53cf
[ML] Adding convert to advanced job button (#43751) 2019-08-23 08:48:10 +01:00
Walter Rafelsberger de21ed9568
[ML] Anomaly Explorer: Updates dragSelect to 1.13.1. Fixes reload issue. (#43779)
- Updates the dragSelect library to 1.13.1. 9221622 updates the library. c9a870b fixes a regression caused by the update.
- Fixes an issue where a timefilter refresh would clear a swimlane selection. 3d1c43d removes a duplicate timefilter subscription and changes the triggered event to REDRAW instead of RELOAD (which triggered a full reload and cleared the selection).
- Fixes an issue with timefilter/datepicker: EuiSuperDatePicker checks isPaused only with componentDidMount() so it might miss changing props. The fix in aa9555d works around that by adding a check on the onRefresh() callback.
2019-08-23 00:43:36 -07:00
Walter Rafelsberger 4fac5970fd
[ML] Data frame transforms: Fix IE11 issue, update types. (#43743)
- Applies an IE11 fix for the layout of the source index table header flex items.
- Updated imports and types to reflect updated dependencies.
2019-08-23 00:43:05 -07:00
Clint Andrew Hall ce2db22773
Convert Workpad Export to TS; Snapshot (#43638)
* Convert Workpad Export to TS; Snapshot

* Update snapshot testing; provide better script

* Fix errant types

* Addressing feedback
2019-08-23 00:03:22 -05:00
Yang Yang 522502b4f2
[Code] refactored the queue to process tasks belong to local node only. (#42601)
* [Code] a MVP implementation to support cluster mode code deployment with manually configured static routing table.

1. add a ClusterNodeAdapter
2. add the abstraction of ClusterService to manage cluster state and support event listening.
3. add the abstraction of ClusterMembershipService to manage the members in the cluster.
4. add the abstraction of ResourceScheduler to allocate resources to nodes, and implement a hash based resource allocation policy.
5. added ResourceSchedulerService to watch the change of cluster states and trigger resource allocations.
6. support request handling based on the routing table.

Fixed jobs filtering in Worker._getPendingJobs().
As Array.filter() doesn't support async callbacks, rewrite with a loop.
2019-08-23 09:52:08 +08:00
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
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
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
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
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
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
Larry Gregory 608e2391d0
Copy Saved Objects to Spaces API (#38014) 2019-08-21 17:27:55 -04: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
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
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