@grafana/async-query-data
Advanced tools
Comparing version 0.0.2 to 0.0.3
@@ -27,5 +27,6 @@ import React, { useState, useEffect } from 'react'; | ||
}; | ||
const isQueryValid = props.isQueryValid(props.query); | ||
return /* @__PURE__ */ React.createElement(HorizontalGroup, null, /* @__PURE__ */ React.createElement(Button, { | ||
icon: running ? void 0 : "play", | ||
disabled: running, | ||
disabled: running || !isQueryValid, | ||
onClick: onRunQuery | ||
@@ -32,0 +33,0 @@ }, running && !stopping ? /* @__PURE__ */ React.createElement(HorizontalGroup, null, /* @__PURE__ */ React.createElement(Spinner, null), " Running") : "Run"), /* @__PURE__ */ React.createElement(Button, { |
@@ -25,2 +25,3 @@ import { DataQuery, DataSourceJsonData, DataSourceInstanceSettings, DataQueryRequest, DataQueryResponse, LoadingState } from '@grafana/data'; | ||
onCancelQuery: (query: TQuery) => void; | ||
isQueryValid: (query: TQuery) => boolean; | ||
query: TQuery; | ||
@@ -27,0 +28,0 @@ state?: LoadingState; |
@@ -676,5 +676,6 @@ 'use strict'; | ||
}; | ||
const isQueryValid = props.isQueryValid(props.query); | ||
return /* @__PURE__ */ React__default["default"].createElement(ui.HorizontalGroup, null, /* @__PURE__ */ React__default["default"].createElement(ui.Button, { | ||
icon: running ? void 0 : "play", | ||
disabled: running, | ||
disabled: running || !isQueryValid, | ||
onClick: onRunQuery | ||
@@ -681,0 +682,0 @@ }, running && !stopping ? /* @__PURE__ */ React__default["default"].createElement(ui.HorizontalGroup, null, /* @__PURE__ */ React__default["default"].createElement(ui.Spinner, null), " Running") : "Run"), /* @__PURE__ */ React__default["default"].createElement(ui.Button, { |
{ | ||
"name": "@grafana/async-query-data", | ||
"version": "0.0.2", | ||
"version": "0.0.3", | ||
"description": "Async query support for Grafana", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
# Async Query | ||
This library provides frontend support for handling queries in an asynchronous manner. It requires a backend that can handle asynchronous queries. | ||
## Frontend configuration | ||
see the ./src folder | ||
## Drone configuration | ||
Drone signs the Drone configuration file. This needs to be run everytime the drone.yml file is modified. See https://github.com/grafana/deployment_tools/blob/master/docs/infrastructure/drone/signing.md for more info. | ||
To update the drone file run (note that you need to export your `DRONE_TOKEN` before): | ||
``` | ||
drone --server https://drone.grafana.net sign --save grafana/grafana-async-query-data-js | ||
``` |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
172594
1415
4