Red Hat Bugzilla – Bug 962681
Button for deleting data provider does not work - no explanation is given to the user
Last modified: 2014-08-06 16:12:53 EDT
Created attachment 747563 [details]
Application log after "delete" button is clicked
Description of problem:
When a button for deleting some data provider is clicked, nothing happens.
It seems that this is caused by the data provider being used in some KPI Panels - but the problem is that no indication is given to the user why the provider was not deleted.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. Navigate to Workspace "Showcase", page "Data providers"
2. Click the button "Delete Data Provider" next to some of the out-of-the box data providers, for example "Sales dashboard demo".
Page reloads, but nothing else happens - provider is not deleted, it is left in place.
When user tries to delete a data provider, that cannot be deleted (e.g. because it's used in some KPI panels) some message should be displayed indicating why it is not possible to delete that provider (e.g. "It is impossible to delete this data provider, because it is used in 5 panels" or "Cannot delete data provider X, because it is used by 5 panels" or something similar).
When the delete button is clicked, the following error appears in the application log (see the attachment)
The error has been fixed. Now, a message like this is shown "Cannot delete the data provider because it is used by 5 KPI(s)"
Github commit: https://github.com/droolsjbpm/dashboard-builder/commit/cd1e7fb50d835af4da806cf3b21b59bf099ab3ab
Ok, verified with BPMS 6.0.0.DR6 deployed on EAP 6.1