mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Storage: raise errors when timestamps cannot be parsed (#79405)
* raise errors when timestamps cannot be parsed * return partial origin info if timestamp parsing fails
This commit is contained in:
@@ -123,7 +123,7 @@ func getLegacyID(item *unstructured.Unstructured) int64 {
|
||||
meta := kinds.GrafanaResourceMetadata{
|
||||
Annotations: item.GetAnnotations(),
|
||||
}
|
||||
info := meta.GetOriginInfo()
|
||||
info, _ := meta.GetOriginInfo()
|
||||
if info != nil && info.Name == "SQL" {
|
||||
i, err := strconv.ParseInt(info.Key, 10, 64)
|
||||
if err == nil {
|
||||
|
||||
Reference in New Issue
Block a user