Unable to add the same issue as a causer and a reducer #37

rgoraya opened this Issue Feb 13, 2012 · 2 comments

1 participant


Unable to add the same issue as a causer and a reducer.
As reported by Rene Slykhous: I tried adding plate tectonic movement in causes and reduces for the two issues “greenhouse earth” and “ice house earth”. It would not add and displayed the error message.

@rgoraya rgoraya was assigned Feb 13, 2012
Reason why this was happening:
  • Since when we started, we only had two types of relationships (causes and effects), the validation in relationship model was only checking the uniqueness of issue_id and cause_id combination.
  • Therefore, the recently added relationship_type was being ignored.
  • Included relationship_type to the scope of uniqueness. In other words now the combination issue_id + cause_id + relationship_type is checked for uniqueness.

Fixed, closing

@rgoraya rgoraya closed this Feb 14, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment