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

Change sources cannot be reliably read via IoC-resolved model listeners

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 2.0
    • Fix Version/s: 2.1, 3.0
    • Component/s: Data Binder, IoC System
    • Labels:
      None

      Description

      The source tracking system for ChangeApplier-mediated changes described at http://docs.fluidproject.org/infusion/development/ChangeApplierAPI.html#source-tracking-and-filtering-in-model-listener-blocks has a configurational hole - despite FLUID-5490 ensuring that change sources will cascade through back-to-back model listeners, this has been done via an implementational "back door" that is not possible to address via a context name in a listener definition.

      It appears that the back door, implemented in fluid.resolveModelListener, DataBinding.js line 957, used a specially named record mergeRecord to avoid polluting the existing context name source which is used by dynamic components. We should just stick a "sources" entry into the change argument which is already resolved, since otherwise the only route is to invite the user to look into the undocumented argument transaction.

        Attachments

          Activity

            People

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

              Dates

              Created:
              Updated: