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:
dal 2025-08-22 10:20:33 -06:00
parent 7229faea25
commit 49e072979c
No known key found for this signature in database
GPG Key ID: 16F4B0E1E9F61122
1 changed files with 2 additions and 0 deletions

View File

@ -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 {