How does Meta handle the bug reporter badge?

We have a custom badge for that one. :+1: (more info in Create Triggered Custom Badge Queries and Enable Badge SQL)

This is the code for it:

SELECT distinct p.user_id, p.created_at granted_at, post_id
FROM badge_posts p
JOIN topics t ON = p.topic_id
JOIN post_actions pa ON pa.post_id = AND 
      post_action_type_id = (
                SELECT id FROM post_action_types WHERE name_key = 'like'
       ) AND 
       pa.user_id IN (
           SELECT gu.user_id
           FROM group_users gu
           WHERE gu.group_id = ( SELECT id FROM groups WHERE name ilike 'team' ) 
WHERE category_id = (
  SELECT id FROM categories WHERE name ilike 'bug'
) AND p.post_number = 1

(As an added aside, I’ve also created similar ones to work off a specific Reaction from a certain group as well :slight_smile:)