Bug 1026728

Summary: Can't delete source model which imports VDB
Product: [JBoss] JBoss Data Virtualization 6 Reporter: Filip Elias <felias>
Component: ToolingAssignee: Van Halbert <vhalbert>
Status: CLOSED CURRENTRELEASE QA Contact:
Severity: urgent Docs Contact:
Priority: unspecified    
Version: 6.0.0CC: atangrin, vhalbert
Target Milestone: ER4   
Target Release: 6.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
In JBoss Developer Studio, users cannot delete source models that import a virtual database. The delete option is inactive for the model. This is because the source model is read only. This constraint may have to be relaxed so that users can delete read only models.
Story Points: ---
Clone Of: Environment:
JBDS 7.0.0 GA Tooling 4.1.3.Beta5 (http://download.jboss.org/jbosstools/updates/integration/kepler/integration-stack/aggregate/4.1.3.Beta5/)
Last Closed: 2014-02-06 15:37:19 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:

Description Filip Elias 2013-11-05 10:14:14 UTC
Source model that imports VDB can't be deleted.

Environment JBDS 7.0.0 GA
            Tooling 4.1.3.Beta5 (http://download.jboss.org/jbosstools/updates/integration/kepler/integration-stack/aggregate/4.1.3.Beta5/)

Steps to reproduce:

1. Select File -> Import ->  JDBC Database >> Source Model
2. Create connection profile for VDB (Select Teiid as Connection profile type)
3. Make sure that Import as VDB source model is checked
4. Create the source Model
5. Right-click on the source model and try to delete it, but Delete is inactive

Comment 1 JBoss JIRA Server 2013-11-07 15:45:45 UTC
Barry LaFond <blafond> made a comment on jira TEIIDDES-1917

AbstractRefactorAction disables if a resource is READ ONLY.

In this case the source model returns TRUE for ModelUtil.isIResourceReadOnly() because it's a "locked source object".

We probably need to relax this so users can delete Read Only models.

Only catch will be in Refactor Wizard's dependency analysis/refactor logic?

Comment 2 JBoss JIRA Server 2013-11-20 21:40:41 UTC
Barry LaFond <blafond> updated the status of jira TEIIDDES-1917 to Resolved

Comment 3 JBoss JIRA Server 2013-11-20 21:40:41 UTC
Barry LaFond <blafond> made a comment on jira TEIIDDES-1917

Tested with latest build (11/20/2013) and was able to delete vdb source model.

Comment 4 belong 2013-12-10 00:51:14 UTC
Assuming this will be set to VERIFIED before GA - setting requires_doc_text- accordingly.

Comment 5 Filip Elias 2014-01-07 12:32:33 UTC
Verified on DV6 CR1, JBDS 7.1.0, JBDS IS 7.0.0.CR1

Comment 6 JBoss JIRA Server 2014-05-07 21:04:39 UTC
Barry LaFond <blafond> updated the status of jira TEIIDDES-1917 to Closed