Commit graph

1168 commits

Author SHA1 Message Date
Mikhail Shustov
4912153ce6
don't register any features in LP. (#65611)
* don't register any features in LP. breaks features value reading in KP

* move test plugin to NP

* fix mappings

* update docs

* migrate another test

* use contstants file for BWC with original code

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-05-11 18:43:45 +02:00
Nathan Reese
431a7eb07a
[Maps] remove dateline check for geo_shape queries, split geo_bounding_box queries that cross dateline into 2 boxes (#64598)
* remove dateline check for geo_shape queries

* fix jest test

* split bounding box

* replace convertMapExtentToPolygon with formatEnvelopeAsPolygon

* clamp latitudes

* use clampToLatBounds

* use single box where left lon is greater then right lon when crossing 180 meridian

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-05-11 08:50:20 -06:00
Nathan Reese
37aad5c56a
[Maps] remove SLA percentage metric (#65718)
* [Maps] remove SLA percentage metric

* remove unused import

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-05-07 18:32:07 -06:00
Aaron Caldwell
c00b36e9e3
Migrate Coordinate Maps to NP (#64668) 2020-05-06 15:12:38 -06:00
Nathan Reese
2eaa074923
[Maps] convert EMS file source to TS (#65373)
* [Maps] convert EMS file source to TS

* ts more ems_file_source

* ts lint cleanup

* more ts clean up

* clean up some ts-ignores

* review feedback
2020-05-06 12:28:30 -06:00
Michail Yasonik
35e10273d3
New nav (#64018)
Notably, also removes aria-hidden from many visualizations
2020-05-05 23:14:14 -05:00
Nathan Reese
932d6ad214
[Maps] do not show auto-clustering capabilities for a geo_shape source (#65306)
* [Maps] do not show auto-clustering capabilities for a geo_shape source

* add check in UpdateSourceEditor
2020-05-05 14:56:31 -06:00
Nathan Reese
891e27eb1f
[Maps] observability real user monitoring solution layer (#64949)
* [Maps] observability real user monitoring solution layer

* make stateful component

* rename RUM to observability

* layer select

* metrics select

* display select

* clean up

* create cholopleth map layer descriptor

* get styling working

* fix unique count agg

* create geo grid source

* render as heatmap

* clusters

* tslint errors

* last tslint fix

* only show card when APM index exists

* layer label

* clean up

* fix getLayerWizards

* add parans

* review feedback

* add cluster labels

* use green to red ramp

* tslint fix

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-05-05 12:38:52 -06:00
dependabot[bot]
23282a2f37
Bump jquery from 3.4.1 to 3.5.0 (#64884) 2020-05-05 13:31:49 -04:00
Nathan Reese
f2d1095d46
[Maps] add categorical palettes with 20 and 30 categories (#64701)
* [Maps] add categorical palettes with 20 and 30 categories

* fix ts-lint

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-05-05 08:21:48 -06:00
Thomas Neirynck
602d10272a
[Maps] Add global fit to data (#64702) 2020-05-05 09:22:48 -04:00
Thomas Neirynck
7bf7174a2d
[Maps] Code split Maps app (#64594)
Code-split the maps-plugin to reduce the initial `maps.plugin.js` size.

There were two main code dependencies in the plugin initialization that were the root cause of the large bundle size.

- `GisMap` wraps the entire application UX, including the add-layer-wizard. The layer wizards only need to be available there. This PR moves the `load_layer_wizard` dependency from the plugin-initialization to the `GisMap` component. 
- The `MapEmbeddableFactory` needs to be registered at plugin-initialization. However, this module imports a lot of core-application code. By code-splitting here, we avoid pulling in the entire Maps-app in the main bundle.

This also  introduces a lazy-initialization of the `GisMap` itself as an additional split to further reduce size of the bundles.
2020-05-04 16:48:31 -04:00
Nathan Reese
e3b9b946a9
[Maps] initial location map settings (#64336)
* [Maps] initial location map settings

* fix tslint

* add button to set to current view

* move button to bottom of form

* review feedback

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-05-04 13:57:25 -06:00
Nathan Reese
a80f2582c3
[Maps] fix remove layer (#65093) 2020-05-04 11:23:47 -06:00
Diana Derevyankina
a854a1dd8f
Migrate tutorial resources (#64298)
* Migrate tutorial resources

Closes #55710

* Added type to context in apm plugin index

* Removed context parameter  from ApmPlugin

* Generated apm plugin by generate_plugin script

* Removed getGreeting declaration

* Remove unused assets and comment previewImagePaths

* Removed unnecessary types file

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-05-04 14:39:11 +03:00
Nathan Reese
d6f0c785d9
[Maps] do not display EMS or kibana layer wizards when not configured (#64554)
* [Maps] do not display EMS or kibana layer wizards when not configured

* default tilemap to empty object instead of array

* fix typo

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-04-29 13:27:55 -06:00
Nathan Reese
4a18894fc3
[Maps] disable edit layer button when flyout is open for add layer or map settings (#64230)
* [Maps] disable edit layer button to avoid user data loss

* remove layer_toc_actions

* fix tslint errors

* update jest snapshots

* review feedback

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-04-28 18:34:10 -06:00
Nathan Reese
1252b832f4
[Maps] geo_shape fit to bounds (#64303)
* [Maps] geo_shape fit to bounds

* handle results that cross dateline

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-04-27 14:03:47 -06:00
Nathan Reese
399df75821
[Maps] update LayerWizard previewLayer to take layerDescriptor instead of ISource (#64461)
* more changes

* remove unused state argument

* revert change to make diff easier to follow

* migrate pew pew source to new previewLayer

* remove createDefaultLayer from ISource

* migrate EMS boundaries layer wizard

* convert ems tms layer wizard to previewLayer

* convert kibana base map to preview layer

* convert all other sources to previewLayer

* tslint clean-up

* remaining ts lint errors

* i18n clean up

* review feedback

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-04-27 08:50:47 -06:00
Aaron Caldwell
0c8cfa2672
[Maps] Include maps styles in embeddables factory so that they're bundled w/ consuming plugins (#64460) 2020-04-24 20:16:34 -06:00
Aaron Caldwell
97c7127589
[Maps] Migrate Maps embeddables to NP (#63976)
* Migrate maps embeddables. Clean up legacy presence

* Fix type error

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-04-23 16:30:32 -06:00
Nathan Reese
f7ea9b99ba
[Maps] Show spatial filters on map to provide context when for active filters (#63406)
* [Maps] show spatial filters

* pass data into __dataRequests

* extractFeaturesFromFilters

* geo_shape support

* putting it all together

* lower alpha

* update removeOrphanedSourcesAndLayers to avoid removing spatialFiltersLayer

* change array iteration to forEach

* use less precision when distance filter covers larger distances

* fix double import

* add map settings for to configure spatial filters layer

* add map settings alpha slider

* finish rest of map settings

* review feedback

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-04-22 15:10:39 -06:00
Nathan Reese
65264aa790
Set readFromDocValues to false for geo_shape fields (#64014)
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-04-22 14:40:09 -06:00
Alexey Antonov
0a6da70a89
[Regression] Histogram aggregation always shows an error message (#63484)
* WIP [Regression] Histogram aggregation always shows an error message

Closes: #62624

* make getInternalStartServices private

* fix ts issues

* remove createSearchSource from static contract

* fix some jest test

* move searh_source to static contract

* fix types

* fix function tests

* fix jest / add createStartServicesGetter

* fix comments: saved_object_management

* maps: fix PR comments

* maps: update types

* fix heck_published_api_changes

* move searchSource into runtime contract

* cleanup

* fix ts error

* cleanup

* remove extra dependencies

* fix Discover

* fix Discover JEST

* fix PR comments

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-04-22 19:21:14 +03:00
Thomas Neirynck
939bf2a6ec
[Maps] Convert AbstractSource and AbstractLayer to TS (#63533) 2020-04-22 09:19:18 -04:00
Nathan Reese
ea4eb3385b
[Maps] Map settings: min and max zoom (#63714)
* [Maps] Map settings: min and max zoom

* eslint

* header and footer

* zoom range UI

* save session state in mapStateJSON

* disable button when flyout is open

* tslint

* update layer_control jest test

* tslint

* move settings button to top map chrome

* move map_settings_panel to NP

* remove merge conflict artifact

* fix import for NP migration

* remove unused CSS class

* fix path from NP move

* review feedback

* load map settings in embeddable
2020-04-21 16:27:00 -06:00
Aaron Caldwell
2af0c6d47e
[Maps] Migrate remaining maps client files to NP (except routi… (#63859)
* Move actions over

* Move connected components over

* Move components over

* Move selectors over

* Move embeddables over. Set up legacy presence to keep legacy maps embeddables working

* Move angular and services over. Some additional top-level files

* Some file moves. Move styles over to NP

* Handle feature catalogue entry in NP. Add plugin deps to kibana.json

* Move vis registration to NP

* Clean up linting comments. Add linting comments to route controller. Move common to NP

* Add back in i18n context for embeddable

* Fix jest test paths. Fix TS lint errors

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-04-20 16:58:33 -06:00
Nathan Reese
35dab183ab
[Maps] Do not fetch geo_shape from docvalues (#63997) 2020-04-20 15:38:10 -06:00
Nathan Reese
635be640d5
[Maps] fix date labels (#63909)
* [Maps] fix date labels

* review feedback

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-04-20 10:50:54 -06:00
Nathan Reese
420ccffcd6
[Maps] fix term join agg key collision (#63324)
* [Maps] fix term join agg key collision

* fix tslint and jest errors

* fix join functional test

* revert LayerDescriptor union and cast to VectorLayerDescriptor instead

* move getJoinKey out of constants and into its own file

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-04-16 19:22:02 -06:00
Thomas Neirynck
ad41eea211
[Maps] Add 3rd party vector tile support (#62084)
Adds support for adding an external vector tile service to Maps. This is experimental functionality. To enable, add `xpack.maps.enableVectorTiles: true` to the `kibana.yml`configuration file.
2020-04-16 16:26:13 -04:00
Aaron Caldwell
11b6f7fc7d
[Maps] Update remaining client dependencies to NP (#63297)
* Routes dependencies updated (except for routes itself)

* Replace all chrome deps except map controller

* Replace npSetup and npStart with normal plugin init logic. Some clean up

* Bind kibana services in map controller

* Use kibana services in map controller

* Convert remaining deps that aren't critical to legacy operation

* Remove last angular bindings to gis map saved object loader

* Consolidate kibana services in NP

* Some fixes. Remove console logs

* Fix type errors

* Fix jest test path refs

* Accomodate legacy 'hacks' and init services for vis type alias

* Review feedback. Remove/update unused declarations

* getFileUpload actually just needed Component tacked on the end

* Handle visibility of toolbars for full screen mode using new core chrome. Should fix test

* Import source types in getInitialLayers to ensure registry
2020-04-16 05:49:53 -06:00
Nathan Reese
5aa93be77d
[Maps] fix double fetch when filter pill is added (#63024)
* [Maps] fix double fetch when filter pill is added

* remove isDataSyncActive

* set dataMetaAtStart to null instead of deleting

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-04-14 15:41:50 -06:00
Nathan Reese
3623875175
[Maps] fix bug where toggling Scaling type does not re-fetch data (#63326)
* [Maps] fix bug where toggling Scaling type does not re-fetch data

* reset to empty array instead of deleting

* move setting of layer type to action creator instead of side effect of UPDATE_SOURCE_PROP

* review feedback
2020-04-13 15:53:07 -06:00
Thomas Neirynck
a6ecd4c278
[Maps] Add SOURCE_TYPES enumeration (#62975) 2020-04-13 15:33:43 -04:00
Nathan Reese
301b795db6
[Maps] update geospatial filters to use geo_shape query for geo_point fields (#62966)
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-04-13 13:30:18 -06:00
Nathan Reese
69b436e820
[Maps] turn on blended layer for geojson upload (#63200)
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-04-13 11:22:11 -06:00
Thomas Neirynck
bbd501ea51
[Maps] Cleanup sources (#63175)
- Introduces additional TS typing for sources
- Organizes sources in sub-directories by type
- migrates XYZTMSSource to TS
2020-04-13 09:24:16 -04:00
Aaron Caldwell
bc8c4a754d
[File upload] Change 'file_upload' id and refs to 'fileUpload' (#63000) 2020-04-09 15:43:07 -06:00
Nathan Reese
0dd89e388d
[Maps] create NOT EXISTS filter for tooltip property with no value (#62849)
* [Maps] create NOT EXISTS filter for tooltip property with no value

* review feedback
2020-04-09 09:56:11 -06:00
Nathan Reese
bfdccfdbc5
[Maps] Show create filter button for top-term tooltip property (#62461)
* [Maps] Show create filter button top-term tooltip property

* add missing imports

* update import for NP migration

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-04-08 11:22:52 -06:00
Nathan Reese
2023663104
[Maps] Add date-fields to metrics selection (#62629)
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-04-08 10:03:37 -06:00
Nathan Reese
dc013cb80f
[Maps] Allow updating requestType for ESGeoGridSource (#62365)
* [Maps] Allow updating requestType for ESGeoGridSource

* re-add import removed from last merge

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-04-06 21:27:47 -06:00
Nathan Reese
3f11d9c84b
[Maps] do not show circle border when symbol size is zero (#62644)
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-04-06 21:26:55 -06:00
Aaron Caldwell
f80925af97
[Maps] Move layers to np maps (#61877)
* Move layers to new location

* Update layer path refs

* Update np kibana services to cover all required services

* Init np kibana services in legacy plugin. Port init functions to np

* Path updates, supporting file moves, general clean up

* More moves of related files and clean-up of legacy refs

* Path updates. Typescript warning fixes

* Update test paths

* Clean up unused kibana services usage in legacy

* Remove unused http ref

* Test fixes and clean up

* Remove unused snapshots

* Add np service init to embeddables too

* Move validate color picker to NP
2020-04-06 14:01:38 -06:00
Nathan Reese
a5526c8730
[Maps] Safely handle empty string and invalid strings from EuiColorPicker (#62507)
* [Maps] Safely handle empty string and invalid strings from EuiColorPicker

* move RGBA_0000 to constants
2020-04-03 17:57:53 -06:00
Nathan Reese
e202fe7aa3
[Maps] remove MapBounds type (#62332) 2020-04-02 11:04:06 -06:00
Nathan Reese
467f27b600
[Maps] Separate layer wizards for Clusters and heatmap (#60870)
* [Maps] source registry and register seperate clusters and heat map sources

* split into to registries

* add EMS file source

* add geojson upload layer

* register rest of sources

* i18n changes

* ts lint errors

* fix jest test

* fix pew-pew source

* review feedback

* import registires in plugin so they exist in embeddable

* remove order parameter and move all layer registies into single file

* fix functionalt est

* pass constructor to sourceREgistry instead of factory

* review feedback

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-04-01 20:21:18 -06:00
Nathan Reese
1687e8ef5a
[Maps] convert redux store to TS phase 1 (#61704)
* [Maps] convert redux store to TS phase 1

* review feedback

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-03-30 21:56:43 -06:00
Stacey Gammon
65452bddf9
Typescript map embeddable (#61264)
* typescript map embeddable

* Address code review comments and update some usages in SIEM and uptime to the new types

* More clean up - carry over some of the SIEM types to maps for render tool tip

* Address more review comments
2020-03-26 16:14:23 -04:00