Commit graph

24597 commits

Author SHA1 Message Date
Peter 4174b17b63
update backport versions to add 6.8 and 7.1 (#35888) 2019-05-01 12:30:02 -07:00
Caroline Horn 6268ee7e8c
Fix some EuiFlyout and EuiModal usages (#35829)
* Fix maps layer flyout

* Fixing some flyout headers with border and size

* Using euiOverflowShadow to remove warnings

* Fixed up some regular modal usages

* Added danger colors to EuiConfirmModals where necessary
2019-05-01 15:19:55 -04:00
Tyler Smalley 3c6bbc388e
Revert "[Code] Use Git WorkTree to create workspace for LSP (#35398)" (#35885)
This reverts commit f69fd3833e.
2019-05-01 11:25:11 -07:00
Rudolf Meijering eb17289602
Unlink destination before copy-on-write (#34852)
* Unlink destination before copy-on-write

* Catch unlink exception if destination file doesn't exist

* Add link to upstream node issue

* Add .node_binaries to kbn cleanup

* Remove unlink call

* Remove fs.copy()

* Fix extract_node_builds_task test

* Remove copy from build/lib exports
2019-05-01 20:13:58 +02:00
Tyler Smalley 8f782a8dbd
[kbn-es] Set password for native realm accounts (#35586)
Signed-off-by: Tyler Smalley <tyler.smalley@elastic.co>
2019-05-01 09:34:14 -07:00
Justin Kambic 5fdb23c31d
[Uptime] Uptime to APM integration (#34892)
* Add integrations popover.

* Add some more functionality, code is WIP/mocked.

* Trying some things WIP.

* Import settings values from context.

* Remove obsolete comment.

* Add links.

* Rename component. Clean up placeholder text and add translations.

* Minor tweaks. Rename component file.

* Fix import for renamed file.

* Add domain to api query result fixtures.

* Change integration to utilize EuiTable's actions API.

* Add translation for new column heading.

* Update busted snapshot.

* Add snapshot test for new component.

* Refactor integration links to dedicated component.

* Remove obsolete index export.

* Update monitor list test snapshot.

* Default monitor list to empty array instead of undefined.

* Extract URL construction to helper function.

* Make entire link text clickable for APM integration.

* Update broken test snapshot.

* Fix type and update test snapshot.
2019-05-01 11:30:09 -04:00
Justin Kambic a343899f75
Add getter function for app availability for plugins that will be integrated with Uptime in the future. (#35543) 2019-05-01 11:21:47 -04:00
Ryan Keairns e76e2d910d
[Canvas] Add new workpad templates (#35745)
* add pitch and status templates

* fix some extra space on slides
2019-05-01 08:09:34 -05:00
Mengwei Ding f69fd3833e
[Code] Use Git WorkTree to create workspace for LSP (#35398)
* [Code] Use git worktree to create workspace instead of clone

* [Code] Upgrade nodegit dependency version to alpha.14

* [Code] implement worktree update for workspace
2019-05-01 14:23:21 +08:00
Mengwei Ding 4d6ee0e15a
[Code] Replace git repository for api integration test with a smaller one (#35855) 2019-05-01 13:47:55 +08:00
Peter ae01c5fc36
update style it version to use MIT license version of react-lib-adler32 (#35754) 2019-04-30 19:51:42 -07:00
Nathan Reese d50c970290 [Maps] disable scroll zoom when map is embedded (#35811)
* [Maps] disable scroll zoom when map is embedded

* rename setScrollZoom to disableScrollZoom
2019-04-30 15:31:02 -07:00
Mikhail Shustov cc57ae22e1 remove object.freeze as it breaks when run Kibana with ssl (#35838) 2019-04-30 15:30:54 -07:00
Nathan Reese 502ee50c3d
[Maps] clear tooltip when mouse leaves map (#35825) 2019-04-30 14:54:48 -06:00
Nathan Reese ada772142a
[Maps] refactor isPointsOnly and computeScaledValues to use precomputed style meta in store (#35763)
* [Maps] refactor isPointsOnly and computeScaledValues to use precomputed style meta in store

* keep signature of VectorStyle.createDescriptor the same

* extract common behavior into _getDynamicPropertiesArray

* do not remove __state from tracked_layer_descriptor

* add unit test for VectorStyle.pluckStyleMetaFromSourceDataRequest

* review feedback

* simplify joinPropertiesToFeatureCollection
2019-04-30 14:34:39 -06:00
Chandler Prall ddd0f72685 Fix unit test snapshot (#35828) 2019-04-30 12:08:10 -07:00
Chandler Prall 8a45fe04ff
Add i18n mapping for EuiSelectable (#35421)
* Add i18n mapping for EuiSelectable

* update jest snapshot
2019-04-30 11:43:26 -06:00
spalger a246f14214 update yarn.lock 2019-04-30 10:09:22 -07:00
Chris Earle 33cc33cc47
[Telemetry] Check for 6.7.2 instead of 6.7.3 (#35814)
The versioned documents should ignore ordinary 6.7.2 documents,
rather than only starting with 6.7.3 documents.
2019-04-30 12:54:30 -04:00
Eli Perelman ed97dc6952
Handle encoding and decoding of angular route url components (#34300)
* Fork angular for use in Kibana

* Remove custom URL codec logic in favor of fixed forked angular behavior

* Remove legacy angular URL route encoding

* Revert changes to APM plugin to give back control of corrective codecing
2019-04-30 11:16:42 -05:00
Larry Gregory 06cf129659
Convert role listing page React/EUI (#30970) 2019-04-30 10:00:52 -04:00
Liza Katz b298b3ddec
Moved query bar into data plugin (#35390)
* moved query bar to data plugin
2019-04-30 15:57:12 +03:00
Jason Rhodes af3594f6c3
Fixes URL param bugs (#35741)
* Fixes url param bugs

* Updates tests for url params bug fixes
2019-04-30 08:21:48 -04:00
Mikhail Shustov 39091e7037
[New platform] Introduce start phase for core services on server (#35297)
* introduce start phase. setup is bloated with start functionality

* fix amp typings: server is part of start contract now

* update mock files

* root.start(): necessary to run test server

* expose  setup&start server api to simplify testing

* move tests to the new API

* test servers also should call root.start()

* update docs

* update snapshots: this functionality is tested in http server

* split setup/start phases

* update docs

* expose http server if it not started

to get rid of Optional<HttpServer> type and make it Require<HttpServer>

* adopt test to exposed Http server via SetupContract

* udpate docs

* cleanup apm changees

* check legacy service setup before start

* check http server setup before start

* restrict server options mutation; unify Promise interface for setup

* introduce start pahse for plugins service for parity with client side

* Revert "introduce start pahse for plugins service for parity with client side"

This reverts commit c04fdd2e26.
2019-04-30 13:22:33 +02:00
Walter Rafelsberger 2cc0b21566
[ML] Data Frame UI aggs enhancements (#35595)
- Adds ability to change the name of the group-by or aggregation configuration. Form validation matches the limitations of ES aggregation names.
- Adds ability to change aggregation type and/or field where applicable for create aggregations
Previously, internally we used separate information to store an ID and a display name for each configuration. Because ES aggregation names support all characters except []>, this is no longer necessary, so the internal attributes formRowLabel and optionsDataId are now merged to aggName.
- Fixes an issue with EuiInMemoryTable where changing columns in the source index and pivot preview table would crash Kibana.
- Improved handling of adding/updating/deleting items from group-by and agg configs.
2019-04-30 13:12:00 +02:00
Daniil Suleiman 44db613285
[Vis: Default editor] EUIficate other bucket control (#34945)
* EUIficate other_bucket control

* Filter invalid string params

* Fix functional tests

* Fix browser tests
2019-04-30 12:05:26 +03:00
Sonja Krause-Harder 87b0fd1158
[Infra UI] Use new snapshot endpoint (#34938)
* Use new snapshot endpoint

* Remove old nodes endpoint

* Reintroduce NAME_FIELDS for displayable names.

* Use camelCase consistently.

* Distinguish node name and node id correctly.

* Adjust functional tests.

* Make prettier.

* Use exact same date histogram as before.

* Enable test for metric values again.

* Add test for new groupBy behaviour.

* Add 'Service Type' to groupBy fields.

* Fix date histogram offset and adjust tests.

* Always query for all metrics.
2019-04-30 10:32:55 +02:00
WangQianliang ee7a86a046
feature(code/frontend): retry loading symbols if language server is initializing (#35715) 2019-04-30 15:13:24 +08:00
nicknak 7b3146d781 [rfc] Adds RFC for saved objects encrypted attributes. (#33740)
Co-authored-by: Nicholas Dziedzic <nicholas.dziedzic@elastic.co>
2019-04-30 08:31:02 +02:00
Luke Elmers efcfc8e73e
Fix conflict between timelion.ui.enabled yml setting and timelion feature control (#35266)
* Merge duplicate injectDefaultVars in timelion plugin definition.

* Enable timelion app in x-pack functional tests.
2019-04-29 17:43:05 -06:00
Brandon Kobel e1c3903860
Upgrading handlebars to 4.0.14 (#35755) 2019-04-29 12:59:54 -07:00
Brandon Kobel 5ae5e3d8c6
Feature Controls - Read only badges (#35252)
* Adding readonly badge to the discover application

* Dashboard get a badge

* Visualize gets a badge

* Timelion gets a badge

* Canvas gets a badge

* Maps gets a badge

* Infra gets a badge

* Graph gets a badge

* Dev Tools gets a badge

* Index Patterns get badges

* Advanced Settings get badges

* Infra and i18n are super chill friends

* Using proper i18n prefix for xpack

* Adding badges to the uptime application

* APM gets a badge!

* Adding functional tests for the discover read-only badge

* Functional tests for everyone!

* Removing unused import

* Fixing chrome service mock

* Switching from ChromeBadge | null to ChromeBadge | undefined

* Fixing canvas badge assertst

* Fixing Logs ui capabilities

* More ChromeBrand | null to ChromeBrand | undefined related changes

* Using named badges

* Revert "Using named badges"

This reverts commit c0e341bee1.

* i18n'ing the uptime read-only badges

* Adding ChromeService tests for badges

* Starting to add tests for the legacy badge API

* Changing capitalization of "Read Only" to "Read only"

* Adjusting styles

* Adding $setupBadgeAutoClear tests

* Changing the badge tooltip

* Fixing timelion i18n prefix

* Changing where Canvas sets the breadcrumbs

* Using a read-only badge with an icon

* Update x-pack/plugins/canvas/public/angular/controllers/canvas.js

Co-Authored-By: kobelb <brandon.kobel@gmail.com>

* Update src/legacy/core_plugins/timelion/public/app.js

Co-Authored-By: kobelb <brandon.kobel@gmail.com>

* Changing discover's read-only verbiage

* Removing tests for code that moved to an untested part of Kibana

* Fixing issues introduced with the rebase

* Fixing priv ileges snapshot

* Adding back dropped docs

* Fixing plugin plugin doc

* Ensuring iconType is set as well

* Updating badge api, angular components moved

* graph to Graph

* Fixing linter

* Switching from aria-label to data-test-badge-label for testing

The tabIndex allows screenreaders to work properly

* Fixing eslint error

* Fixing more issues introduced by the merge from master

* APM updates badge in React hook

* Applying changes suggested by Aleh
2019-04-29 12:48:43 -07:00
Clint Andrew Hall 7aa698f522
[codemod][prereq] Convert Functions from arrow to function (#35749) 2019-04-29 14:07:53 -04:00
WangQianliang 6d45682c5c fix(code/frontend): fix highlight symbol (#35531) 2019-04-29 23:23:02 +08:00
Tiago Costa b0e2ab0de9
Relative cache loader (#35406)
* chore(NA): first efforts to enable cache-loader relative paths and disable babel-register cache. chore(NA): allow to use cache-loader results everywhere as a persistent cache.

* chore(NA): last change to support cache loader across envs.

* fix(NA): cache-loader config generator function scope.

* refact(NA): static cache config for dll compiler.

* chore(NA): support for force writable cache flag. use built assets for cache on distributable.

* chore(NA): update cache-loader to last version. fix(NA): logic bug with force writable cache flag.

* chore(NA): move optimize cache to built_assets.

* chore(NA): relative paths for sourcemap configurations.

* chore(NA): remove redudant check for process.env var.

* refact(NA): simplify double negated expression.

* chore(NA): remove webpack prefix from devtoolModuleFilenameTemplate.

* chore(NA): rename cache write force flag to KBN_CACHE_LOADER_WRITABLE.

* chore(NA): readd babel register cache.

* chore(NA): change .cache to .ui_bundles_cache

* chore(NA): change .ui_bundles_cache to cache/ui_bundles

* chore(NA): update gitignore with .babel_register_cache.json
2019-04-29 15:08:56 +01:00
Pete Harverson e597c065d7
[ML] Fixes URL of link to detector function reference docs (#35734) 2019-04-29 15:08:38 +01:00
Walter Rafelsberger 84ffaaec39
[ML] Adds a feature flag to disable cell actions in the source index preview table. (#35719) 2019-04-29 16:02:35 +02:00
Walter Rafelsberger 804a144ffd
[ML] Adds data frame cluster privileges. (#35722) 2019-04-29 16:00:22 +02:00
Søren Louv-Jansen c4823356af
[APM] Cleanup context providers and limit use of withRouter (#35644) 2019-04-29 15:39:37 +02:00
Walter Rafelsberger 3c3c9b2a15
[ML] Data Frame UI group by enhancements (#35491)
- Adds support for histogram and date_histogram aggregations for the data frame pivot wizard for group-by fields.
- Adds options to the list of group-by aggregation to let the user edit the interval where applicable.
- Adds unit tests and enzyme snapshots test files to files touched by this PR.
2019-04-29 14:07:29 +02:00
Maryia Lapata 4c3a366a1f
[Vis: Default editor] EUIficate number interval (#35478)
* EUIficate number interval

* Add type for EditorConfig

* Update functional tests

* Add placeholder

* Update placeholder

* Use FormattedMessage instead of i18n

* Set validity in the effect only

* Refactoring: add showValidation prop and remove isInvalid

* Update prop
2019-04-29 14:47:33 +03:00
WangQianliang 824563b48b
fix(code/frontend): show loading in directory view (#35720) 2019-04-29 19:31:32 +08:00
Pete Harverson 3577c43d90
[ML] Edit queries in Metricbeat module to use event.dataset field (#35653) 2019-04-29 11:09:16 +01:00
Mengwei Ding 7ad35347e9
[Code] Fix language servers management page (#35714) 2019-04-29 10:29:42 +08:00
WangQianliang 728c82ea86
[Code] fix typeahead highlight file (#35585)
* fix(code/frontend): should not collapse folder after click a breadcrumb

* fix(code/frontend): should highlight file when jump from typeahead

* separate to a independent test case
2019-04-28 18:19:44 +08:00
Henry Wong d145ddd933
[code] Fix typo in the error desciption. (#35712) 2019-04-28 17:31:57 +08:00
WangQianliang 7f1bf939b5
fix(code/frontend): should not collapse folder after click a breadcrumb (#35458) 2019-04-28 15:45:19 +08:00
Mengwei Ding 29067e1cdc
[Code] fix tests (#35572)
* [Code] fix tests

* [Code] update mocha tests
2019-04-28 14:55:21 +08:00
Spencer 11adac314f
Revert "Optimizing DLStest" (#35706)
This reverts commit c1a3fca006.
2019-04-27 08:14:42 -07:00
Shaunak Kashyap 0b92436383
Exclude usage stats when exclude_usage flag is specified (#35691)
* Exclude usage stats when `exclude_usage` flag is specified

* Entirely excluding the usage key altogether

* Adding API integration test

* Fixing param name in comment + adding more info to comment

* Fix API test copy-pasta

* Fixing test assertion syntax
2019-04-26 21:52:03 -07:00