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

Consider component model when retrieving relationship types

XMLWordPrintable

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

      Where relationship types are retrieved for use in a component, only types applicable to the model defined for that component should be retrieved.

      Where  relationship type is retrieved by UID, it must be updated to ensure

      • if the UID is generated for the call ensure the model name of the relationship type (where model is set) is included in the UID generation,
      • if the model name is not knowable, the relationship must be fetched by another criteria, e.g. combination of type and model 
        • note the model name for the relationship is not necessarily the same model name as for the type the relationship is being used in (e.g. the model for a node type could be different from the model of the relationship used in the node type) where one model extends another model. 

      Where the relationship type is retrieved by some other property, e.g. type, it must be updated to also include the model

      Where all relationship types are read, consideration must be given to the model that is relevant to the request

            krupanagabhushan krupanagabhushan
            krupanagabhushan krupanagabhushan
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: