Closed Bug 304749 Opened 19 years ago Closed 19 years ago

Give editors ability to delete comments

Categories

(addons.mozilla.org Graveyard :: Developer Pages, defect)

x86
All
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: jstritar, Assigned: jstritar)

Details

(Whiteboard: landme)

Attachments

(2 files)

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.10) Gecko/20050716 Firefox/1.0.6
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.10) Gecko/20050716 Firefox/1.0.6

We need to let editors delete comments once again..

Reproducible: Always

Steps to Reproduce:
Editors can now remove comments. This also sets the CommentVote to NULL when
you remove the comment. Run this SQL query to convert all the old deleted
comments to the style of the new ones:

UPDATE `feedback` SET `CommentTitle` = '<i>Removed by Staff</i>', `CommentVote`
= NULL WHERE `CommentTitle` = '<i>Removed by Admin</i>';
Attachment #192778 - Flags: first-review?(cst)
I don't see any change to the way votes are tabulated.  Does the vote counter
already ignore those where the vote value is not null?  Does the DB schema allow
nulls?
Also, the comment-manager queue has been kept relatively under control.  Why is
there a sudden need?

Part of the reason why editors cannot delete comments is that there is no
tracking of who deleted what.  
CTho and Morgamic wanted to give editors access to remove them again.

I didn't think about the rating updating... but if I remember correctly, CTho
checked in a patch recently to ignore ratings of comments that are removed, so
this should already be taken care of. I'll look into this tonight when I get a
chance.
I forgot to address one of your questions -

The NULL ratings are allowed in that column. When developers make "developer
comments", they are given NULL ratings. They appear just like the other comments
except with no star pictures.
Ok, then this is to explicitly back out CTho's work to remove it and at his
request.  
Assignee: Bugzilla-alanjstrBugs → jstritar
Status: UNCONFIRMED → NEW
Ever confirmed: true
Attachment #192778 - Flags: first-review?(cst) → first-review+
Status: NEW → ASSIGNED
Whiteboard: landme
Status: ASSIGNED → RESOLVED
Closed: 19 years ago
Resolution: --- → FIXED
Whiteboard: landme
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Attachment #194881 - Flags: first-review?(cst)
Comment on attachment 194881 [details] [diff] [review]
Ignore based on vote value

Though LXR is out of date, the code in CVS does null the vote for deleted
comments, so r=cst.
Attachment #194881 - Flags: first-review?(cst) → first-review+
Ok, my part still needs landing
Whiteboard: landme
Second patch landed now.  This is live.
Status: REOPENED → RESOLVED
Closed: 19 years ago19 years ago
Resolution: --- → FIXED
Product: addons.mozilla.org → addons.mozilla.org Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: