Les utilisateurs ne reçoivent pas le badge Nice Reply lorsque la catégorie n'est pas publique

« 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.

Are the posts with 10 likes in public topics? The badge is only granted for public topics.

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.

Good to know though.

I’d like to try to debug this. Is there a way I could run the badge job from the console, maybe with verbose output, to see what it’s thinking?

Is this category “public” enough to earn the Nice Reply badge?

image

No, they need to have “everyone” can “See”. (and not the “Do not grant badges for posts in this category” box but I assume that isn’t your problem)