Commit graph

23350 commits

Author SHA1 Message Date
Søren Louv-Jansen 30c63f57fd
[APM] useFetcher: Replace react-redux-request with hooks and Context API (#33392) 2019-03-28 14:56:56 +01:00
Nathan Reese a7062883d2
[Maps] Add clone layer to layer actions (#33853)
* [Maps] Add clone layer to layer actions

* remove console statement

* do not show clone action when isReadOnly

* clean up

* combine getLayerList uses into single getLayerById function

* update jest snapshots
2019-03-28 07:42:05 -06:00
Justin Kambic 062cfc7efe
Remove crosshair synchronization to avoid display bug. (#33660)
Fix broken snapshot.

Fix busted type.
2019-03-28 09:13:17 -04:00
Peter Pisljar 06d7ebef8f
moving interpreter functions to their appropriate plugins (#33552) 2019-03-28 13:40:31 +01:00
Nathan Reese 7ab080a97c
[Maps] store mapCenter in embeddable config (#33902)
* embeddable config

* set embeddableConfig when map center changes

* remove console statement

* add functional test for embeddable state
2019-03-28 06:39:36 -06:00
Tim Roes 0b7268f5b3
Remove geo_centroid/geo_bounds from nested metrics (#34042) 2019-03-28 13:15:21 +01:00
Liza Katz 8fa81b7fdc
New platform cleanup autoload - step 1 (#33765)
* Explicit dependencies to doc_title

* Explicit dependencies to
    - kbn_top_nav
    - saved_object_save_as_checkbox

* Explicit dependencies to filter_bar

* Explicit dependency to query_bar

* Removed modules from autoloades that never
used implicitly:
- bound_to_config_obj
- debounce
- filter_manager
- index_patterns
- parse_query
- persisted_log
- timefilter

* Removed modules from autoload (never used implicitly)
- events

* Explicit dependency to bind + typo fix

* Explicit dependency to fancy_forms

* Explicit dependency to $listen

* Explicit dependency to timepicker

* Moved kbn-infinite-scroll directive to doc_table

* Explicit dependency on directives
- css truncate
- inequality

* Explicit dependecy to input_focus directive

* Explicit dependency to json-input directive

* Explicit dependency on directives:
 - input_focus
 - paginate

* Explicit dependency on paginated-selectable-list directive

* Explicit dependency on saved-object-finder directive

* Moved validate_json directive into agg_types

* Don't include directives implicitly
2019-03-28 13:53:10 +02:00
Maryia Lapata b03f6c3eae
[Vis: Default editor] EUIficate agg-select (#31892)
* EUIficate agg-select

* Improve validation; update TS

* Apply styles for helpLink

* Fix unit test

* Update functional tests

* Adjust comboBox service to chose the item where the text mates exactly

* Update vis page object

* Add default value for agg

* Move aggs grouping function to a separate file

* Use labelAppend prop for help link node

* Add watcher for aggType to manage to discard changes

* Add default value for agg type title

* Fix defining selected option when aggType is defined

* Fix validation issues

* Remove a bootstrap specific class

* Change css selector in test

* Update according to SASS guidelines

* Update functinal comboBox service

* Added check for undefined

* Add jsdoc for groupAggregationsBy function

* Add unit tests for groupAggregationsBy

* Move setValidity invocation to DefaultEditorAggSelect component

* Wrap setValidity into useEffect due to react warning when select is cleaned at the first time

* Move help link definition to select component
2019-03-28 13:02:34 +03:00
Joe Reuter 06a71e8676
Functional tests: prevent waiting longer than necessary for loading spinner to disappear (#33922) 2019-03-28 10:27:42 +01:00
Liza Katz 751524b673
Move tests from factories to their correct locations (#33851) 2019-03-28 10:58:02 +02:00
Maryia Lapata 508acd3065
[Vis: Default editor] EUIficate raw json control (#32888)
* EUIficate raw json control

* Remove unused validate-json directive

* Update tests

* Update styles

* Move validation logic down to control

* Fix type
2019-03-28 11:40:40 +03:00
Philipp B 424edafdfd
(Accessibility) Viz type selection button should read more clearly in screenreader #29475 (#33434)
* popover announces itself, button gives predictable behavior; menutitems
* drops incorrect button aria label
* replace aria-describedby with translated label
2019-03-28 09:58:20 +03:00
CJ Cenizal 7a4b3ced60
Update copy to refer to Cross-Cluster Search/Replication. (#33872) 2019-03-27 19:53:19 -07:00
dave.snider@gmail.com 786423a85a
EUI@9.7.0 (#34011) 2019-03-27 16:21:40 -07:00
Lukas Olson a848840501
Remove segmented fetch (#33453)
* Remove segmented fetch

* Fix namespace

* Remove unused translations
2019-03-27 14:14:01 -07:00
Greg Thompson 3acebd9d57 Upgrade EUI to 9.6.0 (#33873)
* eui to 9.6.0

* update snapshots related to onClick
2019-03-27 13:49:52 -07:00
Josh Dover 049723da8a
Fix missed start -> setup renames (#33967) 2019-03-27 15:35:16 -05:00
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