Skip to content

[Maps] Do not use MAP_SAVED_OBJECT_TYPE constant when defining URL paths #69400

@nreese

Description

@nreese

The constant MAP_SAVED_OBJECT_TYPE is being used for multiple meanings

  1. saved object type
  2. defining the path of a route at https://github.com/elastic/kibana/blob/master/x-pack/plugins/maps/public/maps_vis_type_alias.js#L31 and https://github.com/elastic/kibana/blob/master/x-pack/plugins/maps/common/constants.ts#L35

Even though both uses use the same string, they are not the same concepts and MAP_SAVED_OBJECT_TYPE should be split into two constants to clearly define the concepts for each value.

Metadata

Metadata

Assignees

Labels

Team:GeoFormer Team Label for Geo Team. Now use Team:Presentationchore

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions