Open
Description
Describe the bug
Some Labwhere locations are showing child count incorrectly.
The original bug is described in tis story Y24-225
As part of the research done on Y24-225, it appears that this is a known issue with the Ancestry gem where children_count
is getting out of sync with the actual value.
This issue is raised in the Ancestry repository and the suggested solution is to use rebuild_counter_cache
This fix has already merged (as shown in the CHANGELOG) but has not yet been released. It is expected to be released soon, as mentioned in this comment.
Once the next Ancestry gem release is out, rebuild_counter_cache
can be used, which will hopefully fix this issue
Additional context
Original story - #813