Uploaded image for project: 'Service Design and Creation'
  1. Service Design and Creation
  2. SDC-3713

Datatypes cache is not returning types for extended model

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Medium Medium
    • Istanbul Release
    • Istanbul Release
    • None
    • None

      When a VSP is imported, a model extension can be created when private types are detected.

      The model will be associated with a parent model, the one chosen during the Import VSP process. The private types will be created and associated to the new model with the MODEL_ELEMENT edge.

      Datatypes cache is not returning the created types for the extended model (1), also not considering the parent model when returning the data types (2).

      For the first problem, maybe the database is in a transaction and the query is not getting the newly created types.

      For the second problem, I believe the datatypes cache structure does not understand the model inheritance. There should be at least another data structure to store the dependencies and consider the information when loading data types for a model.

      To reproduce:

      Create a VSP with the "ETSI SOL001 2.5.1" model, using the package etsi-vnf-virtual-link-ETSI-2.5.1.v3.csar^^ , then import the VSP. 

      Put a pause break on the method org.openecomp.sdc.be.model.cache.ApplicationDataTypeCache#getAll to verify the problem.

            MichaelMorris Michael Morris
            MichaelMorris Michael Morris
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: