grafana / gel-app

Experimental Grafana Backend Expressions/Transform Plugin (GEL)
Apache License 2.0
2 stars 1 forks source link

Fix error on empty response #21

Open kylebrandt opened 5 years ago

kylebrandt commented 5 years ago

Related to #20 in that this might points towards a different api endpoint.

If you make a GEL query that has no responses, then Respond in grafana/grafana/pkg/api/common.go sees no Frames, and sends a regular response instead of a DataFrame response. This then confuses the front end.

This can be simulated by clicking the "eye" icon to hide all the queries in a GEL query which will return a response like results: {"": {refId: "", series: [], tables: null, frames: {}}} and cause the UI to return Cannot read property 'map' of undefined

ryantxu commented 4 years ago

Is this still an issue?