Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Maps] implement references for saved objects #31745

Merged
merged 10 commits into from Feb 25, 2019

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 [Deprecated-Use Team:Presentation]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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants