-
Notifications
You must be signed in to change notification settings - Fork 14
Conversation
👏 |
10c5930
to
0d3d159
Compare
I wanted to do one more thing, I'm done now. |
Ah memories 😸 . |
@mgrauer This looks great. We agreed Elasticsearch as a source makes sense to have in core Minerva so others can use it. If it makes sense to you I'll implement a very rudimentary backend for This will require adding Following that, I will create analyses specific to the Elasticsearch indices people using Terra will want. Sound good? |
This all sounds good to me. I think it makes the most sense to add that additional endpoint to I think we said that endpoint will do something like
And let me know if you have any better ideas or questions |
My concern with putting that into master is that in general, Elasticsearch indices won't always contain geospatial information. I want to avoid putting anything into core that is specific to a particular domain, Memex HT data in this instance. So if we create the general endpoint which just processes an ES query and puts the resulting JSON into a dataset, then the user can do whatever they want with it. Then in Terra, I will create a specific analysis that takes that dataset and alters it using the code you've mentioned. |
great, makes sense. |
@mgrauer This is ready for review, let me know if the general approach makes sense and feel free to be as nitpicky as you'd like :) |
I don't get the purpose of the elasticsearch dataset endpoint, it seems like it isn't used. Can you remove it and the test? Or else explain its use to me. The way I see it, you have endpoints that do everything you need already, without this other endpoint
|
I'll remove it, I originally added it to follow convention with the WMS endpoints. |
} | ||
metadata['minerva'] = minerva_metadata | ||
self.model('item').setMetadata(dataset, metadata) | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you replace
if 'meta' in dataset:
...
self.model('item').setMetadata(dataset, metadata)
with
minerva_metadata = {
'dataset_type': 'json',
'source_id': params['sourceId'],
'source': 'elasticsearch',
'elasticsearch_params': elasticsearchParams,
'base_url': baseURL
}
updateMinervaMetadata(dataset, minerva_metadata)
?
I know this wasn't very clear.
Will you want to convert this to a romanesco job? If so, please add an issue for that. |
@mgrauer Updated. This look good to you? |
LGTM. |
@danlamanna
Can you QA this? It should give you a good start.
Also nicks the corner of #134 .