dutchcoders / marija

Data exploration and visualisation for Elasticsearch and Splunk.
GNU Affero General Public License v3.0
236 stars 29 forks source link

Field explorer should only retrieve fields of enabled indexes #40

Closed nl5887 closed 6 years ago

Thomas-Kuipers commented 6 years ago

There's a problem with the backend.

If you send the following FIELDS_REQUEST message (for 2 datasources):

{
  "type": "FIELDS_REQUEST",
  "datasources": [
    "blockchain",
    "twitter"
  ]
}

You receive the fields for only 1 of the datasources. This leads to the client having to add the previous fields to the new fields (this currently works). If you want to delete the previous fields when deselecting a datasource, it becomes a bit more tricky, because the client would need to keep track of which field belongs to which datasource. I think it would be better to fix this on the backend, so that when you do a FIELDS_REQUEST for 2 datasources, you get all the fields for those 2 datasources. Makes more sense.

When the backend is done I can update the frontend.