Ancestor group scopes with limits
The ancestor group scopes don't handle limit
. This produces unexpected behavior. It does however match the behavior of the recursive queries which is why we haven't noticed an issue yet.
First noticed at !74606 (comment 739551716)
There may be a similar issue for descendant queries.