Storage: Always set a UID in the apiserver (#96086)

This commit is contained in:
Ryan McKinley
2024-11-12 18:58:32 +02:00
committed by GitHub
parent 7f99e943a6
commit e9956f2345
3 changed files with 16 additions and 4 deletions
+2
View File
@@ -303,6 +303,8 @@ func (s *server) newEvent(ctx context.Context, user claims.AuthInfo, key *Resour
}
if obj.GetUID() == "" {
// TODO! once https://github.com/grafana/grafana/pull/96086 is deployed everywhere
// return nil, NewBadRequestError("object is missing UID")
s.log.Error("object is missing UID", "key", key)
}