Commit graph

503 commits

Author SHA1 Message Date
Nathan Reese 59c0380de0
[Maps] fix MapboxDraw import from pointing to dist just pointing to folder (#93087) 2021-03-01 14:11:39 -07:00
Nathan Reese 08c40955a4
[Maps] fix results trimmed tooltip message doubles feature count for line and polygon features (#92932)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-03-01 14:11:18 -07:00
Nathan Reese d02294cb98
[Maps] fix fit to data on heatmap not working (#92697)
* [Maps] fix fit to data on heatmap not working

* tslint

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-03-01 13:42:14 -07:00
Nathan Reese e409405ccb
[Maps] fix selecting EMS basemap does not populate input (#92711)
* [Maps] fix selecting EMS basemap does not populate input

* tslint
2021-02-25 17:09:52 -07:00
Nathan Reese 37d7ea2713
[Maps] fix index pattern references not extracted for tracks source (#92226)
* [Maps] fix index pattern references not extracted for tracks source

* merge with master

* tslint

* tslint

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-02-25 11:11:15 -07:00
Corey Robertson 510bc698ff
[Dashboard] Export appropriate references from byValue panels (#91567)
* Adds references from byValue panels when saving dashboard

* Remove extra spaces

* Rework a type check

* Fix type check

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-02-24 16:23:44 -05:00
Aaron Caldwell f4b16f3d87
[Maps] Fix geo shape agg telemetry not collecting due to missing index pattern IDs (#90886) 2021-02-23 14:06:36 -05:00
Nathan Reese 7f9e9e828d
[Maps] convert map redux reducer to typescript (#91955)
* [Maps] convert map redux reducer to typescript

* fix jest test

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-02-22 18:48:37 -07:00
Nathan Reese 6ef7d2cd55
[file_upload] move ml Importer classes to file_upload plugin (#91559)
* [ml] move importer to file_upload plugin

* move file_parse logic into GeoJsonImporter

* move file_parser tests to geojson_importer tests

* rename geo_json_clean_and_validate to geojson_clean_and_validate

* replace file_upload import with Importer.import

* simplify JsonIndexFilePicker props

* tslint

* i18n fixes and tslint fixes

* update functional test to account for change in layer name

* review feedback

* dependency_cache review feedback

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-02-22 08:47:39 -07:00
Aaron Caldwell eea6f82e4e
[Maps] Use new index patterns service for Maps telemetry (#86703)
Co-authored-by: Matt Kime <matt@mattki.me>
2021-02-19 08:00:01 -07:00
Aaron Caldwell df8f2b1412
[Maps] Fix issue preventing WebGL warning message from appearing (#91069) 2021-02-18 10:48:42 -07:00
Thomas Neirynck a2cd3662b2
[Maps] rename data load method for clarity (#91547) 2021-02-17 16:23:30 -05:00
Nathan Reese 3e5497484d
[Maps] use stored map buffer to generate queries for search sessions (#91148)
* [Maps] use stored map buffer to generate queries for search sessions

* getDataFilters unit test

* tslint

* update setQuery unit tests

* only set searchSessionMapBuffer when search session isRestore

* tslint

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-02-17 14:02:20 -07:00
Nathan Reese 7917632769
[Maps] disable maps interactions when using search session (#91229)
* [Maps] disable maps interactions when using search session restore

* tslint

* tslint

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-02-16 16:47:31 -07:00
Greg Thompson 8126488021
Upgrade EUI to v31.7.0 (#91210)
* eui to 31.6.0

* flyout, collapsible snapshot updates

* initial overlaymask removal

* undo jest

* overlaymask src snapshot updates

* more overlaymask removals

* overlaymask removal xpack test updates

* saved objects modal form

* eui to 31.7.0

* code, codeblock types

* snapshot update

* tooltip

* remove ownFocus from ConfirmModal

* remove fragments
2021-02-16 14:06:25 -06:00
Nathan Reese 0ecac0cabb
[Maps] fix reporting jobs fail when Elastic Maps Service (EMS) is unavailable (#90834)
* [Maps] fix Reporting jobs fail when Elastic Maps Service (EMS) is unavailable

* clean up test case names

* make tests more explicit

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-02-16 11:47:04 -07:00
Rashmi Kulkarni a96aa5e34e
Unskip and Fix maps x-pack functional test - ( sample data and layer_errors) and also added baseline images (#91205)
* fixes https://github.com/elastic/kibana/issues/74449

* unskip maps tests (#90323)

* unskip maps tests

* checking the baseline images

* updated the test to move the mouse away and close the Legend

* more changes to the test

* reducing the threshold limit

* updating the baseline images

* added a comment about the baseline images

* updating flights baseline image and adjusting threshold

* updated threshold and baseline image for web log

* session image of weblogsmap

* skipping layer_errors test

* skip the test - as it fails on cloud and windows on snapshot
2021-02-11 16:01:41 -07:00
Pierre Gayvallet 570dcc07b5
Implement custom global header banner (#87438)
* first draft

* update plugin list

* fix tsproject

* update bundle limits file

* remove unused start dep

* adapt imports

* POC of footer banner

* update styles, mostly

* plug banner to uiSettings

* adding some unit tests

* add tests on sort_fields

* cleanup sums in sass mixins

* some self review stuff

* update generated doc

* add tests for color field

* update chrome header test snapshots

* retrieve license info from the server

* switch from uiSettings to plugin config

* update plugin list description

* update default colors

* NIT

* add markdown support

* fix banner overlap in fullscreen mode

* change banner height to 32px

* change banner's font size to 14

* delete unused uiSettings
2021-02-11 10:12:24 +01:00
Aaron Caldwell bcdc022efe
[Maps] Add redux devtools back to Maps (#90863) 2021-02-10 08:40:13 -07:00
Nathan Reese 1ba7d7af9a
[Maps] remove maps_file_upload plugin and fold public folder into file_upload plugin (#90292)
* get geojson working with api/file_upload/import

* remove maps_file_upload server code

* remove common folder

* remove maps_file_upload plugin

* fix tsconfig paths

* rename file_upload plugin in maps tsconfig

* fix file path

* node scripts/build_plugin_list_docs

* fix webpack compile errors

* telemetry schema cleanup, i18n cleanup, limits cleanup

* remove mapsFileUpload from limits.yml

* remove index pattern link test case

* update telemetry/v2/clusters/_stats for new file_upload path

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-02-09 17:31:57 -07:00
Nathan Reese a9ee83c37c
[Maps] convert HeatmapLayer to TS (#90666)
* [Maps] convert HeatmapLayer to TS

* make VectorLayer implement IVectorLayer

* fix jest test and functional test

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-02-09 15:49:44 -07:00
Nathan Reese 6c224e5a10
Switch import route tag from access:ml:canFindFileStructure to access:fileUpload:import (#90677) 2021-02-09 14:34:34 -07:00
Nathan Reese 9314b8e2fa
[Maps] use chart pallete registry to support sync colors in dashboard (#88099)
* [Maps] use chart pallete registry to support sync colors in dashboard

* pass getColor to createLayerInstance

* use chartsPaletteServiceGetColor to get categorical color

* revert changes to layer_actions

* tslint and jest test updates

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-02-09 07:57:00 -07:00
Devon Thomson 31a3ec5934
[Time To Visualize] Make State Transfer App Specific (#89804)
* made state transfer app specific
2021-02-08 15:31:09 -05:00
Nathan Reese 3722bea42f
[Maps] clamp MVT too many features polygon to tile boundary (#90444)
* [Maps] clamp MVT too many features polygon to tile boundary

* add mapbox_styles to index.js

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-02-08 12:53:54 -07:00
Pierre Gayvallet 3b3327dbc3
Migrate most plugins to synchronous lifecycle (#89562)
* first pass

* migrate more plugins

* migrate yet more plugins

* more oss plugins

* fix test file

* change Plugin signature on the client-side too

* fix test types

* migrate OSS client-side plugins

* migrate OSS client-side test plugins

* migrate xpack client-side plugins

* revert fix attempt on fleet plugin

* fix presentation start signature

* fix yet another signature

* add warnings for server-side async plugins in dev mode

* remove unused import

* fix isPromise

* Add client-side deprecations

* update migration examples

* update generated doc

* fix xpack unit tests

* nit

* (will be reverted) explicitly await for license to be ready in the auth hook

* Revert "(will be reverted) explicitly await for license to be ready in the auth hook"

This reverts commit fdf73feb

* restore await on on promise contracts

* Revert "(will be reverted) explicitly await for license to be ready in the auth hook"

This reverts commit fdf73feb

* Revert "restore await on on promise contracts"

This reverts commit c5f2fe51

* add delay before starting tests in FTR

* update deprecation ts doc

* add explicit contract for monitoring setup

* migrate monitoring plugin to sync

* change plugin timeout to 10sec

* use delay instead of silence
2021-02-08 10:19:54 +01:00
Brandon Kobel 4584a8b570
Elastic License 2.0 (#90099)
* Updating everything except the license headers themselves

* Applying ESLint rules

* Manually replacing the stragglers
2021-02-03 18:12:39 -08:00
Devon Thomson bb802c01e4
Clear editor state when maps listing page loads. (#90071)
* Clear editor state when maps listing page loads.
2021-02-03 11:00:55 -05:00
Lukas Olson a9273ca001
[data.search] Add search session methods to search service contract (#87966)
* [data.search] Add search session methods to search service contract

* Fix types

* Fix tests and switch to cancel

* Update docs

* Fix types/tests

* Fix tests

* Update status of SO before cancelling search requests

* Add API integration test

* Fix types

* Update expiration route to use config defaultExpiration

* Fix test

* Update docs

* New logic for extend

* Remove declare module

* Review feedback

* fix ts

* Remove test that is no longer valid

* Fix undefined bug

* Use DataRequestHandlerContext in maps

* ts

Co-authored-by: Liza K <liza.katz@elastic.co>
2021-02-03 08:08:54 -07:00
Nathan Reese 980112de1e
[Maps] migrate mvt routes to use data.search service instead of directly calling elasticsearch (#89904)
* [Maps] migrate mvt routes to use data.search service instead of directly calling elasticsearch

* pass search session id to mvt requests

* move grid tile tests to integration tests

* replace getTile unit test with integration test

* add comment about request param

* revert total meta change

* tslint fixes

* update jest tests
2021-02-02 15:51:00 -07:00
Thomas Neirynck 391ab72be1
[Maps] Add table source for choropleth mapping (#89263) 2021-02-01 12:43:03 -05:00
Nathan Reese ad8a2fb920
[Maps] Implement searchSessionId in MapEmbeddable (#89342)
* [Maps] Implement searchSessionId in MapEmbeddable

* clean up

* update method name

* fix _unsubscribeFromStore subscription

* fix unit test

* add maps assertion to send_to_background_relative_time functional test

* fix functional assertion

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-01-29 10:28:48 -07:00
Clint Andrew Hall 55afba4a4d
Setting up and documenting Presentation Util (#88112) 2021-01-28 17:15:13 -06:00
Anton Dosov 07b210e42d
[Search Sessions] Improve session restoration back button (#87635) 2021-01-28 09:54:26 +01:00
Nathan Reese 1ff4256d64
[Maps] migrate maps, maps_file_upload, and maps_legacy_licensing to TS projects (#89439)
* [Maps] migrate maps, maps_file_upload, and maps_legacy_licensing to TS projects

* include types to avoid rison import errors

* add mappings to tsconfig include
2021-01-27 13:38:16 -07:00
Quynh Nguyen da9ad2ade4
[ML] Add embedded map to geo_point fields for Data Visualizer (#88880) 2021-01-27 11:39:50 -06:00
Stratoula Kalafateli 64e9cf0440
Cleanup OSS code from visualizations wizard (#89092)
* Cleanup OSS code from visualizations wizard

* Remove unecessary translations

* Remove unused translation

* Fix functional test

* Disable the functional test for OSS

* Remove from oss correctly :D

* Fix ci
2021-01-27 12:45:49 +02:00
Nathan Reese 0b61847696
[Maps] rename file_upload to maps_file_upload (#89225)
* migrate file_upload plugin to maps_file_upload

* update plugins list

* results of running node scripts/build_plugin_list_docs

* fix build problems

* remove fileUpload from limits.yml

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-01-26 14:32:09 -07:00
Nathan Reese 3938fa67ad
[Maps] allow saving maps to dashboards (#88759)
* [Maps] allow saving maps to dashboards

* update saveMap functional test method

* update tags functional test

* review feedback

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-01-26 10:35:57 -07:00
Thomas Neirynck 0076384a0f
[Maps] Implement fields and bounds retrieval on GeoJsonFileSource (#88294) 2021-01-26 12:32:12 -05:00
Chandler Prall 5d68b10106
Upgrade EUI to v31.3.0 (#88881)
* Bump EUI to v31.3.0

* jest snapshot updates

* Fixed space issue in kbnQueryBar date picker

* Removed unecessary space in query bar scss

Co-authored-by: miukimiu <elizabet.oliveira@elastic.co>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-01-25 14:39:20 -07:00
Nathan Reese 15a45e8c38
[Maps] fix users without access to Maps should not have the option to create them (#88830)
* [Maps] fix users without access to Maps should not have the option to create them

* fix test message

* wrap add geo field trigger in show capabilities check

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-01-25 12:25:52 -07:00
Nathan Reese a0bfdf87fd
[Maps] fix Filter shape stops showing feedback when data refreshes (#89009)
* [Maps] fix Filter shape stops showing feedback when data refreshes

* update comment

* add curly braces around if
2021-01-21 19:35:40 -07:00
Nathan Reese 5908bd097f
[Maps] fix setting "apply global time" switch not working with blended vector layer (#88996)
* [Maps] fix setting "apply global time" switch not working with blended vector layer

* review feedback

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-01-21 18:27:27 -07:00
Nathan Reese da8abdaf75
[Maps] fix tags changed in Maps Save dialog don't refresh until the map is reopened (#88849)
* [Maps] fix tags changed in Maps Save dialog don't refresh until the map is reopened

* only set tags if newTags are provided
2021-01-20 14:29:47 -07:00
Nathan Reese f0f192c654
[Maps] fix Maps should display better error message instead of EsError when there is no data for tracks data source (#88847) 2021-01-20 11:25:48 -07:00
Lisa Cawley 1db32352b2
Use doc link service for Maps help (#88631) 2021-01-19 13:52:42 -08:00
Thomas Neirynck 66c0cc22c5
[Maps] EMS baselayer should load cleanly (#88531) 2021-01-19 16:50:07 -05:00
Nathan Reese 07849ce42e
Remove circular depencency between maps_legacy and region_map and tile_map plugins (#88265)
* Remove circular depencency between maps_legacy and region_map and tile_map plugins

* update imports in maps plugin

* tslint

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-01-19 13:40:24 -07:00
Thomas Neirynck 55d1065c93
[Maps] Always show solution layers (#86053) 2021-01-19 14:07:48 -05:00