elixirlabsinc / endslaverynow

Creating the End Slavery Now project
2 stars 0 forks source link

Validating references #22

Open pedanticantic opened 5 years ago

pedanticantic commented 5 years ago

I noticed there's no validation when making links between records, and this can lead to invalid data.

For example, I can set category 1 to be a parent of category 2, and category 2 to be a parent of category 3, and category 3 to be a parent of category 1. You then have a circular references in something that is supposed to be a hierarchy.