Bug 1159757

Summary: Teiid Designer:New Model Wizard doesn't copy view model with global temporary table properly
Product: [JBoss] JBoss Data Virtualization 6 Reporter: Jan Stastny <jstastny>
Component: ToolingAssignee: Barry LaFond <blafond>
Status: CLOSED CURRENTRELEASE QA Contact:
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 6.1.0CC: asmigala, dlesage, felias, vhalbert
Target Milestone: ER4   
Target Release: 6.1.0   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
When trying to create new view model by copying from an existing one the resulting model contained errors. The original view model has global temporary table defined. The new view model did not have the correct value in the "relational:Global Temp Table" property for the copied global temporary table. It should have been true, but was false in the new definition of the view model.
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-11-17 18:05:54 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 Jan Stastny 2014-11-03 09:23:53 UTC
When trying to create new view model by copying from an existing one the resulting model contains errors.
The original view model has global temporary table defined. The problem is that the new view model has not correct value in the "relational:Global Temp Table" property for the copied global temporary table. It should be true, but is false in the new definition of view model.

Teiid Designer Version:
8.6.0

Steps to reproduce:
1. Create a project with a view model with definition of global temporary table.
2. Create a new project, run "New Model Wizard", set "Model Type" to "View Model", select "Copy from an existing model of the same model class", on the next screen pick the view model from step #1 and finish the guide.
3. View model created by the wizard contain an error, which can be resolved by setting the table as global temporary one, as should have been done by the wizard.

Expected outcome:
Valid copy of valid view model.

Real outcome:
Invalid view model.

Comment 1 Barry LaFond 2014-11-03 14:15:52 UTC
Barry TODOs: Check use-case, document what elements of source/view models do NOT get copied to new model (i.e. extension properties in particular). Either add that functionality or perform a check to determine if there will be issues and throw up a dialog (or set error message on current wizard) to indicate that some properties will not get copied and need to get set manually.

Comment 2 JBoss JIRA Server 2014-11-03 20:07:09 UTC
Barry LaFond <blafond> updated the status of jira TEIIDDES-2380 to Resolved

Comment 3 Andrej Smigala 2015-01-09 11:42:13 UTC
Still seeing the same behaviour on 9.0.1. The resolution here should be that the extension properties are not copied, but a warning dialog should be shown. 

However, following the steps, no dialog is shown and the resulting model is invalid.

Comment 4 JBoss JIRA Server 2015-01-09 16:46:26 UTC
Barry LaFond <blafond> updated the status of jira TEIIDDES-2380 to Reopened

Comment 5 JBoss JIRA Server 2015-01-09 16:54:19 UTC
Barry LaFond <blafond> updated the status of jira TEIIDDES-2380 to Resolved

Comment 6 JBoss JIRA Server 2015-02-12 08:26:57 UTC
Andrej Šmigala <asmigala> updated the status of jira TEIIDDES-2380 to Closed