uwazi icon indicating copy to clipboard operation
uwazi copied to clipboard

Relationship to self becomes a ghost

Open txau opened this issue 3 years ago • 2 comments

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.

txau avatar Feb 02 '22 20:02 txau

Related and need to be taken into account during the data model rewrite.

daneryl avatar Feb 08 '22 14:02 daneryl

Will be handled in relationships v2.

LaszloKecskes avatar Oct 10 '23 15:10 LaszloKecskes