Bug 962681 - Button for deleting data provider does not work - no explanation is given to the user
Summary: Button for deleting data provider does not work - no explanation is given to ...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: JBoss BPMS Platform 6
Classification: Retired
Component: BAM
Version: 6.0.0
Hardware: Unspecified
OS: Unspecified
medium
high
Target Milestone: DR6
: 6.0.0
Assignee: David Gutierrez
QA Contact: Jan Hrcek
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-05-14 09:00 UTC by Jan Hrcek
Modified: 2014-08-06 20:12 UTC (History)
1 user (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2014-08-06 20:12:53 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
Application log after "delete" button is clicked (25.60 KB, text/x-log)
2013-05-14 09:00 UTC, Jan Hrcek
no flags Details

Description Jan Hrcek 2013-05-14 09:00:19 UTC
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):

How reproducible:
Always

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".
  
Actual results:
Page reloads, but nothing else happens - provider is not deleted, it is left in place.

Expected results:
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).

Additional information:
When the delete button is clicked, the following error appears in the application log (see the attachment)

Comment 1 David Gutierrez 2013-06-12 09:35:40 UTC
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

Comment 2 Jan Hrcek 2013-07-13 07:09:33 UTC
Ok, verified with BPMS 6.0.0.DR6 deployed on EAP 6.1


Note You need to log in before you can comment on or make changes to this bug.