[wp-meta] [Making WordPress.org] #3962: Tracbot: Delete slack posts when the related trac ticket is deleted.

Making WordPress.org noreply at wordpress.org
Tue Nov 27 23:56:25 UTC 2018


#3962: Tracbot: Delete slack posts when the related trac ticket is deleted.
---------------------------+---------------------
 Reporter:  peterwilsoncc  |       Owner:  (none)
     Type:  defect         |      Status:  new
 Priority:  low            |   Milestone:
Component:  Slack & IRC    |  Resolution:
 Keywords:                 |
---------------------------+---------------------
Changes (by dd32):

 * priority:  normal => low


Comment:

 Unfortunately Trac doesn't have any webhook-type system to detect ticket
 deletions, which makes this a little more complicated.

 The push notifications to Slack actually occur through an Trac Email which
 gets processed by a PHP script which then sends the data out.

 Other complications include the fact that if you delete a ticket, a
 replacement ticket can take that number, you'd have to avoid removing all
 ticket references to #12345 and instead target `#12345: I'm spam`

 There's a few options:
 1. Since this is usually only the most recent tickets, run a cronjob every
 5 minutes which checks the latest few tickets match their Slack messages
 1. Hook in to the ticket deletion page with JS and run a callback upon the
 button being clicked (It'd probably have to call a w.org script and queue
 up a job to run in ~10 seconds to check the ticket was actually deleted)
 which goes in to delete the messages
 1. Add a tool to w.org somewhere for privileged users to delete ticket
 references or slack messages.
 1. Grant Slack `Admin` rights to more users so that they can clean up spam
 as needed.

 Some of those are more viable than others, No 2 is probably the most ideal
 option here.

-- 
Ticket URL: <https://meta.trac.wordpress.org/ticket/3962#comment:2>
Making WordPress.org <https://meta.trac.wordpress.org/>
Making WordPress.org


More information about the wp-meta mailing list