Commit graph

27281 commits

Author SHA1 Message Date
renovate[bot]
bf7e066cc9 Update dependency @elastic/elasticsearch to ^7.3.0 (#43911) 2019-08-25 13:55:03 -07:00
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
renovate[bot]
b1d48d949e Update eslint related packages (#43902) 2019-08-23 14:38:02 -07:00
renovate[bot]
29187007f0 Update dependency compare-versions to v3.5.1 (#39933) 2019-08-23 13:54:30 -07:00
renovate[bot]
5e7b8f943e Update dependency write-pkg to v4 (#43226)
* Update dependency write-pkg to v4

* rebuild kbn-pm and point worker_threads to built-in module
2019-08-23 13:50:07 -07: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
Mikhail Shustov
4de1acf4fb Add note about direct access to other plugins config (#43340) 2019-08-23 14:50:49 -05:00
spalger
d388abee9b put all storybook related packages in the same renovate package group 2019-08-23 12:28:35 -07:00
renovate[bot]
7a71ea2993 Update dependency xmlbuilder to v13 (#43228) 2019-08-23 12:01:47 -07: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
renovate[bot]
b318ebe6bb Update dependency @babel/cli to v7.5.5 (#43836) 2019-08-23 08:26:25 -07:00
Matthias Wilhelm
4dc7b3603c
Replace EuiCodeEditor with EuiCodeBlock at DocView (#43852)
* Replace EuiCodeEditor with EuiCodeBlock

* Adapt filenames to block
2019-08-23 16:20:15 +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
Spencer
e1535d5660
[indexPatterns/bytesFormat] switch default decimal places to 1 (#43785)
* [indexPatterns/bytesFormat] switch default decimal places to 1

* set format:bytes:defaultPattern in some functional test suites
2019-08-23 07:03:23 -07: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
Spencer
90de95822b
[mocha] fix test selectors to get everything in packages (#43797)
* [mocha] fix test selectors to get everything in packages

* fix paths in tests

* ignore test files that make it into target directories

* [@kbn/test] don't build test files

* move tests from datemath and test-subj pkgs into __tests__ dirs

* [kbn/test-subj] remove test script

* update yarn.lock
2019-08-22 18:49:01 -07: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
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