Commit graph

22930 commits

Author SHA1 Message Date
Tiago Costa
514673c46e
Improve dll plugin relation with webpackshims (#30129)
* chore(NA): remove specific watch for x-pack webpackShims folder.

* chore(NA): remove xpack security plugin angular-ui-select webpackShim.

* chore(NA): bump ui-select version on x-pack to match the one used on oss kibana

* chore(NA): remove manual searching for webpackShim imports into the dll plugin. chore(NA): explicit avoid max dll compilations in all environments for the dll plugin. chore(NA): explicit throw an error and list all the not allowed modules bundled into the dll bundle.

* refact(NA): move ui related actions inside webpackShims to proper ui related files

* chore(NA): move angular ui dependencies from webpackShims to kibana core module.

* test(NA): enable xpack jest tests to be able to resolve plugins/xpack_main/*. refact(NA): rewrite code for the old xpack jquery flot webpackShim.

* refact(NA): use the already declared ui module get to list the dependencies for the kibana legacy core plugin.

* chore(NA): move angular ui requires to a better centralized place.

* refact(NA): rename areMaxCompilationsPerformed to assertMaxCompilations.

* refact(NA): remove unnecessary promise resolve on async function.

* refact(NA): remove unnecessary promise resolve on async function.

* refact(NA): apply changes according pr review.

* refact(NA): change from requires to imports in xpack_main plugin jquery flots.

* refact(NA): jquery flots missing statements.

* fix(na): linting problems.

* chore(na): re add jquery flot requires instead of imports.

* refact(NA): moving jquery flots from require to import. test(NA): fix mock for jquery_flot.

* feat(na): allow dynamic dll plugin public modules on dll bundle.

* feat(NA): step verification to not allow modules from xpack source.

* chore(NA): fix linting problems.
2019-02-22 01:45:42 +00:00
Luke Elmers
f4d93ec990
Surface vis loader errors in the UI. (#30594) 2019-02-21 18:43:15 -07:00
Vitali Haradkou
75e49e667c tests typescript migration (#31234)
* add typescript support for functional tests
2019-02-21 19:38:54 -06:00
dave.snider@gmail.com
f6770b117f
Fix datepicker in ie11 (#31216)
Fixes the datepicker so it shows in ie
2019-02-21 14:13:39 -08:00
Thomas Neirynck
3666b5a428
[Maps] display metric tooltips for grid source the same as for joins (#31621) 2019-02-21 16:52:13 -05:00
Josh Dover
46edc4fe8c
Show interstitial prompt when ES is upgrading (#31309)
* Show interstitial prompt when ES is upgrading

* Update copy
2019-02-21 14:05:16 -06:00
Josh Dover
9458387333
[upgrade] Update functional data archives for 8.0 (#30406)
* [upgrade] Update functional data archives for 8.0

* Re-enable test

Closes https://github.com/elastic/kibana/issues/30586

Signed-off-by: Tyler Smalley <tyler.smalley@elastic.co>

* Fix data archive for 8.0
2019-02-21 14:03:17 -06:00
Tim Roes
5088c7cfde
Remove unneeded case checks (#31691) 2019-02-21 20:46:45 +01:00
Catherine Liu
0ad634522e
[Canvas] Adds doc links and keyboard shortcut cheatsheat to help menu (#31335)
* Added docs link and keyboard shortcuts to global help menu

* Fixed tooltip

* Removed aeroelastic keyboard event handlers

* typography and copy changes

* Removed doc links from workpad manager

* Added input target check to workpad page keyhandler

* Fixed ungrouping

* Displays arrow symbols instead of arrow key word

* Removed tabIndex

* Fix: reintroduce additional call on keyboard event
2019-02-21 11:56:08 -07:00
Catherine Liu
60f40803f7
Update prop types on RangeArgInput (#31654)
* Added string as value prop type in range arg input

* Added string as value prop type in range arg input
2019-02-21 10:49:42 -07:00
Jonathan Budzenski
8ef0ea7fab
[monitoring] only start bulk uploader once (#31307) 2019-02-21 11:28:01 -06:00
Felix Stürmer
3d7a6a19fd
[Logs UI] Fix some filebeat ECS message formats (#31120) 2019-02-21 18:24:19 +01:00
Joel Griffith
a6ed6a3b24
Using content-disposition pkg for non-US font titles in reporting (#30895)
* Using content-disposition for non-US font titles in reporting
2019-02-21 09:18:01 -08:00
Joe Reuter
59c6c8ffd4
Add referenced pipeline aggs to every level of query (#31121) 2019-02-21 18:03:03 +01:00
Nathan Reese
b4ece8fa8e
[Maps] disable fit to data for geo_shape fields until elasticsearch supports a way to get the bounds (#31638)
* [Maps] disable fit to data for geo_shape fields until elasticsearch supports a way to get the bounds

* add function test for fit to bounds

* add jest test for layer_toc_actions component

* review feedback
2019-02-21 09:03:54 -07:00
Ahmad Bamieh
b60119e9ac
[Telemetry] collect xpack.cloud details (#31180)
* collect xpack.cloud details

* add elasticsearch cluster uuid

* remove cloud ID from telemetry stats

* remove esUUID from telemtry stats
2019-02-21 17:28:58 +02:00
Lukas Olson
598fee3bb4
Add docs for savedObjects:listingLimit advanced setting (#31593) 2019-02-21 08:17:21 -07:00
Mike Côté
09336f718a
Move index-pattern migration to kibana plugin (#31644) 2019-02-21 10:04:15 -05:00
Sébastien Loix
51fde9121d
[Rollup] Add unit tests for Job table (#31561) 2019-02-21 14:40:58 +01:00
Felix Stürmer
6e31c1d127
Upgrade react to 16.8.3 (#31268) 2019-02-21 11:27:35 +01:00
Joe Reuter
d253ec0f54
Fix i18n usage in flyout_session (#31577) 2019-02-21 11:14:46 +01:00
James Gowdy
aa22e25241
[ML] File data visualizer - setting default number of shards (#31567) 2019-02-21 08:36:15 +00:00
Daniil Suleiman
6cbebf0e50
Fix Visual Builder wrong color rules on multiple metric (#31455) 2019-02-21 11:09:30 +03:00
Caroline Horn
e9f1821bbb
Dark overrides for Ace/Brace TM (textmate) theme (#31628)
* Dark overrides for Ace/Brace TM (textmate) theme

And moved the overrides to be global

* No more EuiCodeBlock colors
2019-02-20 19:40:08 -05:00
Matt Apperson
d5138178f0
[BeatsCM] fix API for tokens to support any number (#30335)
* add basic script for standing up a fake env

* tweaks

* API needs to support any number of tokens not us

* [BeatsCM] Add testing script used to create test deployments

* Move to JWT for enrollment

* wrap dont scroll command

* Dont use token as token ID

* fix tests

* not sure why this file is enabled in this branch/PR…
2019-02-20 19:39:09 -05:00
Tim Sullivan
5197a0a380
[Docs/Reporting] Fix Troubleshooting page issues, Add section in Getting Started (#31539)
* [Docs/Reporting] Fix Troubleshooting page issues, Add section in Get Started

Close https://github.com/elastic/kibana/issues/31518

* update some gs headings

* Kibana doesn't download Chromium!

* Note about verbose logging

* sections

* full path

* has been
2019-02-20 16:25:56 -07:00
Tim Sullivan
2e2054516f
[Reporting] Fix browser extraction logging (#31608)
This change to the logging helps clarify to the reader what is going on,
the build ID of our Chromium, and where things are laid out in the system.
2019-02-20 16:24:25 -07:00
Matt Bargar
841cd822ee
Don't send request if it already failed during query parsing (#31219)
I noticed when a KQL parse error occurs courier was still sending a request to ES. That request had an empty payload and would result in a 500 error response. I've added a condition to the default search strategy to check whether there are actually any valid requests to send and if not, return early.
2019-02-20 17:36:04 -05:00
Oliver Gupte
5d22c2527c
[APM] Move APM feedback link to global Help popover (#30918)
* [APM] Closes #29687 by removing the old APM feedback link from the datepicker
section and adding the link as custom content in the global help popover.

* remove noreferrer property for the feedback link

* [APM] updated feedback link text and added help link to migration assistant

* [APM] remove unused translations related to the old feedback link
2019-02-20 13:36:23 -08:00
Matt Bargar
103dd04ec0
Add placeholder text indicating the filters agg takes only lucene and (#31296) 2019-02-20 16:12:16 -05:00
Matt Bargar
cd7e1dfe5c
Add visual indication of selected language in query bar (#30899)
* Add visual indication of selected language to the query bar

* update test snapshots

* Reduce padding a little to fit smaller text

* Pass options button to input's append prop so we don't have to manage
the padding manually

* Revert "Reduce padding a little to fit smaller text"

This reverts commit 8042b09d

* Update popover text

* delete options button translation key

* Update tests

* Review feedback

* Review feedback

* remove unused vars

* remove unused translation
2019-02-20 15:55:08 -05:00
Oliver Gupte
c8cf805142
[APM] Always render collapsible library stackframes (#31320)
* [APM] closes #28919 by always rending library stackframes as collapsible, even when there's only 1

* [APM] fix pluralization of library stack frames toggle

* [APM] renamed i18n variable in the translation
2019-02-20 12:50:11 -08:00
Aaron Caldwell
23830e228c
Add back dispatch (#31602) 2019-02-20 13:11:31 -07:00
Nathan Reese
425539e122
[Maps] LayerControl read only mode (#31318)
* hide add layer button in read only mode

* update TOCEntry for read only mode

* make LayerTOC read only

* default isReadOnly to false

* remove action creator until its beig used
2019-02-20 12:26:52 -07:00
nicknak
e29aa096ef
[Saved Objects] Add hidden types to savedobjects (#28722)
* Saved Objects routes and service should be able to hide objects.

* Remove context providers as a feature.

* Respository should be creatable to include hidden types.

* Fixes failing unit tests.

* Fixes issues with filter method.

* Adds check to get method for allowed types.

* Adds tests for get,delete,bulkGet,find

* Remove need for schema in saved objects api.

* Remove more traces of schema validation added to rest api.

* Remove inclusion of hidden types in route specific client.

* Removes getAvailableTypes as it is no longer used.

* Fixing up initialization of components.

* Moves default setting for includeHiddenTypes

* Allows for single value or array in assertAllowedTypes.

* Adds type assertion to bulkCreate, and incrementCounter with tests.

* Conversion to boolean should be more explicit.

* Repository should restrict types allowed to be manipulated.

* Saved objects should use the right root type.

Privileges should have unit test.

* All saved objects APIs should validate types.

* No need for test to be typescript if under test not ts.

* Handle extraTypes being undefined.

* Routes should verify that they do not allow invalid types.

* Bulk create should be tested.

* Saved objects mixin does not need extra blank lines.

* Saved objects integration tests should test unknown types.

* Integration tests should test for bad request with unknown type.

* Adds missing privileges to global all.

* Tests should use valid types.

Tests should have accurate expectations.

* Fix bulkCreate to assert allowed types.

* Fix unknown search field tests.

* Adjust expectations for unknown type in saved object api.

* Saved object integration should return proper responses.

* Fix expect to use a separated matcher.

* Should expect forbidden responses for unauthorized users.

* Should expect 400 when trying to use unknown types.

* Removes unwanted .only call.

* Adjust repository to throw error unless it has allowed types.

* Unknown types should return 403s and empty results where applicable

* Removes type validation from saved object API.

* Captures and returns appropriate exceptions for type assertion.

* Properly filtter c'tor params to repository.

* Checking allowed type should be bool check function.

* Cleanup test situation descriptions.

* Updating snapshot file for jest tests.

* Changes expected results for find from saved object service.

* Expect an empty response when attempting to access an unsupported type.

* Adds test coverage for new error methods added.

Adds create test to repository.

* Adds bulkGet, bulkCreate unsupported type errors.

* First step in refactoring saved object service.

Adding missing test coverage of saved object service creation.

* Move extra saved objects test to legacy folder.

* Adds references filtering by allowed type.

* Adds more coverage for mixin repository creation.

* Removes unnecessary decorate on server object for unused method.

* Revert reworking how kibana migrator uses mappings.

* Revert "Adds references filtering by allowed type."

This reverts commit 92b07d4b92.

* Adds check for unexpected callCluster type.

* Should cover as many parts of the mixin as possible.

* More expectations to tests.

* Keeps ordering of created items but does not pass unsupported types.

* Fix a failing before hook test.

* Should not use escaped single quotes inside template literals.

Co-Authored-By: njd5475 <njd5475@gmail.com>

* Changed how check is done in repository.

* Remove unused mappings file.

* Cleans up a couple of nits.

* Adds test for overwrite option being passed if it is in the url.

* Missed semicolon.
2019-02-20 12:02:39 -05:00
Chris Cowan
2ac5cf087b
[Logs UI] Add filter as a link-to parameter for logs (#31531)
* Fixes #23316 - Add filter as a link-to parameter for logs

* Add unit test case
2019-02-20 09:31:56 -07:00
Mike Côté
b48e56fc88
Fix saved object api integration test description to display proper expected status code (#31578) 2019-02-20 11:31:30 -05:00
Alexey Antonov
696f63c4b2
TSVB flashes a chart upon clicking create (#30946)
* TSVB flashes a chart upon clicking create
2019-02-20 17:51:43 +03:00
Liza Katz
dc654e4aa3
moved vis table to use EUI (#30610)
* Create base class for table list view, using EuiInMemoryTable.
* Reimplemented dashboards and visualization listing views using table list view component.
* Added tests for visualizations page
* Updated experimental visualization badge and tooltip
2019-02-20 16:50:36 +02:00
Albert Zaharovits
2c30e9f245
Add create_snapshot privilege (#31086)
A new cluster privilege type has been added to ES in [elastic/elasticsearch#35820](https://github.com/elastic/elasticsearch/pull/35820) .
2019-02-20 14:47:21 +02:00
James Gowdy
4144daae00
[ML] Moving legacy kibana wizard classes to ML (#31425)
* [ML] Moving legacy kibana wizard classes to ML

* removing wizard import
2019-02-20 12:28:09 +00:00
Kerry Gallagher
29c1ecd3b7
Honour dateFormat Kibana setting (#31500)
Add a formatted_time component

Pass date_format in the kibana chrome container

Use formatted_time in logs view

Remove formatTime function
2019-02-20 11:35:58 +00:00
Walter Rafelsberger
a359de3071
[ML] Deprecates custom event listeners. (#31426)
Deprecates our own implemention of event listeners in favour of RxJs' Observables.
2019-02-20 10:17:25 +01:00
Joe Reuter
a348d8161b
Add i18n context to inspector panel (#31467) 2019-02-20 09:34:18 +01:00
Nathan Reese
0a3641958a
[Maps] add beta label to listing page (#31544) 2019-02-19 21:51:15 -07:00
Court Ewing
8aada890e5
Inject CSP config via HTML tag rather than inline JavaScript (#31514)
This allows us to support a more flexible set of CSP rules that do not
necessarily rely on nonce.
2019-02-19 20:56:17 -05:00
Aaron Caldwell
11da27b865
[Maps] Update layer add workflow and revise temp layer handling (#30542)
* Move layer add flow to the add layer panel

* Remove layer add toast. It's pretty annoying in this new workflow and is planned to be removed/revised anyway

* Add/remove layers without setting temp status

* Dispatch save function on ws save and clear/remove transient layer

* Lot of cleanup of temp refs. Add __ to transient layer ref

* Activate layer property save button on style prop change

* Review feedback

* Await setting selected layer before opening flyout panel to prevent occasional undefined error

* Review feedback

* Review feedback

* Review feedback

* Remove style temp settings

* Return null as fallback

* Review feedback
2019-02-19 18:09:17 -07:00
Lukas Olson
923fce7421
Use default index pattern when one is not present in visualize (#30574)
* Use default index pattern when one is not present in visualize

* Review feedback

* Add functional test

* Fix test

* Attempt to fix test again

* Try moving test to its own describe
2019-02-19 17:32:05 -07:00
Joe Fleming
9789aaa1b1
Feat: Add support for time_zone in essql (#31291)
As noted in [the SQL docs](https://www.elastic.co/guide/en/elasticsearch/reference/current/sql-rest.html), you can pass in a `time_zone` property to control what timezone is used for date operations. This adds a new arg, `timezone` (`tz` for short) to the `essql` function so that users can control what timezone is used.

Below, I have a query that groups results by the hour of the day. You can see the values change when I shift the timezone 12 hours (from `UTC` to `UTC-12`).

![feb-15-2019 10-38-49](https://user-images.githubusercontent.com/404731/52874173-0b46c000-310e-11e9-84b7-9074dfd09b59.gif)
2019-02-19 17:27:56 -07:00
Joe Fleming
696d125db6
chore: remove duplicate include path (#31499)
in x-pack tsconfig
2019-02-19 16:45:06 -07:00