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 Me gusta

Acabo de implementar un Creating triggered custom badge queries para identificar a los propietarios de grupos actuales.

La SQL para ello está aquí (también se puede usar en Data Explorer)

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

Utiliza CURRENT_TIMESTAMP ya que no hay una marca de tiempo conveniente para la propiedad del grupo en la base de datos que pueda ver. Tampoco hay un disparador agradable, por lo que se puede omitir la cosa :backfill.

Sugiero esta configuración:

  1. Ejecutar la consulta de revocación diariamente
  2. Disparador: Actualizar diariamente
  3. No estoy seguro sobre ‘Se puede otorgar varias veces’
    La consulta solo se dispara una vez para cada usuario, por lo que no se otorgarán varias veces. Pero podría ser necesario que la insignia se otorgue nuevamente una vez revocada, ¡no estoy seguro!
4 Me gusta