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.
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.
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.