This PR lays the foundation to convert JSON to code, starting with an implementation in Go.
There are still more things to do:
[ ] tests
[x] take advantage of #560 to more efficiently unmarshal (and convert) dataqueries
[ ] implement for other languages (the current conversion process works for Go, but it will most likely need some tweaks to fully support other languages... disjunctions, I'm especially looking at you)
[x] Options with no arguments aren't converted?
Editable() on dashboard
Instant() on prometheus queries
...
[x] skip options whose value is the default one: kinda done → for scalars only (simplest case to detect)
Contributes to #314
This PR lays the foundation to convert JSON to code, starting with an implementation in Go. There are still more things to do:
Editable()
on dashboardInstant()
on prometheus queries