grafana/pkg/registry/apis/dashboard/legacy
Ryan McKinley 680e6bc1f8
Authlib: Use types package rather than claims (#99243)
2025-01-21 12:06:55 +03:00
..
testdata Storage: Show history+trash using the list command (#99009) 2025-01-17 15:54:25 +03:00
README.md
client.go Search: Remove history query (#99026) 2025-01-15 12:49:47 -06:00
context.go K8s/Dashboards: Pass the legacy internal ID into labels (#98311) 2024-12-20 21:33:49 +02:00
queries.go LibraryPanels: Expose library panels in dashboard apiserver (#92213) 2024-08-27 12:12:22 +03:00
queries_test.go SQLTemplate: Make Ident only work for identifiers (not any string) (#92387) 2024-08-27 13:22:40 +03:00
query_dashboards.sql Storage: Show history+trash using the list command (#99009) 2025-01-17 15:54:25 +03:00
query_panels.sql LibraryPanels: Expose library panels in dashboard apiserver (#92213) 2024-08-27 12:12:22 +03:00
sql_dashboards.go Authlib: Use types package rather than claims (#99243) 2025-01-21 12:06:55 +03:00
storage.go Authlib: Use types package rather than claims (#99243) 2025-01-21 12:06:55 +03:00
token.go
types.go Dashboards: Add v1alpha1 and v2alpha1 conversion (#96415) 2024-11-15 15:49:45 -05:00
utils.go
utils_test.go

README.md

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!

  1. 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
  1. Results are always sorted by internal id ascending
  • this ensures everything is returned