uwazi
uwazi copied to clipboard
Relationship to self becomes a ghost
An entity can create a relationship to itself in the relationship editor. The input gets validated and added to the database but the relationship won't show in the tree. this has no side effects apart from adding ghost entries to the database. These entries get deleted if the entity is deleted, so no drama.
It is unclear to me if entities should be able to reference themselves. While it can make sense for text references I don't see the point when it comes to relationships or inheritance. Either we validate this scenario and prevent the users from recording these entries, or we allow this possibility and reflect it in the tree.
Related and need to be taken into account during the data model rewrite.
Will be handled in relationships v2.