Merge pull request #9767 from backstage/freben/just-plain-parse

Simplified the `parseEntityRef` function
This commit is contained in:
Fredrik Adelöw
2022-02-24 12:54:51 +01:00
committed by GitHub
6 changed files with 41 additions and 114 deletions
+8
View File
@@ -0,0 +1,8 @@
---
'@backstage/catalog-model': minor
---
**BREAKING**: Simplified the `parseEntityRef` function to _always_ either return
a complete `EntityName`, complete with both kind, namespace and name, or throw
an error if it for some reason did not have enough information to form that
result. This makes its usage and its type declaration vastly simpler.