システムバッジのロック済みクエリフィールド

このサイトには222日前に登録したばかりで、これが初めてのトピックです。

  1. このコードをコピー&ペーストする方法は?

  2. 25 件の成功した招待に対してバッジを与えたいと考えています。そのためには、HAVING COUNT (*) >= 5 の値を HAVING COUNT (*) >= 25 に変更し、バッジの種類を Gold に設定すればよいのでしょうか?合っていますか?

似たトピックを見つけました:"Promoter" Badge broken?
コーディングに詳しくないため、確認したくて質問しました。

馬鹿げた質問で申し訳ありません。

「いいね!」 1

Here are the steps for enabling the SQL Badge Queries

「いいね!」 6

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

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

「いいね!」 5

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

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