stefankroes / ancestry

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

ancestor_ids_in_database removed? #636

Closed znz closed 1 year ago

znz commented 1 year ago

ancestry (4.2.0) has ancestor_ids_in_database, but ancestry (4.3.0) doesn't.

This pull request removes ancestor_ids_in_database.

Is this intentional?

If this is intentional, what is alternative?

kbrock commented 1 year ago

@znz thank you. good find.

I am adding now. Do you have any other issues I can include in this bug fix?

kbrock commented 1 year ago

Hello,

I introduced #637 . I will release this in 4.3.1 and is on the branch 4-3-stable Mostly test changes were cherry picked from other PRs to make a clean backport. I felt more comfortable having those tests

I also added more tests focusing on the in_database and after_last_save. I changed wording for a few internal methods from after_save to after_last_save. I also fixed an edge case with children using ancestry_in_database.

Please let me know if you need anything else.

Thank you again for raising this issue.