Merge charm-grafana:dashboard-json into charm-grafana:master
Proposed by
Joe Guo
Status: | Merged |
---|---|
Approved by: | Adam Dyess |
Approved revision: | 5c5a449244ae995995dc6c4814d3e2e187647f62 |
Merged at revision: | 239f891810ed9f7afee1c28de74967aa1b4c6bd8 |
Proposed branch: | charm-grafana:dashboard-json |
Merge into: | charm-grafana:master |
Diff against target: |
63 lines (+27/-8) 2 files modified
src/lib/charms/layer/grafana.py (+26/-8) src/wheelhouse.txt (+1/-0) |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Adam Dyess (community) | Approve | ||
James Hebden (community) | Approve | ||
Review via email: mp+391653@code.launchpad.net |
Commit message
Fix LP1897843: support non-wrapped JSON data and keep backward compatibility
Currently this charm requires dashboard JSON data be wrapped like this:
{
"folderId": 1
}
Actually this is a misuse of the grafana rest api structure.
Dashboard JSON data should include the real data directly.
Refer to LP1897843 for details.
This patch make the code support both formats.
Since most of our dashboard JSON file followed the wrong pattern, we
have to keep backward compatibility until grafana charm upgraded in all clouds.
LP: #1897843
To post a comment you must log in.
This merge proposal is being monitored by mergebot. Change the status to Approved to merge.