I’m not fully grasping the backfill condition so I am going get Lola Bot to explain. ![]()
AI-generated summary
The discussion revolves around understanding the :backfill condition in Discourse badge queries. Lilly initially expressed confusion, but after JammyDodger and Lola Bot explained it, she gained clarity.
The :backfill condition is a boolean parameter that controls which posts are considered when awarding badges. When :backfill is true, the query runs against all eligible posts, while when it’s false, the query only runs against posts with IDs in the :post_ids list. This allows Discourse to efficiently award badges based on either all historical posts or a small set of recent posts.
According to Sam Saffron, using Update Daily may not require the :backfill condition, making it unnecessary in some cases. JammyDodger plans to review which badge queries actually need the :backfill condition added.
I was trying to get it to trigger on When a user acts on a post, but I think my Reactions may be blocking that somehow? Anyway, Update Daily will work, and is less of a performance concern, I think
Yea it totally makes sense to me now. I think I prefer Sam’s explanation.
Can you explain backfill condition a little bit more Lola?
I think I need to look into which badge queries actually need it adding. I think if you’re using `Update Daily’ it’s not necessary: