« Belle réponse » est un badge intégré attribué pour recevoir au moins 10 likes sur une réponse. J’ai quatre utilisateurs qui ont reçu plus de 10 likes sur une réponse, mais un seul d’entre eux possède le badge « Belle réponse ». Pourquoi ?
Je réalise que « Belle réponse » fait partie du groupe « publication », avec « Bonne réponse » et « Grande réponse », mais les trois utilisateurs qui n’ont pas le badge ne possèdent aucun badge de ce groupe, ce qui n’explique donc pas la situation.
J’ai activé les badges et exécuté le travail des badges à l’adresse /sidekiq/scheduler, juste pour être sûr.
Pour tenter de déboguer, j’ai adapté le code SQL du badge « Belle réponse » pour l’exécuter dans l’Explorateur de données, et il trouve bien mes quatre utilisateurs ayant 10 likes ou plus :
SELECT p.user_id, p.id post_id, p.updated_at granted_at
FROM posts p
WHERE p.post_number > 1 and p.like_count > 10
Are they not receiving it at all? Because there is a small bug, which doesn’t let you know that you have received the badge, but you can see it if you go to Profile > Badges
I have had this, the date of April 2017 is given because that is when the post that received its 10th like or in your case 25 for a good reply (albeit only given yesterday or today) was originally posted.
They are not receiving it at all, as far as I can tell. I’m looking at /u/username/badges. It’s not just a matter of an unexpected date. I think my methodology is correct because I see the badge for 1 out of 4 users.
Yes, it’s public. I don’t see a difference between the topic in which the one successful user posted, and the topics in which the unsuccessful three users posted.