المستخدمون لا يتلقون شارة Nice Reply عندما تكون الفئة غير عامة

إن “رد لطيف” هي شارة مدمجة تُمنح عند الحصول على 10 إعجابات أو أكثر على رد معين. لدي أربعة مستخدمين تلقوا أكثر من 10 إعجابات على رد، لكن أحدهم فقط يحمل شارة “رد لطيف”. لماذا؟

أدرك أن شارة “رد لطيف” جزء من مجموعة “النشر”، إلى جانب شارات “رد جيد” و"رد عظيم"، لكن الثلاثة الذين يفتقرون إلى الشارة لا يحملون أي شارات من هذه المجموعة، لذا فإن هذا لا يفسر الأمر.

لقد قمت بتفعيل الشارات وشغلت مهمة الشارات في /sidekiq/scheduler، فقط للتأكد.

ولمحاولة استكشاف المشكلة وإصلاحها، قمت بتعديل استعلام SQL الخاص بشارة “رد لطيف” لتشغيله في مستكشف البيانات، وقد نجح في العثور على مستخدمينا الأربعة الذين لديهم 10 إعجابات أو أكثر:

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)