To determine in which Go struct to unmarshal a dataquery, cog's runtime currently only looks at the datasource details contained in the panel (if it exists). To make the unmarshalling more accurate, we should also look into the query itself since it can hold a DatasourceRef.
This PR only updates the Go jenny, other languages should mimic this behavior.
To determine in which Go struct to unmarshal a dataquery, cog's runtime currently only looks at the datasource details contained in the panel (if it exists). To make the unmarshalling more accurate, we should also look into the query itself since it can hold a DatasourceRef.
This PR only updates the Go jenny, other languages should mimic this behavior.
Relates to #566 and #560