Gli utenti non ricevono il badge Nice Reply quando la categoria non è pubblica

“Nice Reply” è un badge integrato che viene assegnato quando si ricevono almeno 10 like su una risposta. Ho quattro utenti che hanno ricevuto più di 10 like su una risposta, ma solo uno di loro ha il badge “Nice Reply”. Perché?

So che “Nice Reply” fa parte del gruppo “posting”, insieme a “Good Reply” e “Great Reply”, ma i tre utenti a cui manca il badge non hanno alcun badge di quel gruppo, quindi questo non spiega il problema.

Ho abilitato i badge e ho eseguito il job dei badge in /sidekiq/scheduler, solo per sicurezza.

Per provare a eseguire il debug, ho adattato la query SQL del badge “Nice Reply” per eseguirla in Data Explorer e effettivamente individua i miei quattro utenti con 10 o più like:

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)