grafana / grizzly

A utility for managing Jsonnet dashboards against the Grafana API

Home Page:https://grafana.github.io/grizzly/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

"apply" does not create folders before dashboards

shettich opened this issue · comments

When I try apply with a new dash and a new folder, it first tries to create the dashboard, and that fails when it can't find the folder.

It should create the folders first.

FWIW, I did a quick check, and adding support for sort.Sort() (Len/Swap/Less) to the Resources type (sorting by Kind()), and then sorting at the start of Apply() makes it work

This PR #162 should have resolved this issue.

Also a dupe of #143