Commit graph

23028 commits

Author SHA1 Message Date
Jason Rhodes
ae754ac607
Upgrades EUI to 9.x (#32009)
* Fixed a simple argument bug and removed infra date picker EUI types

* Fixes for EUI date picker types

* eui_8.0.0

* fix type errors in query_bar

* Small changes for EUI types

* Updates EUI to 9.0.0 and removes @types/react-datepicker as it now ships with EUI

* Updates to EUI 9.0.1 and removes duplicate types in infra eui.d.ts

* ts-ignore applied to ongoing type error with styled components and EUI

* Changes EuiProgress props to avoid TS errors

* Updates EUI 9.0 snapshots

* Updates kibana root snapshots for EUI 9.0 upgrade

* Update detail_panel.test.js for EUI changes

* Updated functioanl and unit tests to properly inspect EuiTableRowCell rendered values

* Fix docs_level_security_roles.js func tests

* Update EUI to 9.0.2

* Fixed failing snapshot for EUI icon default prop
2019-03-07 07:03:11 -05:00
Liza Katz
7c2df0a5d3
presort items if there's no search query, but keep table state unsorted (#32583) 2019-03-07 12:47:18 +02:00
Daniil Suleiman
289bb66998
Add max, min, placeholder to percentile in TSVB (#32389)
* Add max, min, placeholder to percentile

* Fix adding new percentile with empty value
2019-03-07 12:34:45 +03:00
James Gowdy
37c47f60e7
[ML] Adding calendars list to job management (#32566) 2019-03-07 09:28:39 +00:00
Daniil Suleiman
6d1f0072f5
Fix table vis format date string when grouping by date field (#31783)
* Fix table vis format date string when grouping by date field

* Use DateFormat instead of moment directly

* Add a pivot_type while selecting a pivot value in table

* Move fetchFields into a separate function

* Move setDefaultIndexPattern to ReactEditorControllerProvider
2019-03-07 12:27:19 +03:00
Vitali Haradkou
2e6efe55b8
supporting tags for mocha definition (#32474) 2019-03-07 11:40:53 +03:00
Alexey Antonov
787bdb800e
TSVB display interval information when building (#32117) 2019-03-07 11:13:51 +03:00
Alexey Antonov
994cc6c308
[TSVB] Incorrect behavior when filling the 'interval' field with values: s,m,d,M,y (#32542) 2019-03-07 11:06:49 +03:00
Alexey Antonov
b6902bf1d6
[deprecation warnings] Use of the joda time method [getHourOfDay()] is deprecated. Use [getHour()] instead. (#32551) 2019-03-07 10:48:28 +03:00
Spencer
71770d5ffb
Revert "Initial unit tests for embedded_visualize_handler" (#32615)
Reverts elastic/kibana#31324, failing on master
2019-03-06 23:47:55 -08:00
Luke Elmers
e9c40ce0f8
Initial unit tests for embedded_visualize_handler (#31324) 2019-03-06 23:36:12 -07:00
Thomas Neirynck
6b6e670586
[Maps] Move tooltips to store (#32333)
This is an internal refactor:
- move tooltip management out of layers, and to the mapbox-component
- use global handler iso of multiple handlers on individual layers (this did remove the cursor-pointer change, since we no longer are explicitly handling on-enter/leave events).
- put tooltip state in store

Fixes bugs:
- when layer is removed, any corresponding tooltip should be removed as well
- when layer is made invisible, any corresponding tooltip should be removed as well
2019-03-06 22:31:12 -05:00
Ganesh Patro
89a89e3ad4 Added dummy fucntion to avoid warning. (#32070)
Co-Authored-By: ganeshpatro321 <30416891+ganeshpatro321@users.noreply.github.com>
2019-03-06 19:57:13 -06:00
Spencer
72f0c85cb5
download oss version of kibana in packer cache script (#32588) 2019-03-06 16:31:51 -08:00
Thomas Neirynck
5e5a49a905
[Maps] Localization (#30881)
Localize Maps-app UX with Kibana's i18n framework.
2019-03-06 18:24:41 -05:00
CJ Cenizal
e365f0b646
Fix API endpoint typo indices/clear_caches -> indices/clear_cache. (#32582) 2019-03-06 15:03:17 -08:00
Jen Huang
6f4fedc46e
Fix common router request handler issue (#32275)
* Add `await` to common router request handler

* Remove once() from common license checker and call with request factories
2019-03-06 14:52:22 -08:00
Fuyao Zhao
c86359e209
Be able to delete watch_optimizer_cache_state.json when data folder is outside of Kibana source folder (#32446) 2019-03-06 14:04:23 -08:00
Spencer
b213f5551d
[ftr] determine oss ciGroups by reading the yaml file (#32575) 2019-03-06 13:11:07 -08:00
Spencer
c2230b2131
[dashboard/ftr] remove _-prefix from file names (#32585) 2019-03-06 13:08:39 -08:00
Spencer
09218a4291
[dashboard/ftr] disable panelCount assertions (#32579)
Chatted with @markov00 and he suggests that we can disable the `dashboardExpect.panelCount()` assertions for now to avoid triggering #28818. I'll work with @dmlemeshko and @markov00 to get a PR up that is heavily testing this suite and try nailing down what is causing this rendering disparity.
2019-03-06 11:45:41 -08:00
Lisa Cawley
5eb24799cb
[DOCS] Adds tagged region for notable breaking changes (#30155) 2019-03-06 09:41:33 -08:00
Pete Harverson
b5bd1b5eaf
[ML] Fix chart tooltip positioning for new K7 navigation (#32563)
* [ML] Fix chart tooltip positioning for new K7 navigation

* [ML] Move numeric offset numbers into variables
2019-03-06 17:32:30 +00:00
Brandon Kobel
1a1f4b7da0
Reenable auth provider tests (#32565)
* Reenabling token auth provider test

* Re-enabling saml test

* Adding a SAML test to ensure we can't reuse refresh token after 60 seconds

* Adding token auth provider re-use refresh token after 60 seconds test

* Removing the reusuing refresh tokens after timeout
2019-03-06 09:30:24 -08:00
Spencer
a7e1061bad
Typescript-ify FTR Remote (#32447)
* [ftr] flatten GenericProviderTypes to fix "log" types

* [ftr/remote] typscript-ify

* remove webdriver types, since they're version 3 and we're using version 4

* simplify initWebDriver() function

* keep jest tests in the functional tests as js, mixing jest and mocha types doesn't work
2019-03-06 07:25:59 -08:00
Sébastien Loix
9c37b69c9c
[CCR] Fix form bug + add missing i18n (#32544)
* [Rollup] Fix month value in form select

* [Rollup] Add missing i18n for field types
2019-03-06 14:34:00 +00:00
Chris Cowan
cf332bca22
[Infra UI] Add Legend Settings for Waffle Map (#32228)
* Adding legend controls

* Adding url support and finishing feature

* Moving config to right side; setting min/max to data boundries when deactivating auto

* Removing legend from max and min labels

* removing uneseccary unshift(0)

* Change autobounds behavior
2019-03-06 06:42:18 -07:00
Tim Roes
184db14054
Fix some strings after translator feedback (#32501)
* Fix some strings after translator feedback

* Fix jest tests

* Fix typo

* Fix Mocha tests

* Fix more mocha tests
2019-03-06 14:34:20 +01:00
Peter Pisljar
54e498200b
fixing pipeline_data_loader (#32478) 2019-03-06 13:03:30 +01:00
Clint Andrew Hall
693256f466
[Canvas] Fix context elements issue with Element Stats (#32510)
## Summary

(closes #32512, closes #32508)

This fixes a bug where element stats was causing a failure due to not every element being an `expressionRenderable` all the time... when first added, `TimeFilter` is `expressionContext` and should be considered `pending`.

This PR also fixes an issue where `resolvedArgs` was not being reset between workpad loads, causing element stats to be compounded.

Co-authored-by: Spencer <email@spalger.com>
2019-03-05 20:49:02 -06:00
Spencer
395e937ccf
[core/deepFreeze] extend test timeout to 60 seconds (#32526) 2019-03-05 17:44:00 -08:00
Spencer
d22c17f92a
[chromedriver] use cache from packer if available and current (#32511)
* [chromedriver] use cache from packer if available and current

* force yarn install

* Revert "force yarn install"

This reverts commit ac253111ce.

* force yarn install without short circuit

* Revert "force yarn install without short circuit"

This reverts commit caf8b09be9.
2019-03-05 17:43:27 -08:00
CJ Cenizal
554e7be400
Add user_action app for gathering telemetry on user actions (#31543)
* Add user_action app with API endpoint for tracking user actions.
* Track 'Create rollup job' action and publish it in the collector.
* Extract fetchUserActions into a generic helper inside of xpack/server/lib.
* Add trackUserRequest helper.
2019-03-05 16:53:34 -08:00
CJ Cenizal
a949da2437
Refactor X-Pack common and server constants into modules with sub-modules. (#32232)
* Prefix license status constants and move them into a constants directory.
* Add constants for license types.
2019-03-05 16:51:18 -08:00
kobelb
7fe4abdc63 Skipping SAML and Token auth provider tests for expired sessions 2019-03-05 15:28:16 -08:00
Melissa Alvarez
576c90ae8d
[ML] Add query bar to Anomaly Explorer for filtering of anomaly results for one or more influencers (#31763)
* wip: add autocomplete kueryFilterBar.update endpoints with query.

* Create indexPattern on job change. Value is autocompleted

* Mask unrelated swimlanes on filter apply

* Only show relevant viewBy swimlane

* reload viewBy swimlane when view By change is relevant to filter

* handle various query types when building filteredFields list

* remove deprecated code from old filter bar

* Show error callout when invalid filter syntax

* remove dependency on deprecated import var

* remove all left over apm dependencies

* persist filter on refresh

* Create initial filter bar placeholder dynamically

* add description text when filter active

* switch to relevant viewBy fieldname on filter

* recalculate placeholder on job change

* Create tests for all components

* View by dropdown only contains relevant fields for filter

* fix localization message noInfluencers component

* Move indexPattern to state and viewBy option filtering to utils

* remove unnecessary setState when setting viewBy for filter

* Use preloaded jobs from mlJobService to get influencers

* Only filter viewByOptions if valid field

* use kql and move to components dir

* move filter bar to public/components/
2019-03-05 15:07:30 -06:00
Mike Côté
399067a491
Basic server side export API for saved objects (#30326)
* Initial work for new server side export API

* Revert UI changes, API only in this PR

* Remove whitespace at top of export.asciidoc

* Add tests around limitations

* Add comment

* Convert some files to typescript

* Move Boom.boomify to where the errors are created

* Use Boom.badRequest for now

* Fix lint issue

* Move files

* Update tests

* Add functional test

* Export all documents by default

* Update test assertions

* Use ~10000 saved objects in export api integration test

* Convert route to typescript, add content-type response header

* Move some tests to api_integration

* Use new sort and rename functions/variables

* Move tests to API integration

* Cleanup and finalize api integration tests

* Make type or objects required but not both in the same call

* Add spaces / security tests

* Add noTypeOrObjects to security / spaces tests

* Use json-stable-stringify and add tests for export ordering

* Address self feedback, add without kibana index test

* Only allow export API to export index-pattern, dashboard, visualization and search type objects

* Make import export size configurable and fix broken tests

* Fix broken tests

* Move test config to mock server

* Add more typescript types instead of using any

* Convert request from GET to POST

* Fix saved objects mixin test

* Update src/legacy/server/saved_objects/lib/export.ts

Co-Authored-By: mikecote <mikecote@users.noreply.github.com>

* Apply PR feedback

* Fix lint error

* Update test snapshots due to jest upgrade

* Add error handling for bulkGet

* Split export API into two endpoints

* Update src/legacy/server/saved_objects/routes/export_by_type.test.ts

Co-Authored-By: mikecote <mikecote@users.noreply.github.com>

* Update docs/api/saved-objects/export_by_type.asciidoc

Co-Authored-By: mikecote <mikecote@users.noreply.github.com>

* Update docs/api/saved-objects/export_by_type.asciidoc

Co-Authored-By: mikecote <mikecote@users.noreply.github.com>

* Update src/legacy/server/saved_objects/routes/export_objects.test.ts

Co-Authored-By: mikecote <mikecote@users.noreply.github.com>

* Apply PR feedback

* MockServer -> createMockServer

* Revert back to single API

* Re-apply PR feedback
2019-03-05 15:42:02 -05:00
spalger
6793d053eb [packer] download chromedriver zip into packer cache 2019-03-05 12:03:07 -08:00
Stacey Gammon
3155533c3e
Add some types for interpter plugin registration (#31600)
* Some basic types for top level legacy plugin registration

* put typescript interface closer to implementation

* Use default export, you have to

* fix build and address code review comments
2019-03-05 13:38:32 -05:00
Sarah Hersh
d0ffd86488
[DOCS]Add sample data (#32244)
* add screenshot to add sample sets

* add sample data overview

* new screenshot

* add next steps

* feedback from Gail
2019-03-05 13:27:30 -05:00
Wylie Conlon
116f86edbf
Always sort tiebreaker in the same order as timestamp for context view (#32225) 2019-03-05 13:27:22 -05:00
Søren Louv-Jansen
f74fa295e0
[APM] Guard saved objects against JSON.parse of undefined (#32479) 2019-03-05 18:24:35 +01:00
Oliver Gupte
3af1be6a19
[APM] fixes vertical clipping bug in StickyProperties (#32279)
* [APM] fixes vertical clipping bug in StickyProperties by adding extra bottom padding to the property value

* [APM] replaces previous vertical clipping bug fix in StickyProperties by removing the extra padding & increasing the line-height to 1.2 times the font-size
2019-03-05 09:16:11 -08:00
Melissa Alvarez
53e89a4d85
reduce space between terms/regex/examples (#32417) 2019-03-05 11:07:29 -06:00
Melissa Alvarez
a8cc1129a9
JobSelector text All jobs only on all job select (#32441) 2019-03-05 10:23:26 -06:00
Walter Rafelsberger
46f7a350fe
[ML] Adds missing error handling to annotations request. (#32384)
- This adds more thorough error handling to retrieving annotations from the server to avoid breaking Anomaly Explorer when there's a problem retrieving annotations. The UI will silently fail and hide the annotations table if for whatever reasons annotations cannot be retrieved for the selected jobs (this could be permissions or setup related if e.g. the annotations feature index/aliases are not present). This is now the same behavior like in Single Metric Viewer. The browser console will still output an error message. This fixes an error scenario where Anomaly Explorer would fail to load if a user upgraded to 6.6 because the backend task wasn't run yet to create the annotation index/aliases.
- Disables annotations feature in Single Metric Viewer if annotations fail to load.
- Use componentDidUpdate and an update check instead of deprecated componentWillUpdate for updating the annotations table in jobs management.
2019-03-05 17:04:47 +01:00
Tim Roes
51e26291b5
Fix Time picker quick ranges description (#32455) 2019-03-05 13:27:06 +01:00
Felix Stürmer
a9d75988bd
[Logs UI] Slim down local view configuration state (#31723) 2019-03-05 12:32:21 +01:00
Daniil Suleiman
748c18b8f4 [types removal] Remove type from bulk_uploader in monitoring (#32315)
* [types removal] Remove type from bulk_uploader in monitoring

* Remove type from get_settings_collector

* Revert changes
2019-03-05 12:52:32 +03:00
Silvia Mitter
c3b9a58990
[APM] Update Index Pattern. (#32408)
Add non-indexed http headers, according to apm-server PR#1966
2019-03-05 10:43:29 +01:00