hagen1778 / grafana-import-export

shell scripts for importing and exporting Grafana's dashboards and datasources
158 stars 62 forks source link

Refactor exporter and retrying failed creates as update #6

Closed morganchristiansson closed 6 years ago

morganchristiansson commented 6 years ago

Simplifies exporter with a single code path that handles both importing all and importing specific files, result has less duplication and simpler to follow/work with.

Also failed creation results in retry as update with $id

hagen1778 commented 6 years ago

Well done! Thank you for imporvments!