Merge ~mustafakemalgilor/charm-grafana:bug/1983814 into charm-grafana:master
Status: | Merged | ||||
---|---|---|---|---|---|
Approved by: | Giuseppe Petralia | ||||
Approved revision: | 705dbcf4c964638f84e4d03f1575e7d5dd621dac | ||||
Merged at revision: | 22ccaf7f9b76949809863ba4dd58d0188365410b | ||||
Proposed branch: | ~mustafakemalgilor/charm-grafana:bug/1983814 | ||||
Merge into: | charm-grafana:master | ||||
Diff against target: |
357 lines (+259/-49) 6 files modified
dev/null (+0/-46) src/files/dashboards_backup.py (+86/-0) src/reactive/grafana.py (+2/-2) src/templates/juju-dashboards-backup.j2 (+1/-1) src/tests/unit/test_dashboards_backup.py (+169/-0) src/tox.ini (+1/-0) |
||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Giuseppe Petralia | Approve | ||
Robert Gildein | Approve | ||
BootStack Reviewers | Pending | ||
Review via email: mp+428028@code.launchpad.net |
Commit message
dashboards_backup script compatibility update for Grafana version >=8:
The dashboards_backup script was using Slug API for retrieving the
dashboards, which is deprecated in Grafana version '5.4.0' in favor
of UID API, and removed in version '8.0.0'. Due to that, the backup
script was failing to generate backups in version 8.0.0 and above.
This fix introduces an API switch mechanism between Slug API and
UID API, which allows the script to behave as before for Grafana
(< 8.0.0) and use UID API for Grafana version (>= 8.0.0).
Fixes LP issue #1983814
Description of the change
dashboards_backup script compatibility update for Grafana version >=8:
The dashboards_backup script was using Slug API for retrieving the
dashboards, which is deprecated in Grafana version '5.4.0' in favor
of UID API, and removed in version '8.0.0'. Due to that, the backup
script was failing to generate backups in version 8.0.0 and above.
This fix introduces an API switch mechanism between Slug API and
UID API, which allows the script to behave as before for Grafana
(< 8.0.0) and use UID API for Grafana version (>= 8.0.0).
Fixes LP issue #1983814
This merge proposal is being monitored by mergebot. Change the status to Approved to merge.