#community-help

Possible `groupBy` Bug and Unintentional Result Disappearance

TLDR Bruno identified a potential bug with groupBy that could be causing some results to vanish. Jason agreed to discuss privately and Bruno flagged important considerations about parameters affecting pagination.

Powered by Struct AI

1

3
30mo
Solved
Join the chat
Aug 06, 2021 (30 months ago)
Bruno
Photo of md5-0ca37054c6c9042aa04fcfb92cc7d99c
Bruno
04:52 PM
So I think I found a bug with groupBy making some results disappear. It could be related to our dataset. I have here some screenshots and examples, but perhaps it's best to discuss this in private rather than on a GitHub bug?
Jason
Photo of md5-8813087cccc512313602b6d9f9ece19f
Jason
04:53 PM
Sure, feel free to DM me
Bruno
Photo of md5-0ca37054c6c9042aa04fcfb92cc7d99c
Bruno
05:33 PM
Two things for anyone who's reading: keep an eye on groupLimit parameter, because it defaults to 3.
Also, when grouping is in use, perPage will apply to the number of groups found, not total rows, so that pagination works properly. Mr. Bosco was awesome helping me with this.

1