grafana / yugabyte-datasource

The Yugabyte data source for Grafana allows you to query and visualize data from YugabyteDB.
https://grafana.com/grafana/plugins/grafana-yugabyte-datasource/
Apache License 2.0
0 stars 0 forks source link

use sqlds and plugin-ui query editor #12

Closed gwdawson closed 5 months ago

gwdawson commented 6 months ago

NOTE: this depends on the following change in the plugin-ui package https://github.com/grafana/plugin-ui/pull/92.

This has been split into 2 separate PRS

[#13] - migrate backend to use sqlds [#14] - use plugin-ui components for frontend


This PR Does The Following:

  1. migrates from a custom backend to now use sqlds
  2. removes the bare-bones text editor and implements a query builder, and query editor with autocomplete.

Testing This Pull Request:

  1. clone plugin-ui and checkout to the gareth/sql-allow-disable-datasets branch.
  2. create a custom build of plugin-ui using yarn build
  3. clone yugabyte-datasource and checkout to the gareth/experiment-using-sqlds branch.
  4. in package.json add a resolution for plugin-ui and point it to your custom build.
    "resolutions": {
    "@grafana/plugin-ui": "file:../plugin-ui"
    },
  5. install all dependencies, and run the datasource.
gwdawson commented 5 months ago

closing this pr as both frontend and backend have now been merged.