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

Designer requires a more flexible Model Object Refactoring framework to handle pre and post transaction events.

    XMLWordPrintable

Details

    • Task
    • Resolution: Obsolete
    • Major
    • No Future
    • 7.5
    • Modeling, Validation
    • None

    Description

      The current modeling/editing event and transaction framework in Designer cannot satisfy the requirements to perform certain cross-metamodel clean-up.

      In particular, if a user Deletes a Scalar Function, the ObjectDeleteCommand results in the dependent resources (i.e. Virtual Tables and Procedures) being re-validated, which is good, but the UDFManager doesn't have a chance to de-register the affected Function model before revalidation. The resulting validation is incorrect.

      Because ObjectDeleteCommand is in designer.core, there isn't any direct way that command could tell the UDFManager to perform the library clean-up.

      So I propose an to expand the current "refactorModelHandler" extension point to handle this processing.

      The current "RefactorModelExtensionManager" should be renamed to "RefactorModelManager"

      Methods should be added such as:

      preProcess(int type, Object[] objects) (Where type = DELETE, RENAME, MOVE, ADD)
      postProcess(int type, Object[] objects) (Where type = DELETE, RENAME, MOVE, ADD)

      Objects could be be Models, Files or EObjects

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              blafond Barry LaFond
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: