Mercurial > libervia-backend
diff src/plugins/plugin_tickets_import.py @ 2471:544c4d2fec45
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.
author | Goffi <goffi@goffi.org> |
---|---|
date | Fri, 12 Jan 2018 15:58:54 +0100 |
parents | 91bbad17fd53 |
children | 0046283a285d |
line wrap: on
line diff
--- a/src/plugins/plugin_tickets_import.py Fri Jan 12 15:45:37 2018 +0100 +++ b/src/plugins/plugin_tickets_import.py Fri Jan 12 15:58:54 2018 +0100 @@ -71,9 +71,9 @@ '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