馃殌 Feature: Remove entities from old EntityProviders by default #18067
Labels
area:catalog
Related to the Catalog Project Area
enhancement
New feature or request
help wanted
Help/Contributions wanted from community members
will-fix
We will fix this at some point
Milestone
馃敄 Feature description
Deleting(uninstalling) an entityProvider or changing the EntityProvider name cause Entities to remain in the catalog unless manually removed. This causes hard to debug issues for users that for example move to a new Entity Provider or change their Entity Provider name leading to reference issues as the
source_key
(EntityProvider name) in therefresh_state_references
table still remain. This manifest itself as deletion/sync issues as the Entity is "owned" by a provider which is in reality no longer in use so the entity will not be managed any longer.鉁岋笍 Possible Implementation
Change the default startup behaviour of the Catalog to remove entities from EntityProviders that are no longer installed.
This will work for most users but will be undesirable if you shard your ingestion and have a subset of EntityProviders installed on some backends only. This could be mitigated by having a config flag to disable this behaviour.
Initially we could add said config flag but default it to false to retain the old behaviour and potentially avoid having to introduce a breaking change in the catalog.
馃憖 Have you spent some time to check if this feature request has been raised before?
馃彚 Have you read the Code of Conduct?
Are you willing to submit PR?
No, I don't have time to work on this right now
The text was updated successfully, but these errors were encountered: