Commit graph

23007 commits

Author SHA1 Message Date
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
Liza Katz
ace80d1b59
Back button navigation fix 31238 (#32372)
* initial fix for navigation issue + Spencer
* added navigation test for issue #31238 
* added more validations to the navigate back test
2019-03-05 11:36:46 +02:00
Vitali Haradkou
062376368e
[TSVB]: initial markdown test implementation (#31893)
* Improve test coverage for TSVB markdown
2019-03-05 12:15:44 +03:00
Daniil Suleiman
92559eeaf5
[types removal] Remove types from saved_objecs repository (#32286) 2019-03-05 11:50:29 +03:00
Casper Hübertz
1ef6ebf2c7 [APM] Update contextual data objects and sorting for ECS (#32199)
* Reordering existing data and adding new ECS fields.

* Removed agent

The agent is moved its own object.

* Support 3rd level properties

* Add support for nested properties like `error.custom` and `transaction.custom`

* Bumped fontsize

* Decreased first column min-width

* Updated snapshot

* Update tests

* Fixed translation label

* Reordering existing data and adding new ECS fields.

* Removed agent

The agent is moved its own object.

* Support 3rd level properties

* Add support for nested properties like `error.custom` and `transaction.custom`

* Bumped fontsize

* Decreased first column min-width

* Updated snapshot

* Update tests

* Fixed translation label

* Decreased fontsize

On second thought, the fontsize was too large. Now matches Discover.
2019-03-05 09:31:05 +01:00
Daniil Suleiman
52e7223c71
[types removal] Remove type doc from fetch.js (#32288) 2019-03-05 10:59:56 +03:00
Alexey Antonov
135ecf952e
Deprecated field [all_fields] used, replaced by [Set [fields] to * instead]" (#32307) 2019-03-05 10:56:31 +03:00
Spencer
3c30ed87a5
[logstash/pipelineCreate] retry reading rows (#32436) 2019-03-04 18:48:22 -08:00
Spencer
59afd0ce15
[esArchiver] bulk queue size to 300 record (#32442)
Fixes https://github.com/elastic/kibana/issues/32375?

In a quick debugging session with @pickypg we're guessing that the esArchiver writing documents to Elasticsearch at the same time that Kibana queried for usage status caused the circuit breaker exception seen in https://github.com/elastic/kibana/issues/32375, so in an effort to avoid that in the future I'm turning the batch size of the esArchiver down to 300 documents. If this error shows back up again in the future I'll revert this change like I did in 5c7b4790a0.
2019-03-04 17:22:12 -08:00
Fuyao Zhao
b35553f733
Enforce all packages uses same typescript version (#32440) 2019-03-04 16:35:47 -08:00
Lukas Olson
de6f3ee603
[KQL] Better warning messages when using Lucene-like syntax (#31837)
* Update grammar to show lucene errors

* Add warning message

* Add tests

* Fix test & add opt out message

* Fix message namespace

* Fix tests
2019-03-04 16:53:02 -07:00
Clint Andrew Hall
fff5b70553
[Canvas] Loading Indicator + Elements Panel (#32369)
* [Canvas] Loading Indicator + Elements Panel
2019-03-04 16:50:23 -06:00
Matt Bargar
4a6635bac7
Dedupe by index pattern ID rather than object identity (#32350)
Depending on how the index pattern was loaded (saved object client vs
angular service) it might be represented by different object instances
in the panelIndexPatternMapping. We don't care which one we return, as
long as there is only one instance per ID.
2019-03-04 16:47:05 -06:00
Bill McConaghy
b355dbe771
fixing issue with request body not being sent for console DELETE requ… (#32407)
* fix for delete not sending body from console

* better fix that accounts for delays in incoming data
2019-03-04 17:28:28 -05:00
Luke Elmers
66fb400437
Expressions: Add types to run_pipeline. (#32378) 2019-03-04 14:53:34 -07:00
Dmitry Lemeshko
325df74261
Improving way to check if pipelines list is loaded (#32370)
* [services/pipeline_list] wait for loadingPipelines is not displayed

* run x-pack-ciGroup2 x20 times

* Revert "run x-pack-ciGroup2 x20 times"

This reverts commit 1fb4077c2c.
2019-03-04 22:09:28 +01:00
Mike Place
4e9b7ef112
Minor change to stack monitoring tooltips (#31855)
* Minor change to stack monitoring tooltips

In the Linux documentation and source code, cgroups are always referred to without
capitalization and should be here as well.

* Update Jest snapshots

* Update more test fixtures
2019-03-04 20:45:23 +00:00
Rachel Shen
3702ac1223
Typescript dashboard stuff (#27167)
* gridData id changed to i

* to.equal panel_state.ts

* clarifying return values in panel_utils

*fixed imports in dpc

consitency across id -> i for gridData, improvment made in dashboard_panel.tsx

changed DashboardPanelUiProps onPanelFocused and onPanelBlurred (panel: PanelState) to (panel: string) resolved Problems in TS

* Resolved ts testing type errors with DashboardPanelUiProps in dashboard_panel.tsx

Updated snapshot for dashboard_panel.test.tsx

* Code review from Emma with changes partial PanelState and defining size_x and size_y to numbers

adding comment to clarify panel.panelIndex.toString()

* test commit to take in Emmas feedback and show the panel_utils and types.ts modified to show panelIndex string | number

reverting panel_utils and types.ts changes with panelIndex, keeping other changes from Emmas suggestions

* Fixed panel_utils and panel_utils test to create updatedPanel object instead of mutation

Revert mutation in panel utils

removed ts-ignore statements in __tests__/panel_state.ts
2019-03-04 11:47:33 -08:00
Chandler Prall
8b0e3a7de1
Fix IE11 by pinning top-level core-js node module to 2.5.3 (#32159)
* Fix IE11 by pinning top-level core-js node module to 2.5.3

* Re-force core-js in yarn.lock
2019-03-04 12:38:50 -07:00
Nathan Reese
4098f3f99b
[Maps] docs (#32130)
* [Maps] docs

* unique ids

* use hyphen instead of underscore in file names

* get everything working

* add screen shots of layer types

* add sources to layer documentation

* terms join example

* vector styling

* clean up

* link to geo_point for grid agg source

* minor clean up

* review feedback

* Update docs/maps/index.asciidoc

Co-Authored-By: nreese <reese.nathan@gmail.com>

* Update docs/maps/heatmap-layer.asciidoc

Co-Authored-By: nreese <reese.nathan@gmail.com>

* Update docs/maps/heatmap-layer.asciidoc

Co-Authored-By: nreese <reese.nathan@gmail.com>

* Update docs/maps/heatmap-layer.asciidoc

Co-Authored-By: nreese <reese.nathan@gmail.com>

* rest of changes suggested by gchaps

* update terms join intro
2019-03-04 12:18:20 -07:00
Mike Côté
d4488d677a
Throw error when migration not defined in same plugin as mappings (#31739)
* Throw error when migration not defined in same plugin as mappings

* Apply PR feedback
2019-03-04 14:05:59 -05:00
Oliver Gupte
c7f5584358
[APM] Context Tabs jumping height fix (#32351)
* [APM] fixes #18144 by setting the container min-height to the tab with the largest rendered height

* [APM] moved HeightRetainer into its own shared component module
2019-03-04 10:42:37 -08:00