Commit graph

23583 commits

Author SHA1 Message Date
Felix Stürmer 07ad8fdbab
Fix babel initialization for graphql type generation (#33962)
This restores the functionality of the graphql type generation scripts after #33093. In particular, it properly sets up the babel import hook so schemata can once more be imported from `.ts/.tsx` files.
2019-03-27 21:34:48 +01:00
Lisa Cawley d3e8ee317d
[DOCS] Removes abbrevtitles from parts (#34002) 2019-03-27 13:23:32 -07:00
Søren Louv-Jansen 64e77b3a3e
[APM] Fix schema issues (#33833) 2019-03-27 19:44:10 +01:00
Walter Rafelsberger 2882d2853f
[ML] Fixes check to determine whether telemetry is enabled. (#33975) 2019-03-27 19:43:01 +01:00
spalger 4fac5fc899 Revert "[TSVB] markdown variables (#33324)"
This reverts commit 412c9d843e.
2019-03-27 11:12:52 -07:00
Joe Fleming 68a57affaa
chore: remove the old element ast clearing code (#33905)
should no longer be needed, this was changed over a year ago
2019-03-27 10:50:56 -07:00
Nathan Reese 4d1d3d69ae
skip failing maps application tests (#33977) 2019-03-27 11:47:27 -06:00
Lisa Cawley b7fcc7b0e6
[DOCS] Remove out-dated link (#33980) 2019-03-27 10:36:47 -07:00
Tiago Costa 1eada2a7ae
chore(NA): regex path support for windows on babel register ignore patterns. (#33946) 2019-03-27 15:16:00 +00:00
Sébastien Loix 9580e1b4cd
[Rollup] Re-enable api integration tests (#33381) 2019-03-27 16:02:36 +01:00
Nathan Reese 465d37bbac
[Maps] layer specific filtering (#33209)
* render filters section in layer details

* add popover with QueryBar

* show index pattern type ahead

* scss

* add custom button to QueryBar

* add setQuery action creator

* wire together layer query to search source

* remove old comment

* update heatmap layer to consider layerQuery during resync logic

* update getBounds to apply layer query

* fix QueryBar typescript problems

* add functional test for layer query

* more typescript nonsense

* fix jest test

* use EuiPopover instead of EuiModal

* close popover on button click

* fix functional test with popover change

* add empty state help text and use small padding on EuiCodeBlock

* query_bar renderUpdateButton return early if not this.props.showDatePicker
2019-03-27 08:33:34 -06:00
Chris Mark b20c3a1eba Add Data UI for CoreDNS Metricbeat Module (#33845)
Signed-off-by: Chris Mark <chrismarkou92@gmail.com>
2019-03-27 15:19:37 +01:00
Aleh Zasypkin 411a3fbbbc
Use refresh token for any access token error with 401 status code and re-authentication user for any refresh token error with 400 status code. (#33777)
* Use refresh token for any access token error with 401 status code and re-initiate SAML handshake for any refresh token error with 400 status code.

* Switch from `expect.js` to `@kbn/expect`.

* Review#1: repurpose redundant tests to test token failures with 500 code.
2019-03-27 15:09:33 +01:00
Daniil Suleiman d99497ab17
Fix TSVB auto apply changes on every click (#33710) 2019-03-27 17:08:49 +03:00
Corey Robertson f244583a3e
Force consistent canvasCheckered colors (#33786) 2019-03-27 10:02:47 -04:00
Mike Côté 00e1b3ca5e
Fix includeFields function to return root saved object properties (#33847)
* Fix includeFields function to return root saved object properties

* Fix broken tests
2019-03-27 09:50:50 -04:00
Sébastien Loix d3ad8a4b0b
[CCR & Rollup] Update client integration tests (#33857) 2019-03-27 14:44:24 +01:00
Pete Harverson 0603f7a8db
[ML] Adds created_by field to auditbeat and APM data recognizer jobs (#33863) 2019-03-27 11:05:12 +00:00
Vitali Haradkou 412c9d843e
[TSVB] markdown variables (#33324)
* improve test coverage for TSVB markdown
* add new tests for change label, variable and rendering markdown table
2019-03-27 13:35:10 +03:00
CJ Cenizal 33fa8c0c6b
Add eslint rule for checking React Hooks best practices. (#33901)
* Rename Console's useResizeChecker to applyResizeCheckerToEditors, to bypass greedy react-hooks lint rule.
2019-03-26 20:18:14 -07:00
Tiago Costa 3b020f055b
docs(NA): missing header for unit testing. (#33895) 2019-03-27 00:41:24 +00:00
CJ Cenizal d8c7e18bf1
Instrument ILM with user action telemetry (#33089)
* Track user actions for creating, updating, and deleting and index lifecycle policy.
* Track user actions for attaching an index, attaching an index template, and detaching an index.
* Track app load action.
* Track usage of cold phase, warm phase, set priority, and freeze index.
* Track retry step user action.
* Track clicks on the policy name to edit it.
* Refactor constants to be in root of public.
* Add support to user actions API for comma-delimited action types.
* Refactor rollups trackUserRequest to be easier to understand.
* Use underscores instead of dashes for user action app names.
* Switch from componentWillMount to componentDidMount/useEffect.
  - Standardize use of HashRouter within app.js to avoid calling useEffect when leaving the app.
2019-03-26 15:43:03 -07:00
Rashid Khan 7676f03bca
Fix plugin generator paths (#33728) 2019-03-26 15:41:25 -07:00
Sarah Hersh 41fb553ee3
edits to page headers (#33887) 2019-03-26 17:53:35 -04:00
Dmitry Lemeshko 8b0d1206a8
FTR: fix 10 sec timeout in waitForDeleted (#33313)
* use css selector instead of className, set implicit wait to 0

* set implicitWait to 2 sec

* set default implicitWait to WAIT_FOR_EXISTS_TIME

* set timeout to 1 sec, retry for query bar test

* sleep 5 sec waiting zoom is finished

* sleep is the only way to wait

* run x-pack-ciGroup3 20x times

* Revert "run x-pack-ciGroup3 20x times"

This reverts commit 55482de330.
2019-03-26 22:15:16 +01:00
Tiago Costa 20bdf7d4a9
Migration to Babel7 and @babel/preset-typescript (#33093)
* chore(NA): first changes on every package.json order to support new babel 7. chore(NA): build for kbn-pm with babel 7.

* chore(NA): patch babel register to load typescrit

* chore(NA): first working version with babel 7 replacing typescript compiler.

* fix(NA): common preset declaration in order to make it work with babel-loader.

* chore(na): organizing babel preset env package json.

* chore(NA): mocha tests enabled.

* fix(NA): typo on importing

* test(NA): majority of x-pack tests ported to use babel-jest

* fix(NA): report info button test with babel-jest.

* fix(NA): polling service tests.

* test(na): fix server plugins plugin tests.

* test(NA): batch of test fixs for jest tests under babel-jest hoisting.

* chore(NA): add babel plugin to hoist mock prefixed vars on jest tests.

* chore(NA): update yarn.lock file.

* chore(NA): tests passing.

* chore(NA): remove wrong dep

* chore(NA): fix tsconfig

* chore(NA): skip babel for ts-jest.

* chore(NA): selectively apply the plugin to strip off namespace from ts files.

* chore(NA): remove not needed changes from ts tests

* chore(NA): removed ts-jest dependency. chore(NA): migrate ts tests on x-pack to use babel-jest with the new pattern.

* chore(NA): migrate kibana default distribution typescript tests to run with babel-jest and the new test mock pattern.

* chore(NA): merge and solve conflicts with master.

* chore(NA): fix problems reported by eslint

* chore(NA): fix license ovveride for babel-plugin-mock-imports

* chore(NA): update jest integration tests for kbn pm

* chore(NA): update babel jest integration tests for kbn pm.

* test(NA): update jest integration snapshot for kbn pm.

* chore(NA): apply changes according to the pull request reviews.

* chore(NA): apply changes according to the pull request reviews.

* refact(NA): migrate jest tests to the new pattern.

* fix(NA): babel 7 polyfill in the tests bundle.

* chore(NA): restore needed step in order to compile x-pack with typescript.

* chore(NA): change build to compile typescript with babel for the oss code. chore(NA): change transpile typescript task to only transpile types for x-pack. refact(NA): common preset for babel 7

* Revert "chore(NA): change build to compile typescript with babel for the oss code. chore(NA): change transpile typescript task to only transpile types for x-pack. refact(NA): common preset for babel 7"

This reverts commit 2707d538f5.

* fix(NA): import paths for tabConfigConst

* chore(NA): fix transpiling error on browser tests

* chore(NA): simplify kbn babel preset package.

* chore(NA): migrate build to use babel transpiler for typescript excluding xpack.

* fix(NA): introduced error on test quick task.

* fix(NA): fix preset for client side code on build.

* fix(NA): build with babel

* fix(NA): negated patterns in the end.

* fix(NA): kbn_tp_sample_panel_action creation.

* fix(NA): babel typescript transform plugin workaround when exporting interface name.

* refact(NA): remove not needed type cast to any on jest test.

* docs(NA): add developement documentation about jest mocks test pattern.

* chore(NA): missing unmerged path.

* chore(NA): fix jest tests for template.

* [CCR] Client integration tests (table lists) (#33525)

* Force user to re-authenticate if token refresh fails with `400` status code. (#33774)

* Improve performance of the Logstash Pipeline Viewer (#33793)

Resolves #27513.

_This PR is a combination of #31293 (the code changes) + #33570 (test updates). These two PRs were individually reviewed and merged into a feature branch. This combo PR here simply sets up the merge from the feature branch to `master`._

Summary of changes, taken from #31293:

## Before this PR
The Logstash Pipeline Viewer UI would make a single Kibana API call to fetch all the information necessary to render the Logstash pipeline. This included information necessary to render the detail drawer that opens up when a user clicks on an individual vertex in the pipeline.

Naturally, this single API call fetched _a lot_ of data, not just from the Kibana server but also, in turn, from Elasticsearch as well. The "pro" of this approach was that the user would see instantaneous results if they clicked on a vertex in a pipeline and opened the detail drawer for that vertex. The "cons" were the amount of computation Elasticsearch had to perform and the amount of data being transferred over the wire between Elasticsearch and the Kibana server as well as between the Kibana server and the browser.

## With this PR
This PR makes the Kibana API call to fetch data necessary for **initially** rendering the pipeline — that is, with the detail drawer closed — much lighter. When the user clicks on a vertex in a pipeline, a second API call is then made to fetch data necessary for the detail drawer.

## Gains, by the numbers

Based on a simple, 1-input, 1-filter, and 1-output pipeline.

* Before this PR, the Elasticsearch `logstash_stats` API responses (multiple calls were made using the `composite` aggregation over the `date_histogram` aggregation) generated a total of 1228 aggregation buckets (before any `filter_path`s were applied but across all `composite` "pages"). With this PR, the single `logstash_stats` API response (note that this is just for the initial rendering of the pipeline, with the detail drawer closed) generated 12 buckets (also before any `filter_path`s were applied). That's a **99.02% reduction** in number of buckets.

* Before this PR, the Elasticsearch `logstash_stats` API responses added up to 70319 bytes. With this PR, the single `logstash_stats` API response for the same pipeline is 746 bytes. That's a **98.93% reduction** in size.

* Before this PR, the Elasticsearch `logstash_state` API response was 7718 bytes. With this PR, the API response for the same pipeline is 2328 bytes. That's a **69.83% reduction** in size.

* Before this PR the Kibana API response was 51777 bytes. With this PR, the API response for the same pipeline is 2567 bytes (again, note that this is just for the initial rendering of the pipeline, with the detail drawer closed). That's a **95.04% reduction** in size.

* [Maps] split settings into layer and source panels (#33788)

* [Maps] split settings into layer and source panels

* fix SCSS import

* [env] exit if starting as root (#21563)

* [env] exit if starting as root

* fix windows

* s/--allow-root

* Typescript sample panel action (#33602)

* Typescript sample panel action

* Update EUI version to match main cabana version

* update yarn.lock

* add back typings include

* use correct relative path

* Home page "recent links" should communicate saved object type #21896 (#33694)

* adds object type for screen order
* adds object type for pointer hovering
* Update src/legacy/ui/public/chrome/directives/header_global_nav/components/header.tsx

Co-Authored-By: rockfield <philipp.b@ya.ru>
2019-03-26 20:44:03 +00:00
Melissa Alvarez 4a1e7a86fb
[ML] Anomaly explorer add/remove filter via Top influencers list (#33626)
* Add filter icons in Top influencers list

* move entity component to own dir

* upadte function name to applyFilter

* add fix for IE overflow in anomalies table

* update path to entityCell in test

* Remove IE11 specific style

* Update entityCell design for table+InfluencerList

* Add entityCell component tests

* remove injectI18n dep
2019-03-26 16:17:02 -04:00
Jonathan Budzenski e24cef3f78
Docs/gettingstarted (#32145) (#32218)
* Docs/gettingstarted (#32145)

* [docs/getting started] remove types

* update urls

* one primary shard

* Update docs/getting-started/tutorial-load-dataset.asciidoc

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

* dedupe

* Update tutorial-load-dataset.asciidoc
2019-03-26 14:45:35 -05:00
Lukas Olson 7846222ded Merge remote-tracking branch 'upstream/master' 2019-03-26 12:18:29 -07:00
Lukas Olson 5ad1ee5edb Update advanced setting description. Closes #30753 2019-03-26 12:18:01 -07:00
Philipp B 57c7572367
Home page "recent links" should communicate saved object type #21896 (#33694)
* adds object type for screen order
* adds object type for pointer hovering
* Update src/legacy/ui/public/chrome/directives/header_global_nav/components/header.tsx

Co-Authored-By: rockfield <philipp.b@ya.ru>
2019-03-26 19:40:58 +03:00
Stacey Gammon f5010cc8e6
Typescript sample panel action (#33602)
* Typescript sample panel action

* Update EUI version to match main cabana version

* update yarn.lock

* add back typings include

* use correct relative path
2019-03-26 12:31:10 -04:00
Jonathan Budzenski 369f0f2922
[env] exit if starting as root (#21563)
* [env] exit if starting as root

* fix windows

* s/--allow-root
2019-03-26 11:20:41 -05:00
Nathan Reese e247609e8b
[Maps] split settings into layer and source panels (#33788)
* [Maps] split settings into layer and source panels

* fix SCSS import
2019-03-26 10:00:53 -06:00
Shaunak Kashyap 2f9ad0a814
Improve performance of the Logstash Pipeline Viewer (#33793)
Resolves #27513.

_This PR is a combination of #31293 (the code changes) + #33570 (test updates). These two PRs were individually reviewed and merged into a feature branch. This combo PR here simply sets up the merge from the feature branch to `master`._

Summary of changes, taken from #31293:

## Before this PR
The Logstash Pipeline Viewer UI would make a single Kibana API call to fetch all the information necessary to render the Logstash pipeline. This included information necessary to render the detail drawer that opens up when a user clicks on an individual vertex in the pipeline.

Naturally, this single API call fetched _a lot_ of data, not just from the Kibana server but also, in turn, from Elasticsearch as well. The "pro" of this approach was that the user would see instantaneous results if they clicked on a vertex in a pipeline and opened the detail drawer for that vertex. The "cons" were the amount of computation Elasticsearch had to perform and the amount of data being transferred over the wire between Elasticsearch and the Kibana server as well as between the Kibana server and the browser.

## With this PR
This PR makes the Kibana API call to fetch data necessary for **initially** rendering the pipeline — that is, with the detail drawer closed — much lighter. When the user clicks on a vertex in a pipeline, a second API call is then made to fetch data necessary for the detail drawer.

## Gains, by the numbers

Based on a simple, 1-input, 1-filter, and 1-output pipeline.

* Before this PR, the Elasticsearch `logstash_stats` API responses (multiple calls were made using the `composite` aggregation over the `date_histogram` aggregation) generated a total of 1228 aggregation buckets (before any `filter_path`s were applied but across all `composite` "pages"). With this PR, the single `logstash_stats` API response (note that this is just for the initial rendering of the pipeline, with the detail drawer closed) generated 12 buckets (also before any `filter_path`s were applied). That's a **99.02% reduction** in number of buckets.

* Before this PR, the Elasticsearch `logstash_stats` API responses added up to 70319 bytes. With this PR, the single `logstash_stats` API response for the same pipeline is 746 bytes. That's a **98.93% reduction** in size.

* Before this PR, the Elasticsearch `logstash_state` API response was 7718 bytes. With this PR, the API response for the same pipeline is 2328 bytes. That's a **69.83% reduction** in size.

* Before this PR the Kibana API response was 51777 bytes. With this PR, the API response for the same pipeline is 2567 bytes (again, note that this is just for the initial rendering of the pipeline, with the detail drawer closed). That's a **95.04% reduction** in size.
2019-03-26 06:27:20 -07:00
Aleh Zasypkin 961f7919d3
Force user to re-authenticate if token refresh fails with 400 status code. (#33774) 2019-03-26 12:05:39 +01:00
Sébastien Loix 67acefc283
[CCR] Client integration tests (table lists) (#33525) 2019-03-26 08:47:29 +01:00
Catherine Liu c6acd796c1
Added display name and help description to shape arg in progress view (#33819) 2019-03-25 16:51:27 -07:00
Melissa Alvarez 0665508b65
only show charts if cell has been selected (#33680) 2019-03-25 16:23:19 -04:00
Chris Roberson 5ed923e91e
Ensure the pipelines page utilizes reactNodeId (#33798) 2019-03-25 14:36:40 -04:00
Brandon Kobel 3f9c36bb25
Fixing the regex that is used to validate the Space ID (#33716)
* Fixing the regex that is used to validate the Space id

* Adding basic jest tests for the space schema's ID
2019-03-25 11:03:25 -07:00
Spencer dfeb12f502
[ci] rebuild kbn-pm distributatble to ensure it is up-to-date (#33752) 2019-03-25 11:00:57 -07:00
Spencer 2e232c2e31
[@kbn/expect] "fork" expect.js into repo (#33761)
* [@kbn/expect] "fork" expect.js into repo

* [eslint] autofix references to expect.js

* [tslint] autofix all expect.js imports

* now that expect.js is in strict mode, avoid reassigning fn.length
2019-03-25 09:56:48 -07:00
Oliver Gupte 2c48da2417
[APM] Rename "Tags" -> "Labels" in span flyout (#33688)
* [APM] Closes #33486. Rename "Tags" -> "Labels" in span flyout.

* Remove unused translation 'xpack.apm.transactionDetails.spanFlyout.tagsTabLabel'
2019-03-25 09:26:53 -07:00
Josh Dover 8aa8c55002
Rename newPlatform.start to newPlatform.setup in legacy (#33708) 2019-03-25 10:01:20 -05:00
Juan Álvarez c6699c7986
update kibana index pattern for APM (#33778) 2019-03-25 15:55:24 +01:00
Rudolf Meijering 78fac18d47
Remove *Module classes that wrap services (#33698)
* Remove *Module classes that wrapped services

* Fix tests

* Remove empty core/server README
2019-03-25 15:12:11 +01:00
Tim Roes 657552d888
Allow editing editorState in data panel (#33305) 2019-03-25 05:30:30 -03:00
Liza Katz 6a2e22f512
Deleted bar, progress and progressbar directives (#33585)
* Deleted
- progress
- bar
- progressbar

Changed
 - implementation of Discover > string field > proressbar to use EUI progressbar and tooltip.

* added bug comment

* Fixed CR
2019-03-24 12:56:42 +02:00
Liza Katz 53323d3d8a
Deleted unused directives from angular-boostrap (#33564)
* Deleted unused directives
 - alert
 - pagination
 - pager
 - bar
 - tooltipPopup
 - tooltipHtmlUnsafePopup
2019-03-24 11:00:52 +02:00