Workspace
entity-validation
📜 Description
When an entity with either missing kind or an empty metadata field is validated, the plugin errors out, instead of reporting proper errors.
👍 Expected behavior
The plugin should properly flag missing kind and metadata to be a proper object type.
👎 Actual Behavior with Screenshots
It errors out instead of reporting the missing field.
When kind is missing ->

When metadata property is present without any content ->

👟 Reproduction steps
- Go to entity validation plugin screen.
- Try to validate an entity with
kind or metadata key value missing.
📃 Provide the context for the Bug.
This bug doesn't flag an incorrect entity properly. This happens because the humaizeEntityRef from @backstage/plugin-catalog-react package expects entitiyRef.kind & entityRef.metadata.namespace to be available, even with the defaults provided.
👀 Have you spent some time to check if this bug has been raised before?
🏢 Have you read the Code of Conduct?
Are you willing to submit PR?
Yes I am willing to submit a PR!