This returns the slug on success, worked fine in Grafana 4.3, and still works in Grafana 4.4.
However:
In the version history, an empty comment is shown. We’d like a descriptive message.
The compare functionality fails when comparing to such a comment-less version (even when only the version number has changed, so absolute minimum number of changes - seems like a bug. It just stalls the browser, waited several minutes)
We could not find in the docs how to add a commit message. We tried:
tDashboard['message']='API Edit by Python script'
print (cli.dashboards.db.create(dashboard=tDashboard, overwrite=False))
Edit the Compare does work, it just takes a very long time. It seems to be related to stripped repeatIteration nodes, which are stripped because this is dynamic data and pollutes our normal VCS, and have no effect on the functionality of the Dashboard.
Can the compare performance be improved in this scenario? (Possibly you could do the same as we do; strip the repeatIteration nodes, since it reduces disk usage and improves the comparison UX tremendously)