Commit graph

28866 commits

Author SHA1 Message Date
Joe Reuter cd8c708d88
Kibana app migration: Centralize home dependencies (#48618) 2019-10-24 18:23:51 +02:00
Walter Rafelsberger 88f0eba57e
[ML] Fix tooltip positioning. (#49160)
- Moves all DOM manipulation to a ref callback for the ChartTooltip react component. The service mlChartTooltipService no longer touches the DOM, it just passed around data and triggers the chartTooltip$ observable which the ChartTooltip is subscribed to. The code infers positioning now from the tooltips parent element and we no longer rely on hard-coded Kibana classnames. Besides that the code to determine the position remains the same (with some offset tweaking).
- The mocha tests for mlChartTooltipService have been migrated to jest.
2019-10-24 09:14:47 -07:00
Brandon Kobel a149497b73
NP Security HTTP Interceptors (#39477)
* We have a NP plugin! :celebration:

* Redirecting to login on all 401s

* Adding commented out code for when credentials are omitted

* Fixing types

* Respond 403 when user changes password with incorrect current password

* Adding AnonymousPaths where we ignore all 401s

* Adding anonymous path tests

* Extracted a dedicated SessionExpires class and added tests

* Fixing plugin after refactoring to add SessionExpired

* Beginning to work on the session timeout interceptor

* Fixing UnauthorizedResponseInterceptor anonymous path test

* Removing test anonymous path

* Trying to improve readability

* Displaying session logout warning

* Mocking out the base path

* Revert "Mocking out the base path"

This reverts commit 824086c168.

* Changing coreMock to use a concrete instance of BasePath

* Adding session timeout interceptor tests

* Adding session timeout tests

* Adding more tests for short session timeouts

* Moving some files to a session folder

* More thrashing around: renaming and reorganizing

* Renaming Interceptor to HttpInterceptor

* Fixing some type errors

* Fixing legacy chrome API tests

* Fixing other tests to use the concrete instance of BasePath

* Adjusting some types

* Putting DeeplyMocked back, I don't get how DeeplyMockedKeys works

* Moving anonymousPaths to public core http

* Reading sessionTimeout from injected vars and supporting null timeout

* Doesn't extend session when there is no response

* Updating docs and snapshots

* Casting sessionTimeout injectedVar to "number | null"

* Fixing i18n issues

* Update x-pack/plugins/security/public/plugin.ts

Co-Authored-By: Larry Gregory <lgregorydev@gmail.com>

* Adding milliseconds postfix to SessionTimeout private fields

* Even better anonymous paths, with some validation

* Adjusting public method docs for IAnonymousPaths

* Adjusting spelling of base-path to basePath

* Update x-pack/plugins/security/public/session/session_timeout.tsx

Co-Authored-By: Larry Gregory <lgregorydev@gmail.com>

* Update src/core/public/http/anonymous_paths.ts

Co-Authored-By: Josh Dover <me@joshdover.com>

* Update src/core/public/http/anonymous_paths.ts

Co-Authored-By: Josh Dover <me@joshdover.com>

* AnonymousPaths implements IAnonymousPaths and uses IBasePath

* Removing DeeplyMocked

* Removing TODOs

* Fixing types...

* Now, ever more normal
2019-10-24 08:59:45 -07:00
Greg Thompson 9e58b27d59
Upgrade EUI to 14.7.0 (#49110)
* eui 14.7.0

* icon updates

* snapshot updates

* storyshot updates

* remove config addition
2019-10-24 10:14:17 -05:00
Alison Goryachev 841abd1162
[a11y] fix page heading structure in management apps (#48936) 2019-10-24 10:50:19 -04:00
James Gowdy d9133c1327
[ML] Fixing filtering of categorization fields (#49184) 2019-10-24 15:48:13 +01:00
Spencer a859577b40
Remove rimraf (#48985)
* Update dependency del to v5

* unify del/rimraf usage with del v5

* update yarn.lock

* update kbn-pm distributable

* remove poorly transformed code

* force some deletes from tmp

* mock less of the fs module

* force tmp deletion in a few more suites

* please make this the last force
2019-10-24 06:29:43 -07:00
Brandon Kobel d045cc35b7
Removing unused lodash per-method packages (#49131) 2019-10-24 06:23:32 -07:00
István Zoltán Szabó 8a529f11ab
[DOCS] Adds list of privileges to file data viz (#49156) 2019-10-24 14:39:29 +02:00
Robert Oskamp 2ff021b591
[ML] Remove dependent sub suite structure from test files (#49059)
This PR removes the sub suites from all ML test files, such that all test steps that are dependent on each other are executed in one big suite.
2019-10-24 14:33:19 +02:00
Dima Arnautov 1e12e68ca7
[ML] add fullRefresh check (#49161) 2019-10-24 14:23:06 +02:00
Alexey Antonov b75f5e2958
Convert agg_types/__tests__ to JEST (Metrics folder) (#49056) 2019-10-24 15:01:25 +03:00
James Gowdy 68c2a76814
[ML] Adding missing text fields to advanced wizard (#49057)
* [ML] Adding missing text fields to advanced wizard

* removing comment out code
2019-10-24 12:06:17 +01:00
James Gowdy 1d517fc04a
[ML] Fixing wizard combo boxes (#49080)
* [ML] Fixing wizard combo boxes

* renaming function

* updating tests to allow for empty select options

* test refactor
2019-10-24 11:58:48 +01:00
Dima Arnautov a279a0bc32
[ML] fix token replacement regexp (#49086) 2019-10-24 11:47:28 +02:00
Søren Louv-Jansen ed9aaf1563
[APM] Add timezone to chart tooltip (#49019) 2019-10-24 11:34:27 +02:00
Rudolf Meijering 1fcf45a3ad
SavedObjectsRepository#create default to empty references array (#49026) 2019-10-24 11:22:32 +02:00
Rudolf Meijering 6bd88b266c
Add Saved object finder to migration guide (#49034) 2019-10-24 11:17:31 +02:00
renovate[bot] 1d1f5608e5 Update dependency @elastic/charts to ^13.5.7 (#48865) 2019-10-24 10:41:30 +02:00
Dario Gieselaar fc306c4451
[APM] Refactor & scope aggregation types (#48394)
* [APM] Refactor & scope aggregation types

Iterate on the APM aggregation types, make them more readable and explicitly scope them as APM-specific.

ES typings:
- Refactored aggregation types (mostly better naming, slightly less hacks)
- Do not add APM typings to `elasticsearch` module to explicitly scope them as APM specific
- Make restTotalHitsAsInt a type option rather than a separate type
- `terms` bucket key type now accounts for the fact it can be both number and string

`mergeProjection`:
- Type check arguments for compatibility with ESSearchRequest
- Require valid aggregation objects in source parameter. Seems less brittle, and surfaces errors closer to the source

Other changes:
- Sort options in some cases need `as const`, type casts or type guards
- Simplify types for metric aggregations

* Add type casts for bucket keys in remaining places

* Review feedback
2019-10-24 10:31:15 +02:00
Artyom Gospodarsky 3fd9f91437
Set values as html to table rows (#48911) 2019-10-24 11:22:09 +03:00
Alexey Antonov 8addf85fbf
move createGetterSetter to plugins/kibana_utils (#49069) 2019-10-24 09:28:12 +03:00
Spencer cc4c710ef2
follow redirects when downloading node.js (#49133)
* follow redirects when downloading node.js

* always download node to test redirects

* pass -L in non-windows block too

* Revert "always download node to test redirects"

This reverts commit 36dfe8b80a.
2019-10-23 19:49:51 -07:00
renovate[bot] f0e9132535 Update dependency execa to v3 (#48975)
* Update dependency execa to v3

* update kbn/pm dist

* remove old @types/execa package

* remove use of removed methods/properties, specify preferLocal when needed

* [@kbn/pm] specify preferLocal when running install scripts

* update kbn/pm dist

* Joi now converts input to matching option from .valid()

* fix failed tests

* Revert "Joi now converts input to matching option from .valid()"

This reverts commit 75531b1d09.
2019-10-23 19:23:37 -07:00
spalger ae2deab4c5 skip flaky test (#48910) 2019-10-23 17:46:07 -07:00
Spencer b54c1a1d2b
download node from our proxy-cache (#49081)
* download node from our proxy-cache

* download node with axios to support redirects

* fix test assertion now that we're using axios
2019-10-23 15:08:57 -07:00
friol c718972d11 Add ability to replace any panel in edit mode on the fly (#45095)
* First version of change view functionality

* Adds the 'replace view' functionality to dashboard edit mode

* Fixed type_check errors

* Make action part of dashboard_embeddable_container

* Fixed import paths for type check errors

* Fixed i18n errors

* Renamed action to 'Replace panel' and adjusted jest tests to pass type check

* test: add functional tests

Closes #43900
2019-10-23 16:56:50 -05:00
Tim Sullivan b23cfbdf5d
[Reporting/New Platform] Prepare Typedefs for Legacy Shimming (#48825)
* [Reporting/New Platform] Prepare Typedefs for Legacy Shim

* cleanup redundant

* fix opts.interval / opts.pollInterval

* comment on next todo

* fix pretty

* captureconfig typo

* fix typescript conflict with shim

* clean up loc

* custom response toolkit type

* remove unecessary route options

* move getRouteOptions CSV

* fix route configs

* cleanup

* split up type exports

* fix types

* fix ts errors

* remove an any type
2019-10-23 14:48:57 -07:00
Brandon Kobel a8c645926c
Update set-value to 2.0.1 (#49005)
* Updating set-value to 2.0.1

* update kbn/pm dist
2019-10-23 13:41:46 -07:00
Chris Davies a8e218584f
Fix XY chart icon and error on layer flyout (#48577) 2019-10-23 16:28:18 -04:00
Brian Seeders d68eba6d96
Ensure es/kibana cleanup always happens when using scripts/functional_tests (#48986) 2019-10-23 16:13:15 -04:00
Chris Davies 500cf271b0
Add Lens to dashboard privileges (#49066) 2019-10-23 15:23:50 -04:00
Chris Davies e3e742f3fa
[Lens] Replace '' with '(empty)' in Lens visualizations (#49071) 2019-10-23 15:17:33 -04:00
Melissa Alvarez ef8c746d65
[ML] DF Analytics: check source index contains numerical fields only once it has been selected (#48843)
* Move sourceIndex fields check from flyout open to source index selection

* reset sourceIndex checks when switching job type. add helpful text for no field options for regression

* update types. use FormattedMessages

* use comboBox options format to store sourceIndex title/id in one place

* small refactors and remove loadIndexPatterns from resolver

* refactor destinationIndexPatternTitleExists checks in reducer
2019-10-23 14:26:16 -04:00
Brandon Kobel db6d2251e1
Updating debug to 2.6.9 (#48997) 2019-10-23 11:04:03 -07:00
Nathan L Smith fb73103352
Add lru-cache shim (#49014) 2019-10-23 12:56:00 -05:00
Zacqary Adam Xeper bd3525eb20
[Logs UI] Fix initial accuracy of logs minimap click (#48826)
* [Logs UI] Fix initial accuracy of logs minimap click

* Fix aberrant request to loadEntriesAfter when using minimap
2019-10-23 12:29:59 -05:00
Pete Harverson 7f55c9573a
[ML] Fixes field formatter used for chart and anomaly table values (#49030) 2019-10-23 18:03:09 +01:00
Garrett Spong 0b2c3cd438
[SIEM] Fixes SIEM App not loading in IE11 (#49047)
## Summary


Resolves https://github.com/elastic/kibana/issues/47609 by updating [react-reverse-portal](https://github.com/httptoolkit/react-reverse-portal) to 1.0.4 which includes an ES5 distribution that fixes the SIEM app not loading in IE11.

SIEM App now loads and DnD from within the custom map tooltips functions as intended:

![ie11-map-tooltip-fix](https://user-images.githubusercontent.com/2946766/67401431-6158e680-f56c-11e9-8eb3-b1eb6c393c31.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) 
  * Tested in Chrome, FF, Safari & our good friend IE11
- [ ] ~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-10-23 10:50:54 -06:00
Jean-Louis Leysens 52574e476a
Initial proposal for fix (#48880) 2019-10-23 17:29:11 +02:00
Chris Davies c29ffbaa60
[Lens] Add loading indicator and improved empty state to datapanel (#48566) 2019-10-23 11:28:27 -04:00
James Gowdy 6dd1b61980
[ML] Adding missing script fields to advanced field selects (#48812)
* [ML] Adding missing script fields to advanced field selects

* refactoring select option creation

* refactoring select option creation

* reverting accidental change

* refactoring based on review
2019-10-23 15:48:43 +01:00
Walter Rafelsberger 3d17dd35a3
[ML] Transform: Fix permissions. Fix error messages. (#49025)
- Updated internal permissions docs.
- Fixes regression to change data_frame to transform for privileges.
- Fixes error messages for wizard source table. An error triggered by Elasticsearch would not properly be passed through, just a generic JS error would be reported. Now the error for both source table and pivot preview get passed through.
- Fixes correctly reporting an error if the wizard fails to create the transform, previously a success toast would show in any case.
- The screenshot below also shows the fix for #46434: A snipped of the full error message is now shown within the toast.
2019-10-23 07:33:47 -07:00
Kerry Gallagher 3a6d0d0db5
Use full time interval for x-axis domain (#48754) 2019-10-23 15:31:33 +01:00
Steph Milovic 8dcde8b26a
sort by bytes in on destination n flow tables (#48979) 2019-10-23 07:17:17 -07:00
Dima Arnautov 206ab222de
[ML] Force metric selection for Single Metric Viewer (#48235)
* [ML] force metric selection

* [ML] disable forecast if no metric selected

* [ML] check all controls

* [ML] fix for no partitioning fields

* [ML] warning message condition

* [ML] force metric selection

* [ML] disable forecast if no metric selected

* [ML] check all controls

* [ML] fix for no partitioning fields

* [ML] warning message condition

* [ML] fix criteria fields

* [ML] remove condition rendering for the tooltip

* [ML] fix tooltip location
2019-10-23 16:10:51 +02:00
Josh Dover 7ba1d0b4f8
Use custom deep merging strategy on createCluster (#48836) 2019-10-23 09:05:27 -05:00
Nathan Reese 531448e981
[skip-ci][Maps] clean-up documenation references to match UI text updates (#48993) 2019-10-23 07:52:38 -06:00
Maryia Lapata d5a0f37188
[Visualization] Fix: add vis title to state (#48867)
* Add error when there is no histogram agg when using parent pipeline

* Update error message

* Update message

* Add vis title to state

* Revert unrelated changes

* Update vis title when vis is renamed

* Update title in url when renaming
2019-10-23 16:30:50 +03:00
Alison Goryachev d669a6784e
[SR] update empty prompt copy (#48962) 2019-10-23 08:37:08 -04:00