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

Detect indirect model references from IoC-qualified relay rules and model listeners

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Data Binder, Framework
    • Labels:
      None

      Description

      The algorithm for parsing IoC-qualified model references in a modelRelay block isn't of sufficiently high quality.

      Firstly, when referring to a context which is not resolvable, we get no helpful diagnostic - just a raw exception inside fluid.enlistModelComponent.

      Secondly, references to models by paths where the model is not directly nested in the context are not recognised as references to models - for example the following block

                      modelRelay: {
                          target: "disabled",
                          singleTransform: {
                              type: "fluid.transforms.binaryOp",
                              operator: "===",
                              left: "{chaundles}.model.position",
                              right: "{chaundles}.scrollbar.model.lastPosition"
                          }
      

      The reference to right is not recognised as a live model reference.

        Attachments

          Activity

            People

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

              Dates

              Created:
              Updated:
              Resolved: