Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 962681

Summary: Button for deleting data provider does not work - no explanation is given to the user
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: medium    
Version: 6.0.0CC: rzhang
Target Milestone: DR6   
Target Release: 6.0.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Cause: Message not shown due to a javascript syntax error. Consequence: No feedback given to the user. Fix: Format the warning message properly. Result: Message shown to the user.
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-08-06 20:12:53 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
Application log after "delete" button is clicked none

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