Uploaded image for project: 'Fluid Infusion'
  1. Fluid Infusion
  2. FLUID-4129

A mergePolicy of "noexpand" is not honoured when expanding component options which arrive through IoC-driven subcomponent options

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.3.1
    • Fix Version/s: 1.5
    • Component/s: IoC System
    • Labels:
      None

      Description

      The IoC system independently (of main options merging) detects and interprets a mergePolicy of "noexpand" when applied to a path in the component options. However, this policy is only recognised when expanding the options which are registered in a component's defaults. The policy is ignored when expanding component options which are specified as a direct member of the "components" section of the parent component. It is in addition ignored when expanding material which arrives from a demands block.

      This occurs since component options are expanded "early" in the IoC expansion pipeline - in fact, before the child component in question instantiates at all or has any options resolved, and so any mergePolicy registered cannot be located. A solution to this also interacts with FLUID-3681 work on "grades" - in order to deal with material in demands blocks that do NOT refer to COMPONENT_OPTIONS (currently rare, but conceivable) we need to understand the ROLE of the parameter in question.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              jobara Justin Obara
              Reporter:
              antranig Antranig Basman
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: