Bug 724354 (BRMS-300)

Summary: Javascript error after removing a global from test scenario configuration and accesing it in the expect part
Product: [JBoss] JBoss Enterprise BRMS Platform 5 Reporter: Jiri Locker <jlocker>
Component: BRM (Guvnor), User InterfaceAssignee: manstis
Status: MODIFIED --- QA Contact: Jiri Locker <jlocker>
Severity: unspecified Docs Contact:
Priority: medium    
Version: 5.0.2, 5.1.0.CR1CC: atangrin, manstis
Target Milestone: ---   
Target Release: 5.1.0.PostGA   
Hardware: Unspecified   
OS: Unspecified   
URL: http://jira.jboss.org/jira/browse/BRMS-300
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
If a global asset is removed from a test scenario and the user tries to access the asset in the expect section a Javascript error occurs. <!-- This has been resolved by preventing the removal of global assets from the test scenario before they are removed from the expectation section. -->
Story Points: ---
Clone Of: Environment:
Last Closed: 2010-12-08 03:32:11 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Bug Depends On: 724507    
Bug Blocks:    

Description Jiri Locker 2010-04-09 17:56:53 UTC
securitylevel_name: Public

Comment 1 Jiri Locker 2010-04-09 17:57:20 UTC
Link: Added: This issue depends GUVNOR-524


Comment 2 Dana Mison 2010-10-27 03:06:25 UTC
Release Notes Text: Added: test


Comment 3 Dana Mison 2010-10-27 03:13:22 UTC
Release Notes Text: Removed: test 


Comment 4 David Le Sage 2010-11-04 05:27:40 UTC
Release Notes Docs Status: Added: Not Yet Documented
Writer: Added: Darrin


Comment 5 Jiri Locker 2010-11-23 16:19:47 UTC
Link: Added: This issue depends BRMS-453


Comment 6 Jiri Locker 2010-11-25 13:55:09 UTC
Cannot be verified until BRMS-453 is resolved. It means that I cannot verify the JavaScript error if I cannot remove the global.

Comment 7 David Le Sage 2010-12-08 03:31:36 UTC
Labels: Removed: rn-dmison rn-open Added: rn-dlesage rn-done-resolved


Comment 8 David Le Sage 2010-12-08 03:32:03 UTC
Release Notes Docs Status: Removed: Not Yet Documented Added: Documented as Resolved Issue
Writer: Removed: Darrin Added: dlesage
Release Notes Text: Added: https://jira.jboss.org/browse/GUVNOR-254

If the user removed a global from a test scenario and then tried to access it from the expectation by clicking on the green triangle icon, a Javascript error would occur.  To fix this problem, the code has been changed so that the user can no longer remove the global from the scenario before it is removed from the expectation.  As a result, the Javascript error is no longer encountered.


Comment 9 Jiri Locker 2010-12-09 19:29:07 UTC
Not fixed, the issue is still present in BRMS 5.1.0 CR1.

The feature implemented in GUVNOR-524 probably has not made it into BRMS branch, the global can still be removed even if it is used in the EXPECT section.

Should be documented as known issue for BRMS 5.1.0.

Comment 10 David Le Sage 2010-12-13 01:37:16 UTC
Labels: Removed: rn-dlesage rn-done-resolved Added: rn-dlesage rn-done-known-issue


Comment 11 David Le Sage 2010-12-13 01:37:26 UTC
Release Notes Docs Status: Removed: Documented as Resolved Issue Added: Documented as Known Issue


Comment 12 David Le Sage 2010-12-13 01:38:39 UTC
Release Notes Text: Removed: https://jira.jboss.org/browse/GUVNOR-254

If the user removed a global from a test scenario and then tried to access it from the expectation by clicking on the green triangle icon, a Javascript error would occur.  To fix this problem, the code has been changed so that the user can no longer remove the global from the scenario before it is removed from the expectation.  As a result, the Javascript error is no longer encountered. Added: https://jira.jboss.org/browse/GUVNOR-254

 If the user removes a global from a test scenario and then tries to access it from the expectation by clicking on the green triangle icon, a Javascript error will occur. 


Comment 13 Anne-Louise Tangring 2011-09-13 18:04:41 UTC
This should be fixed as of Drools 5.1. Retest to verify.

Comment 14 lcarlon 2011-09-22 04:04:31 UTC
    Technical note added. If any revisions are required, please edit the "Technical Notes" field
    accordingly. All revisions will be proofread by the Engineering Content Services team.
    
    New Contents:
If a global asset was removed from a test scenario and the user tried to access the asset in the expectation section, a Javascript error would occur. This has been resolved by preventing the removal of global assets from the test scenario before they are removed from the expectation section.

Comment 15 Jiri Locker 2011-09-22 09:23:37 UTC
I am still able to remove global from test scenario even though it is being used in the "EXPECT" section. The project issue is https://issues.jboss.org/browse/GUVNOR-524.

Comment 16 lcarlon 2011-09-22 22:59:51 UTC
    Technical note updated. If any revisions are required, please edit the "Technical Notes" field
    accordingly. All revisions will be proofread by the Engineering Content Services team.
    
    Diffed Contents:
@@ -1 +1 @@
-If a global asset was removed from a test scenario and the user tried to access the asset in the expectation section, a Javascript error would occur. This has been resolved by preventing the removal of global assets from the test scenario before they are removed from the expectation section.+If a global asset is removed from a test scenario and the user tries to access the asset in the expect section, a Javascript error occurs. <!-- This has been resolved by preventing the removal of global assets from the test scenario before they are removed from the expectation section. -->

Comment 17 lcarlon 2011-10-05 04:25:28 UTC
    Technical note updated. If any revisions are required, please edit the "Technical Notes" field
    accordingly. All revisions will be proofread by the Engineering Content Services team.
    
    Diffed Contents:
@@ -1 +1 @@
-If a global asset is removed from a test scenario and the user tries to access the asset in the expect section, a Javascript error occurs. <!-- This has been resolved by preventing the removal of global assets from the test scenario before they are removed from the expectation section. -->+If a global asset is removed from a test scenario and the user tries to access the asset in the expect section a Javascript error occurs. <!-- This has been resolved by preventing the removal of global assets from the test scenario before they are removed from the expectation section. -->

Comment 20 manstis 2012-04-02 15:27:23 UTC
Fixed in master.