appheap/TASE

Fix a bug in interaction counting

Closed this issue · 0 comments

Like and Dislike are two interactions that can be toggled. This causes a bug in counting the interactions; let's say that after liking an audio file, the interaction counting job was run and counted the newly created interaction. Until now everything is normal, however, the second we toggle the like one more time, it is considered as a new like or dislike which is incorrect. Obviously, this is not expected behavior and must be fixed. To resolve this, when an interaction is toggled, it is better to create a Had edge from that that interaction vertex to the audio vertex. And, in the counting section, the had edges should be counted as negative and subtracted from the value in the database.