Modify

Opened 8 years ago

Last modified 3 years ago

#5447 new defect

Ability to specify the author and creation time for ticket attachments

Reported by: Thijs Triemstra Owned by: Odd Simon Simonsen
Priority: high Component: XmlRpcPlugin
Severity: major Keywords:
Cc: Thijs Triemstra Trac Release: 0.11

Description

It's currently not possible to specify the creation time or author for a ticket attachment. The attached patch should fix this problem.

Attachments (1)

attachment-author-time.patch (1.2 KB) - added by Thijs Triemstra 8 years ago.

Download all attachments as: .zip

Change History (5)

Changed 8 years ago by Thijs Triemstra

comment:1 Changed 8 years ago by Odd Simon Simonsen

Hmm. Perhaps adding an attributes={} parameter to the end of the signature? That could then contain author and time_created keys? Ideally I would also like description to be in that dictionary, as unlike the other parameters it is just an optional extra.

Technically it would perhaps be possible to change description to attributes, and then (at least for a time) test the input - if input is a string then save as description, if it is an dictionary then update whatever attributes it contains or use any default values (like req.authname).

comment:2 Changed 6 years ago by Odd Simon Simonsen

See also #5445 for ~same request for ticket updates.

comment:3 Changed 6 years ago by Odd Simon Simonsen

Priority: normalhigh

With #5445 + #3988 completed, the same principles should be applied to ticket attachments too. Should add 'author' and 'when' as optional arguments at the end (no need to break the API), and also add test(s) to make sure it works.

comment:4 Changed 3 years ago by Olemis Lang

See these tickets for a similar problem solved using a different approach (still WiP) .

Modify Ticket

Action
as new The owner will remain Odd Simon Simonsen.

Add Comment


E-mail address and name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.