mirror of
https://github.com/grafana/grafana.git
synced 2025-07-30 03:22:29 +08:00
This implements a ResourceServer backed by the existing dashboard SQL tables.
There are a few oddities worth noting. This is not a totally accurate implementation, but it is good enough to drive the UI needs and let kubectl list work!
- The resourceVersion is based on internal ID and dashboard version
- can get version from the least significant digits
- avoids duplicate resourceVersions... but not sequential
- the resourceVersion is never set on the list commands
- Results are always sorted by internal id ascending
- this ensures everything is returned