Champ de requête verrouillé pour les badges système

Voici mon premier sujet depuis que je suis membre ici il y a 222 jours.

  1. Comment copier-coller ce code ?

  2. Je souhaite attribuer un badge pour 25 invitations réussies. Je dois donc simplement modifier la valeur HAVING COUNT (*) >= 5 en HAVING COUNT (*) >= 25 et attribuer également un badge de type Or. Est-ce correct ?

J’ai trouvé un sujet similaire "Promoter" Badge broken?, mais je veux juste confirmer, car je ne comprends pas vraiment le code.

Désolé pour ma question stupide.

1 « J'aime »

Here are the steps for enabling the SQL Badge Queries

6 « J'aime »

Thank you Cpradio, yes I have enabled the SQL within 3 days, but its still locked.
I believe its for security purpose.
I tried to explore the Github too, but still does not know how to find the code line.

1 « J'aime »

You can find the badge query SQL here: discourse/lib/badge_queries.rb at main · discourse/discourse · GitHub

5 « J'aime »

Thank you very much Simon.
I put wrong keyword in searching the code in the repository.
After I found the sql query, I still confuse.

I want to open another support topic, to make another question relating to this.
Thank you.

1 « J'aime »

This topic was automatically closed after 33 hours. New replies are no longer allowed.