Modify

Opened 5 years ago

Last modified 8 months ago

#5447 new defect

Ability to specify the author and creation time for ticket attachments

Reported by: thijs Owned by: osimons
Priority: high Component: XmlRpcPlugin
Severity: major Keywords:
Cc: thijs 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 5 years ago.

Download all attachments as: .zip

Change History (5)

Changed 5 years ago by thijs

comment:1 Changed 5 years ago by osimons

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 4 years ago by osimons

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

comment:3 Changed 4 years ago by osimons

  • Priority changed from normal to high

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 8 months ago by olemis

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

Add Comment

Modify Ticket

Action
as new The owner will remain osimons.
Author


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

 
Note: See TracTickets for help on using tickets.