Skip to content

Conversation

@nreese
Copy link
Contributor

@nreese nreese commented Feb 21, 2019

This PR adds logic to extract/inject saved object references for map saved objects

Below is a screen shot from map listing page that shows that the saved objects correctly have references populated

screen shot 2019-02-21 at 2 16 07 pm

@nreese nreese added Team:Geo Former Team Label for Geo Team. Now use Team:Presentation Feature:Saved Objects v8.0.0 v7.2.0 labels Feb 21, 2019
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-gis

Copy link
Contributor

@mikecote mikecote left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pulled down and ran locally, the only thing I noticed is the sample data doesn't go through the migrations (x-pack/plugins/maps/server/sample_data). The data files seem to be missing "migrationVersion":{}, but otherwise everything else looks good 👍

@elasticmachine
Copy link
Contributor

💚 Build Succeeded

@elasticmachine
Copy link
Contributor

💔 Build Failed

@elasticmachine
Copy link
Contributor

💚 Build Succeeded

@elasticmachine
Copy link
Contributor

💚 Build Succeeded

…ferences to ensure injectReferences is really working in SavedGisMap
@elasticmachine
Copy link
Contributor

💚 Build Succeeded

@elasticmachine
Copy link
Contributor

💚 Build Succeeded

@elasticmachine
Copy link
Contributor

💚 Build Succeeded

@nreese nreese merged commit 09a459b into elastic:master Feb 25, 2019
nreese added a commit to nreese/kibana that referenced this pull request Feb 25, 2019
* [Maps] implement references for saved objects

* add source to ref name, check that source type is ES_SEARCH or ES_GEO_GRID

* extract out common find reference into a function

* add migration version to sample data objects

* joins are on layer descriptor and not source descriptor

* update one es_archive saved object to have layerListJSON stored in references to ensure injectReferences is really working in SavedGisMap

* update sample data saved objects to include applied migration

* add API test to verify migration is applied when imported saved object
nreese added a commit that referenced this pull request Feb 26, 2019
* [Maps] implement references for saved objects

* add source to ref name, check that source type is ES_SEARCH or ES_GEO_GRID

* extract out common find reference into a function

* add migration version to sample data objects

* joins are on layer descriptor and not source descriptor

* update one es_archive saved object to have layerListJSON stored in references to ensure injectReferences is really working in SavedGisMap

* update sample data saved objects to include applied migration

* add API test to verify migration is applied when imported saved object
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Feature:Saved Objects release_note:enhancement Team:Geo Former Team Label for Geo Team. Now use Team:Presentation v7.2.0 v8.0.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants