stefankroes / ancestry

Organise ActiveRecord model into a tree structure
MIT License
3.71k stars 458 forks source link

Changes to update_descendants_with_new_ancestry #634

Closed kbrock closed 1 year ago

kbrock commented 1 year ago

Decided to continue skipping updates if the ancestry is deemed not valid. It can only get this way if a user intentionally skips validations.

Not sure the desired behavior if something is corrupting ancestor's ancestry value. I can see reason why we may want to propagate these changes. For now, keeping this skip updates check in place