Summary | Number comments for easier reference |
Queue | Whups |
Type | Enhancement |
State | Resolved |
Priority | 1. Low |
Owners | jan (at) horde (dot) org |
Requester | php (at) ideacode (dot) com |
Created | 01/15/2007 (6745 days ago) |
Due | |
Updated | 04/04/2008 (6300 days ago) |
Assigned | |
Resolved | 04/04/2008 (6300 days ago) |
Milestone | |
Patch | No |
Assigned to Jan Schneider
State ⇒ Feedback
#2. I personally think that's sufficient, because even ifdeleting comments, this shouldn't happen too often (mostly as a spam
protection), so a comment number shift shouldn't hurt too much.
interfaces involving links to tickets.
Examples for how to access comment
#242:1. Direct access via a URL:
http://example.com/horde/whups/ticket/?id=142&Horde=MD5HORDEID#242
2. Comment text like this: "Issue 431#242" gets turned into URL like above.
created a sequence for each ticket, but that'd be a _lot_ of
sequences. Probably easier to have a table of sequences with two
columns: ticket_id and comment_sequence.
CREATE TABLE whups_comment_sequences {
ticket_id INTEGER NOT NULL,
next_comment_number INTEGER NOT NULL
}
State ⇒ Accepted
interfaces involving links to tickets. Wouldn't be hard to do if we
created a sequence for each ticket, but that'd be a _lot_ of
sequences. Probably easier to have a table of sequences with two
columns: ticket_id and comment_sequence.
Priority ⇒ 1. Low
Type ⇒ Enhancement
Summary ⇒ Number comments for easier reference
Queue ⇒ Whups
State ⇒ New
especially in the following scenarios:
1. Discussing a ticket over the phone while both parties are looking
at the ticket online
2. Responding to multiple comments in a single comment block
I see at least two ways to do this:
1. Simply use the value from whups_comments.comment_id
+ Easy to implement
- Not guaranteed to be sequential
2. When rendering, number the comments with oldest = 1
+ Easy to implement
- Comment #s may be inaccurate if comment is deleted
3. Uniquely number comments within a ticket
+ Resilient to deletions of comments
- More difficult to implement
I personally wouldn't mind
#1, but I know that will confuse many, ifnot most, users. I don't immediately recall anyway to delete comments
from the UI (perhaps that should be another ticket?), so
#2would workfine except for when deleted out from under whups in the db directly.
#3is probably the best way to go.