grafana / grafonnet

Jsonnet library for generating Grafana dashboards.
https://grafana.github.io/grafonnet/
Apache License 2.0
352 stars 19 forks source link

refactor: support generic grouping of attributes #55

Closed Duologic closed 1 year ago

Duologic commented 1 year ago

The schema generated library does not align much with what users see in the Grafana UI. To cover for that, we can restructure the generated output so it becomes easier for users to find back the options they see in the UI without having to look at the JSON.

This PR introduces generic helpers to transform a generated library, it also applies this to panels, variables and links, changing the API. Note: the old API is still available so it should not break anything that has been written against it, it does however (re)move all these options in the documentation.

Duologic commented 1 year ago

I've removed the rendered docs so we can review the code first (docs itself are changeset of ~40K LoC)