Closed chengyanQtl closed 2 years ago
@Gauravshah This PR seems to be functional from the screenshot. Any plans on getting it merged?
This would be a really helpful feature to optimize the usage of metaqueries datasource since as of now each metaqueries query requires 2 data fetching queries to fetch the data to be operated upon, every time the panel is refreshed. Using a template variable to get one of the value for the arithmetic operation would half the number of those needlessly recurring queries.
Hi, any update on getting this unblocked?
@chengyanQtl When I directly add the modification to my branch, it works, however pulling your branch breaks nested meta queries. could you please check ?
Also please include src/datasource.js
Issue: #11 Method: Replacing the template variable in expression with its current value when query before the expression evaluated. Attention: Only support variable format $varname with greedy matching for now. I am a newbie of javascript. Any modify are always welcome. Result: