Uploaded image for project: 'Magnolia Personalization'
  1. Magnolia Personalization
  2. MGNLPN-130

Migrate trait rule aggregator field to use the new delegating transformers.

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.0
    • Component/s: None
    • Labels:
      None

      Description

      We would benefit from using the newly introduced delegating value transformers:

      • The complexity of the trait fields would be unlimited as no assumptions will be made about the sub-fields.
      • The implementation of the transformer would be simplified because it would not have to take care of sub-field JCR I/O operations.

      The only known drawback of the approach is that the aggregating transformer wouldn't be able to control the property names of the sub-nodes (handled with sub-fields/transformers). Then the sub-transformers should take care of correct naming and prefixes. For the simple case (one-property fields) we introduce the transformer which enforces 'value' as a property name.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              apchelintcev Aleksandr Pchelintcev
              Reporter:
              apchelintcev Aleksandr Pchelintcev
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: