[wp-meta] [Making WordPress.org] #762: Themes trac: Magic button to automatically assign reviewers the next available ticket (theme) to review if they don't already have a ticket
Making WordPress.org
noreply at wordpress.org
Sat Dec 6 21:04:53 UTC 2014
#762: Themes trac: Magic button to automatically assign reviewers the next
available ticket (theme) to review if they don't already have a ticket
---------------------------+----------------------
Reporter: samuelsidler | Owner: al_the_x
Type: enhancement | Status: assigned
Priority: high | Component: Trac
Resolution: | Keywords:
---------------------------+----------------------
Comment (by al_the_x):
Couple examples of existing XML-RPC implementations:
* http://trac-hacks.org/browser/xmlrpcplugin/0.10/tracrpc/ticket.py
* http://trac-hacks.org/browser/xmlrpcplugin/0.10/tracrpc/search.py
Gonna have to register the method as a Trac Component (like usual plugin
development), implement the `IXMLRPCHandler` interface, and implement
`xmlrpc_namespace` and `xmlrpc_methods`, which `yield`'s a number of
tuples describing the methods exposed by the handler. Each method receives
the Request instance, which will have the `authname` key: either `None` or
a valid Trac username.
From `trac.ticket.model.Ticket.save_changes`, I don't believe that the
`author` is _required_, so we should be able to save the ticket via the
system and bypass the regular permissions system.
--
Ticket URL: <https://meta.trac.wordpress.org/ticket/762#comment:5>
Making WordPress.org <https://meta.trac.wordpress.org/>
Making WordPress.org
More information about the wp-meta
mailing list