Bug 966897

Summary: Configuration of KPI panels broken in workspace created by "Duplicate workspace" function
Product: [Retired] JBoss BPMS Platform 6 Reporter: Jan Hrcek <jhrcek>
Component: BAMAssignee: David Gutierrez <dgutierr>
Status: CLOSED CURRENTRELEASE QA Contact: Jan Hrcek <jhrcek>
Severity: high Docs Contact:
Priority: high    
Version: 6.0.0CC: rrajasek, rzhang
Target Milestone: DR6Keywords: TestBlocker
Target Release: 6.0.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Cause: The app was using the page logical id. to access the current dashboard instead of the persistent id. Consequence: Once cloned, the app was trying to retrieve without any success the current panel status from the original workspace. Fix: Get the cloned dashboard by its persistent identifier and also clone all the KPI referred by the dashboard panels. Result: The workspace and all its KPI panels are cloned succesfully. You can change the cloned workspace without affecting the original one.
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-08-06 20:06:26 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:
Embargoed:
Attachments:
Description Flags
Unconfigured KPI panels in duplicated workspace none

Description Jan Hrcek 2013-05-24 08:46:49 UTC
Created attachment 752511 [details]
Unconfigured KPI panels in duplicated workspace

Description of problem:
When using "Duplicate workspace" function, the configuration of KPI panels in the duplicated workspace (and sometimes even in the original workspace) is broken. They are not configured the same as in the original workspace and require the user to choose data provider as if for newly created panel. However even after selecting the data provider nothing happens.

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

How reproducible:
Seems 100% reproducible:
I reproduced the problem in the following two configurations (2 of 2 times for both configurations):
1) H2-based quickstart demo using dashboard-builder/scripts/>  ./buildandrun.sh h2
2) deployment of WAR archive on JBoss EAP 6.0 GA configured with MySQL datasource


Steps to Reproduce:
1. Starting the app with clean datasource and login with root user.
2. In the administration menu at the top Select "Showcase" workspace and click the button "Duplicate workspace" next to it.
3. Switch to the duplicate workspace "Copy of Showcase"
4. Visit all pages that contain KPI panels ("Sales opportunities") see if they are configured correctly
5. Do the same for "jBPM Dashboard" workspace and observe similar results.


Actual results:
KPI panels in the duplicated workspace are not configured the same as in the original workspace and it is impossible to fix the configuration of those panels by selecting data provider because nothing happens when data provider is selected. Also there are no errors/exceptions in the application log for either configuration.

Expected results:
The duplicated workspace should look exactly the same as the original, including the configuration of KPI panels.


Additional info:
The Duplicate Workspace function is critical for most of our dashboard builder GUI tests.
Most tests, that change the state of the application datasource use the following sequence of steps:
1. Create duplicate of a workspace
2. Make some changes and verify results
3. Delete the duplicated workspace

Therefore for testability of dashbuilder it is critical, that this issue is fixed.

Comment 1 Jan Hrcek 2013-05-24 08:49:08 UTC
Additional note: This problem seems to have started after version of Hibernate was alligned with JBoss EAP, before that it worked correctly.

Comment 2 Jan Hrcek 2013-05-24 09:53:02 UTC
It sometimes happens, that the KPI panels are configured correctly in the duplicated workspace but they become broken in the original workspace.

Comment 6 Jan Hrcek 2013-07-13 08:01:18 UTC
Ok, verified with BPMS 6.0.0.DR6 deployed on EAP 6.1