Bug 1159757 - Teiid Designer:New Model Wizard doesn't copy view model with global temporary table properly
Summary: Teiid Designer:New Model Wizard doesn't copy view model with global temporary...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: JBoss Data Virtualization 6
Classification: JBoss
Component: Tooling
Version: 6.1.0
Hardware: x86_64
OS: Linux
unspecified
unspecified
Target Milestone: ER4
: 6.1.0
Assignee: Barry LaFond
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-11-03 09:23 UTC by Jan Stastny
Modified: 2015-11-17 18:05 UTC (History)
4 users (show)

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.
Clone Of:
Environment:
Last Closed: 2015-11-17 18:05:54 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker TEIIDDES-2380 0 Major Closed New Model Wizard doesn't copy view model with global temporary table properly 2015-02-12 08:26:57 UTC

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


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