Hello, I am trying to figure out the best strategy for moving an entity definition from one location in git to another with the least amount of lag/period with missing data in the catalog. This could be from one repo to a different repo in the same github org, different github org or different github enterprise instance.
When we have tried to experiment with this and the behavior seems to vary. When we delete the yaml definition from the original location and then wait for the entity to be orphaned and removed and then add the new yaml in the new location, it seems to work but it requires waiting a couple of cycles for the entity to be orphaned and then removed before we can re-add the entity definition elsewhere and then waiting another few cycles before it appears. We need to do these ideally in an automated fashion for multiple entities so this would not be feasible. If we remove it from the original and add it immediately to the new or add the new one before deleting it (and creating a conflict), it never seems to accept the new entity location even once the orphaned original entity has been unregistered. I have been digging through the code but havent determined exactly why that is.
We are currently on backstage version 1.23.0. We have considered perhaps using the EventBroker but it looks like its up for deprecation. What do you recommend as the best approach for migrating the entity yaml definitions over with minimized lag time?