mirror of https://github.com/buster-so/buster.git
fix: add ReportContent variant to VersionContent enum
- Add ReportContent(String) variant to handle report version history - Reports store content as plain strings unlike metrics/dashboards which use YAML - Fixes deserialization error when fetching reports with version history
This commit is contained in:
parent
7229faea25
commit
49e072979c
|
@ -35,6 +35,8 @@ pub enum VersionContent {
|
|||
MetricYml(Box<MetricYml>),
|
||||
#[serde(alias = "dashboard_yml")]
|
||||
DashboardYml(DashboardYml),
|
||||
// For report files that store content as a plain string
|
||||
ReportContent(String),
|
||||
}
|
||||
|
||||
impl From<MetricYml> for VersionContent {
|
||||
|
|
Loading…
Reference in New Issue