grafana / grafana-operator

An operator for Grafana that installs and manages Grafana instances, Dashboards and Datasources through Kubernetes/OpenShift CRs
https://grafana.github.io/grafana-operator/
Apache License 2.0
863 stars 384 forks source link

fix: improve nested folder handling #1600

Closed theSuess closed 2 months ago

theSuess commented 2 months ago

This fixes some issues around the move logic. The underlying issue was the way in which folder existence was checked. As the search folder endpoint does not return nested folders, moving between folders was not possible. This fix prefers matching by UIDs first.

Note that the introduction of nested folders implies that they will only work with folders created by the operator as names no longer need to be unique and the only way to keep track is to use the UID.

Also introduces status conditions for the folder resource to better debug issues.