Bug 722835

Summary: Can't add existing comment to case-run
Product: [Other] TCMS Reporter: Xin Gao <xgao>
Component: ApplicationAssignee: Yuguang Wang <yuwang>
Status: CLOSED CURRENTRELEASE QA Contact: tools-bugs <tools-bugs>
Severity: low Docs Contact:
Priority: low    
Version: 3.5CC: ctang, dli, junzhang, jzhao, mshao, nli, vchen
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: 3.6.2 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-12-19 09:41:44 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Xin Gao 2011-07-18 07:41:53 UTC
Description of problem:
Can't add existing comment to case-run.
And even though that existing comment has been deleted.

Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
1. Enter into a run(including one or more case-run(s) ).
2. Add a comment to a case-run, such as "abcd".
3. Repeat step 2.
4. Delete the comment "abcd".
5. Repeat step 2.
  
Actual results:
Can't add existing comment to case-run(such as "abcd").
And even that existing comment has been deleted.

Expected results:
Can add comment freely no matter whether that is an existing comment. 

Additional info:

Comment 1 Xin Gao 2011-07-18 07:44:54 UTC
Additional info:
Version-Release number of selected component (if applicable):
3.5 on stage
3.4 on engineering

Comment 2 Chaobin Tang 2011-11-22 03:28:17 UTC
The reason that a duplicate comment cannot be submitted is that the program is trying to prevent user from submitting the same comment twice. Generally, duplicate comments to the same object would also make no sense.

This is confirmed to be a notfix, if you agree.

Comment 3 Xin Gao 2011-11-22 06:55:16 UTC
To Chaobin,
Chaobin, I discussed this issue with jzhao. Actually, we think it's not reasonable and it's possible different users submit same comments, especially when user want to submit a deleted comments and do not be allowed, will feel confused...
Pls consider that. Thx
Xin

(In reply to comment #2)
> The reason that a duplicate comment cannot be submitted is that the program is
> trying to prevent user from submitting the same comment twice. Generally,
> duplicate comments to the same object would also make no sense.
> 
> This is confirmed to be a notfix, if you agree.

Comment 4 Chaobin Tang 2011-11-23 08:22:32 UTC
The point was made where you mentioned a situation when user attempts to submit a previously deleted comments. Well, that will be no problem. Try that.

Comment 5 Chaobin Tang 2011-11-23 09:08:32 UTC
Commit 1ecaceaf8be2cd8aae7f4895e977598d161da8f0
There actually is a flaw that disabled user from submitting a previously deleted comment. Fixed.

Comment 6 Jin Zhao 2011-12-19 10:18:04 UTC
Verify version 3.6.2-2 on stage. - PASS

Actual result:
1. After delete comment A, User can add comment A again
2. User A and B can add the same comment

Change the status to CLOSED-CURRENTRELEASE