Bug 690741

Summary: [test run]Suggest can not remove the bug from other run
Product: [Other] TCMS Reporter: Jin Zhao <jzhao>
Component: ApplicationAssignee: Yuguang Wang <yuwang>
Status: CLOSED CURRENTRELEASE QA Contact: tools-bugs <tools-bugs>
Severity: urgent Docs Contact:
Priority: urgent    
Version: 3.3CC: chewang, ctang, dli, junzhang, nli, vchen, xgao
Target Milestone: ---Keywords: Regression, Reopened
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: 3.4.1-2 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-06-16 06:04:56 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Attachments:
Description Flags
screenshot
none
can not remove the bug from other run
none
3.4-FAIL
none
3.4.1-1 PASS none

Description Jin Zhao 2011-03-25 09:31:53 UTC
Created attachment 487511 [details]
screenshot

Description of problem:
I can remove all bugs that belong to other run and suggest highlight the bug ID in current run.
For that,the user is very easy to remove bugs and lead to alter other test run's result. It's very critical. 

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

How reproducible:
100%

Steps to Reproduce:
1.In test run
2.Expand one test case run that have more bug from current run and other run
3.
  
Actual results:
Can remove all bug ID except from case.

Expected results:
Can not remove other run's bug
Highlight the current run's bug (Refer to attachment)

Additional info:

Comment 1 Danqing Li 2011-04-14 10:26:23 UTC
Designed only display the BUG filed in the current test run. 
And show all bugs related to test cases in the case detail page.

This is a bug ,please remove the bug filed in other test run and case itself.

Comment 2 chewang 2011-04-14 10:32:10 UTC
Fixed, please have a look.

Comment 3 Xin Gao 2011-05-11 03:05:02 UTC
Created attachment 498194 [details]
can not remove the bug from other run

Comment 4 Xin Gao 2011-05-11 03:08:27 UTC
Verify version: 3.4 on englab.

Verify steps: 
1.In test run
2.Expand one test case run that have more bug from current run and other run

Verify results: Pass. 
Please refer to the attachment "can not remove the bug from other run".

Comment 5 Jin Zhao 2011-06-07 09:00:24 UTC
Created attachment 503414 [details]
3.4-FAIL

If the more case run contains the same bug ,After you remove the bug from current run ,All the bug can be delete.

So reopen it.

Comment 6 Chaobin Tang 2011-06-09 05:03:46 UTC
I am very sorry but I really didn't get it.

Comment 7 Chaobin Tang 2011-06-09 05:07:06 UTC
or i guess it means -

"
if more than one (or multiple if you will) case-runs contain the same bug, when you remove that bug from any run that contains it, then this bug will also be removed from all other runs that also contain it.
"

?

Comment 8 Jin Zhao 2011-06-09 05:24:05 UTC
(In reply to comment #7)
> or i guess it means -
> 
> "
> if more than one (or multiple if you will) case-runs contain the same bug, when
> you remove that bug from any run that contains it, then this bug will also be
> removed from all other runs that also contain it.
> "
> 
> ?

right.

Comment 9 Chaobin Tang 2011-06-09 11:20:18 UTC
GIT COMMIT ID: 110bce12aa919fc778bd90dd3f2dea879dc8570c

Scenario -

User can add bug to a case_run. To users, the bugs seemingly are added(attached) on thus case_runs, however factually the bugs are programatically added only on case_run's case. Under such circumstance, case will then hold bugs that are shared by its case_runs, thereby, while attempting to remove a bug by specifying only the bug_id(the way how system proceeds before this change), it will then remove all bugs with that ID regardless of the fact that these bugs were relating to different case_runs.

Fix -

The change has made by introducing the run_id as an extra argument on trying to remove bug from a case. By specifying both bug_id and run_id, then only the bug with bug_id=bug_id and its case_run's id=run_id will be deleted.

Comment 10 Jin Zhao 2011-06-10 07:48:01 UTC
Created attachment 504036 [details]
3.4.1-1 PASS

Verify version 3.4.1-1 on englab  --> PASS
Actual result: Refer to attachment, Click remove bug123,only remove bug123 from run12648

Comment 11 Jin Zhao 2011-06-10 07:50:08 UTC
(In reply to comment #10)
> Created attachment 504036 [details]
> 3.4.1-1 PASS
> 
> Verify version 3.4.1-1 on englab  --> PASS
> Actual result: Refer to attachment, Click remove bug123,only remove bug123 from
> run12648

Update teh verify version: 3.4.1-2