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

Injected components are not correctly entered into fast scope lookup

    XMLWordPrintable

    Details

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

      Description

      Performance work on invokers and listeners for FLUID-5796, FLUID-5249 have introduced a "scope chain object" into the instantiator's records for fast context lookup. This seems to be faulty in the case of an injected component reference:

      fluid.defaults("gpii.deviceReporterLive", {
          components: {
              solutionsRegistryDataSource: "{flowManager}.solutionsRegistryDataSource"
          },
          invokers: {
              get: {
                  funcName: "gpii.deviceReporter.live.get",
                  args: ["{arguments}.0", "{deviceReporter}", "{solutionsRegistryDataSource}"]
              }
      });
      

      In the 3rd invoker argument, the context is returned as undefined even though the injected component is in place. It is resolvable via the reference "

      {that}

      .solutionsRegistryDataSource" which doesn't use the scope chain.

        Attachments

          Activity

            People

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

              Dates

              Created:
              Updated:
              Resolved: