Ticket #5446 (new defect)

Opened 4 years ago

Last modified 4 years ago

Ability to specify the comment index when updating a ticket

Reported by: thijs Assigned to: osimons
Priority: normal Component: XmlRpcPlugin
Severity: major Keywords:
Cc: thijs Trac Release: 0.11

Description

Currently it's not possible to update/replace a specific comment in a ticket. The attached patch should solve this problem.

Attachments

comment-index.patch (1.5 kB) - added by thijs on 06/28/09 19:58:04.

Change History

06/28/09 19:58:04 changed by thijs

  • attachment comment-index.patch added.

07/01/09 02:04:05 changed by osimons

The 'index' is not something returned by ticket.changeLog() to allow you to read it, nor is it acutally part of the database schema for ticket_change. Using the data we have, what about a new method that looks something like this:

int ticket.updateChange(int ticket, datetime time, string field, string newvalue)

It would update the unique record (ticket,time,field) with content newvalue.

If done like this, the method should also be accompanied by a similar ticket.deleteChange() method that deletes the record (using same identification mechanism).

Both these methods should require TICKET_ADMIN permission for the resource.


Add/Change #5446 (Ability to specify the comment index when updating a ticket)




Change Properties
Action