In a support discussion regarding badges not being awarded, Umbrella reported that while the “preview granted badges” feature displays users correctly, the actual badge granting process fails despite daily updates being enabled. sam suggested manually triggering the Jobs::BadgeGrant task via the Sidekiq scheduler and checking logs for errors. Umbrella shared a database error indicating a duplicate key violation on the user_badges table. Upon reviewing the error, sam identified the root cause: badge 104 was missing the “Query targets posts” setting. Umbrella confirmed that enabling this option resolved the issue, and the badges are now awarding correctly.
The badge system has been a big hit on our forums, but I’ve encountered a small issue. I’ll admit, I’m not the most savvy and my permissions for the forums end forum-side as an administrator.
There are a couple of badges that I can “preview granted badges” perfectly well (and it shows a healthy list of users) but it doesn’t award those badges. I also made sure I had update daily selected! My guess is that the query is snagging somewhere, but everything I’ve learned is from Discourse meta! I’ve tried to read up on other issues on Discourse meta, but none of them seem to solve my problem (or they do and I’m failing to interpret that they’re the solution )