Uploaded image for project: 'Teiid Designer'
  1. Teiid Designer
  2. TEIIDDES-627

File > Save As action results in validation errors in new model if model is virtual and folder location different than original location.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Minor Minor
    • 8.1
    • 7.0, 7.1
    • Modeling
    • None

      The ModelCopyCommand class doesn't take into account the possibility in having a destination folder different than the original model.

      The Action will perform the Save As OK, however, there may be validation errors due to unresolved Imports and Objects

      By selecting the model and Rebuilding Imports, the validation errors should get fixed.

      There may be Criteria errors if the SQL contains the full path/model name. users will need to re-edit the Criteria to fix it.

      The elegant fix would be to :
      1) Perform a rebuildImports() action during the command execution
      2) determine the relative path change due to different destinations and perform an HRef update (SEE ResourceMoveCommand)
      3) Perform an update to the Criteria via RefactorModelExtensionManager framework. (i.e. MappingRefactorModelHandler)

              dflorian@redhat.com Daniel Florian (Inactive)
              blafond Barry LaFond
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: