An automatic group of group owners

Is there a way to have an automatic group which contains all group owners, in much the same way as @staff works?

I’d like to make all my group owners TL2, and to keep track of them as my site (hopefully) grows quickly. Also I want to change their powers as a group as time goes on, as well as communicate with them and have a category for them. I don’t want to make them all mods as they aren’t ready for that.

In the meantime, I can do this manually; however as our tightly managed Forum grows an automatic group would become more and more helpful.

Alternatively, how hard would this be to do as a plugin?

7 إعجابات

لقد قمت للتو بتطبيق Creating triggered custom badge queries لتحديد مالكي المجموعات الحاليين.

الاستعلام SQL موجود هنا (يمكن استخدامه في Data Explorer أيضًا)

SELECT DISTINCT user_id, owner, CURRENT_TIMESTAMP granted_at
FROM group_users
WHERE group_users.owner = true

يستخدم CURRENT_TIMESTAMP لأنه لا يوجد طابع زمني مناسب ومريح لملكية المجموعة في قاعدة البيانات على حد علمي. لا يوجد مشغل مناسب أيضًا لذلك يمكن حذف الشيء :backfill.

أقترح هذا الإعداد:

  1. تشغيل استعلام الإلغاء يوميًا
  2. المشغل: التحديث يوميًا
  3. لست متأكدًا بشأن “يمكن منحه عدة مرات”
    يتم تشغيل الاستعلام مرة واحدة فقط لكل مستخدم لذلك لن يتم منح عدة مرات. ولكن قد يكون من الضروري منح الشارة مرة أخرى بعد إلغائها - لست متأكدًا!
4 إعجابات