Badges having same key but being applied to different node types (table vs column) overriding each other when publishing #2128
Labels
stale
status:needs_reproducing
For bugs that need to be reproduced in order to get fixed
type:bug
An unexpected problem or unintended behavior
Current Behaviour
In case we have two badges having the same "key" and different "category", they are over-ridden at the time of publishing based on the one that get's published last. E.g I have a table badge having "PII" and a column badge having key "PII". If I was to do something as following, it would update the category of the same badge without recognising that they are two different badges (meant for different entities).
.
.
.
Expected Behaviour
Ideally, the uniqueness check of badges should also consider the category or the type of the node / entity (column vs table) it is being applied to. Otherwise, column badges could override table badges and vice versa etc.
Possible Solution
The workaround that I am currently considering to use is to use a different/unique name of table or column badge but doesn't seem ideal.
Steps to Reproduce
Screenshots (if appropriate)
Context
Yes, we have a scenario where we have a table and a column badge having the same name. A change in ordering of badge creation (during some refactoring) caused the relevant "table" badge to disappear from the home page as they category of that badge was changed from "compliance" to "column" (and we don't display column badges on our home screen).
Your Environment
The text was updated successfully, but these errors were encountered: