Collaborators for threads, lock as a utility
This patch includes a slight database migration, and adjusts the functionality of a few core components. * Move collaborators from the ticket to the thread. This concept allows collaborators on any object which has a thread, including tasks. * Add flags to the thread entry This will allow flagging thread entries for different purposes. Initially this can be used to flag the original message of a thread in case a ticket / thread is created without an initial message. * Lock becomes more of a utility The lock is now disconnected from the ticket and is a separate utility. Separately, the ticket and task objects can have a reference to a lock object. Furthermore, when submitting some activities to tickets, the lock is verified to be owned by the respective agent, and the lock code must match a current lock code. The code is rotated on each acquire() call to guard against double submissions. * Collaborator is an ORM model The TicketUser class is broken up now so that the collaborator instance can exist apart from a ticket. Email message ids are now generated for collaborators without respect for a ticket so that collaborators can be properly supported on any thread.
Showing
- bootstrap.php 2 additions, 2 deletionsbootstrap.php
- include/ajax.tickets.php 9 additions, 4 deletionsinclude/ajax.tickets.php
- include/class.attachment.php 1 addition, 1 deletioninclude/class.attachment.php
- include/class.client.php 21 additions, 51 deletionsinclude/class.client.php
- include/class.collaborator.php 84 additions, 102 deletionsinclude/class.collaborator.php
- include/class.cron.php 1 addition, 3 deletionsinclude/class.cron.php
- include/class.export.php 2 additions, 2 deletionsinclude/class.export.php
- include/class.file.php 9 additions, 3 deletionsinclude/class.file.php
- include/class.lock.php 31 additions, 22 deletionsinclude/class.lock.php
- include/class.mailer.php 1 addition, 1 deletioninclude/class.mailer.php
- include/class.misc.php 0 additions, 1 deletioninclude/class.misc.php
- include/class.orm.php 64 additions, 18 deletionsinclude/class.orm.php
- include/class.task.php 4 additions, 0 deletionsinclude/class.task.php
- include/class.thread.php 59 additions, 34 deletionsinclude/class.thread.php
- include/class.ticket.php 76 additions, 25 deletionsinclude/class.ticket.php
- include/class.user.php 23 additions, 0 deletionsinclude/class.user.php
- include/staff/ticket-view.inc.php 18 additions, 1 deletioninclude/staff/ticket-view.inc.php
- include/staff/tickets.inc.php 1 addition, 1 deletioninclude/staff/tickets.inc.php
- include/upgrader/streams/core.sig 1 addition, 1 deletioninclude/upgrader/streams/core.sig
- include/upgrader/streams/core/2d590ffa-d9e311ad.patch.sql 51 additions, 0 deletionsinclude/upgrader/streams/core/2d590ffa-d9e311ad.patch.sql
Loading
Please register or sign in to comment