grafana/packages/grafana-runtime
Sonia Aguilar b42f973a7a
Alerting: Fix changing datasource and creating new query not using defaults. (#63092)
* Set default query when changing data source or adding new alert query

* Set default query when creating new alert rule

* Set fefault query for cloud and recording rules

* Create hook for getting defaults in AlertRuleForm

* fixing tests

* Use conditionals with 'if' for more clarity and rename lazy to async

* Add loading indicator for default queries

* Fix tests

* Make newModel a sync method and fix tests error

* Use useAsync instead of useEffect for an async call
2023-02-24 13:43:54 +01:00
..
src Alerting: Fix changing datasource and creating new query not using defaults. (#63092) 2023-02-24 13:43:54 +01:00
.eslintrc Update dependency rollup to v3 (#58252) 2023-02-22 14:10:07 +01:00
CHANGELOG.md Prettier: Fix all markdown files and add markdown files to CI verify step (#39776) 2021-09-29 14:34:40 +02:00
LICENSE_APACHE2 Re-license Grafana to AGPLv3 (#33184) 2021-04-20 19:03:30 +02:00
package.json Update dependency rollup to v3 (#58252) 2023-02-22 14:10:07 +01:00
README.md Changelog and Readme: Update packages to beta and add Select breaking change (#24670) 2020-05-14 11:58:26 +02:00
rollup.config.mjs Update dependency rollup to v3 (#58252) 2023-02-22 14:10:07 +01:00
tsconfig.build.json TSLint → ESLint (#21006) 2020-02-08 02:40:04 +01:00
tsconfig.json Build: Introduce ESM and Treeshaking to NPM package builds (#51517) 2022-08-03 15:47:09 +02:00

Grafana Runtime library

@grafana/runtime is currently in BETA.

This package allows access to grafana services. It requires Grafana to be running already and the functions to be imported as externals.