Opened 8 years ago
Last modified 4 years ago
#12414 closed enhancement
Improve API for getting comment number — at Version 1
Reported by: | anonymous | Owned by: | |
---|---|---|---|
Priority: | normal | Milestone: | |
Component: | ticket system | Version: | |
Severity: | normal | Keywords: | |
Cc: | Branch: | ||
Release Notes: | |||
API Changes: | |||
Internal Changes: |
Description (last modified by )
E.g. in ITicketManipulator.validate_ticket
it is surprisingly difficult to get the comment number of the comment to be validated.
ticket.get_comment_number(ticket['changetime'])
often gives the previous comment number, but fails e.g. when the a comment was edited. (th:#12714)
Am I missing something or could the API be improved somehow? Thanks.
Change History (1)
comment:1 by , 8 years ago
Component: | general → ticket system |
---|---|
Description: | modified (diff) |
Note:
See TracTickets
for help on using tickets.
You could use
TicketModule.grouped_changelog_entries()
.See tags/trac-1.0.10/trac/ticket/notification.py@:181-182,191#L165.