Dashboards/API: Keep original when conversion fails (#109912)
* keep original * openapi * update tests * workspace * workspace * fix ts * merge main * update snapshots
This commit is contained in:
@@ -15,6 +15,8 @@ type DashboardConversionStatus struct {
|
||||
// The version which was stored when the dashboard was created / updated.
|
||||
// Fetching this version should always succeed.
|
||||
StoredVersion *string `json:"storedVersion,omitempty"`
|
||||
// The original value map[string]any
|
||||
Source interface{} `json:"source,omitempty"`
|
||||
}
|
||||
|
||||
// NewDashboardConversionStatus creates a new DashboardConversionStatus object.
|
||||
|
||||
@@ -272,6 +272,13 @@ func schema_pkg_apis_dashboard_v0alpha1_DashboardConversionStatus(ref common.Ref
|
||||
Format: "",
|
||||
},
|
||||
},
|
||||
"source": {
|
||||
SchemaProps: spec.SchemaProps{
|
||||
Description: "The original value map[string]any",
|
||||
Type: []string{"object"},
|
||||
Format: "",
|
||||
},
|
||||
},
|
||||
},
|
||||
Required: []string{"failed"},
|
||||
},
|
||||
|
||||
@@ -15,6 +15,8 @@ type DashboardConversionStatus struct {
|
||||
// The version which was stored when the dashboard was created / updated.
|
||||
// Fetching this version should always succeed.
|
||||
StoredVersion *string `json:"storedVersion,omitempty"`
|
||||
// The original value map[string]any
|
||||
Source interface{} `json:"source,omitempty"`
|
||||
}
|
||||
|
||||
// NewDashboardConversionStatus creates a new DashboardConversionStatus object.
|
||||
|
||||
@@ -264,6 +264,13 @@ func schema_pkg_apis_dashboard_v1beta1_DashboardConversionStatus(ref common.Refe
|
||||
Format: "",
|
||||
},
|
||||
},
|
||||
"source": {
|
||||
SchemaProps: spec.SchemaProps{
|
||||
Description: "The original value map[string]any",
|
||||
Type: []string{"object"},
|
||||
Format: "",
|
||||
},
|
||||
},
|
||||
},
|
||||
Required: []string{"failed"},
|
||||
},
|
||||
|
||||
@@ -15,6 +15,8 @@ type DashboardConversionStatus struct {
|
||||
// The version which was stored when the dashboard was created / updated.
|
||||
// Fetching this version should always succeed.
|
||||
StoredVersion *string `json:"storedVersion,omitempty"`
|
||||
// The original value map[string]any
|
||||
Source interface{} `json:"source,omitempty"`
|
||||
}
|
||||
|
||||
// NewDashboardConversionStatus creates a new DashboardConversionStatus object.
|
||||
|
||||
@@ -1353,6 +1353,13 @@ func schema_pkg_apis_dashboard_v2alpha1_DashboardConversionStatus(ref common.Ref
|
||||
Format: "",
|
||||
},
|
||||
},
|
||||
"source": {
|
||||
SchemaProps: spec.SchemaProps{
|
||||
Description: "The original value map[string]any",
|
||||
Type: []string{"object"},
|
||||
Format: "",
|
||||
},
|
||||
},
|
||||
},
|
||||
Required: []string{"failed"},
|
||||
},
|
||||
|
||||
@@ -15,6 +15,8 @@ type DashboardConversionStatus struct {
|
||||
// The version which was stored when the dashboard was created / updated.
|
||||
// Fetching this version should always succeed.
|
||||
StoredVersion *string `json:"storedVersion,omitempty"`
|
||||
// The original value map[string]any
|
||||
Source interface{} `json:"source,omitempty"`
|
||||
}
|
||||
|
||||
// NewDashboardConversionStatus creates a new DashboardConversionStatus object.
|
||||
|
||||
@@ -1360,6 +1360,13 @@ func schema_pkg_apis_dashboard_v2beta1_DashboardConversionStatus(ref common.Refe
|
||||
Format: "",
|
||||
},
|
||||
},
|
||||
"source": {
|
||||
SchemaProps: spec.SchemaProps{
|
||||
Description: "The original value map[string]any",
|
||||
Type: []string{"object"},
|
||||
Format: "",
|
||||
},
|
||||
},
|
||||
},
|
||||
Required: []string{"failed"},
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user