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

Closed
rgoraya opened this Issue Feb 13, 2012 · 2 comments

1 participant

@rgoraya
Owner

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
@rgoraya
Owner
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.
Fix:
  • Included relationship_type to the scope of uniqueness. In other words now the combination issue_id + cause_id + relationship_type is checked for uniqueness.
@rgoraya
Owner

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