plugins schema, merge_requests, tickets*: factorisation
Dode common in plugins using schema have been factorised in pubsub schema plugin, and filters users in tickets handling have been renamed in a more generic way and put there too. "reporter*" fields in tickets have been renamed to "author*" as it is a more generic term which can be used elsewhere. The use of new utils.partial function make easy the creation of simple plugins using schema.
This commit is contained in:
parent
a979fce2fc
commit
3e76e826d0
1 changed files with 222 additions and 169 deletions
|
|
@ -71,9 +71,9 @@ class TicketsImportPlugin(object):
|
|||
'body': main description of the ticket
|
||||
'created': date of creation (unix time)
|
||||
'updated': date of last update (unix time)
|
||||
'reporter': full name of reporter
|
||||
'reporter_jid': jid of reporter
|
||||
'reporter_email': email of reporter
|
||||
'author': full name of reporter
|
||||
'author_jid': jid of reporter
|
||||
'author_email': email of reporter
|
||||
'assigned_to_name': full name of person working on it
|
||||
'assigned_to_email': email of person working on it
|
||||
'cc_emails': list of emails subscribed to the ticket
|
||||
|
|
|
|||
Loading…
Reference in a new issue