[MGNLPN-448] Migrate traits to new UI framework Created: 22/Oct/19  Updated: 04/Feb/22  Resolved: 03/Jan/20

Status: Closed
Project: Magnolia Personalization
Component/s: None
Affects Version/s: None
Fix Version/s: 2.0

Type: Story Priority: Neutral
Reporter: Roman Kovařík Assignee: Aleksandr Pchelintcev
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: 0d
Time Spent: 4d 5.85h
Original Estimate: Not Specified

Issue Links:
Relates
relates to MGNLPN-619 DEV-DOC: Revalidate the Creating-cust... Open
dependency
depends upon MGNLUI-5569 Generalise multi-value field entry re... Closed
Template:
Acceptance criteria:
Empty
Task DoD:
[ ]* Doc/release notes changes? Comment present?
[ ]* Downstream builds green?
[ ]* Solution information and context easily available?
[ ]* Tests
[ ]* FixVersion filled and not yet released
[ ]  Architecture Decision Record (ADR)
Account:
Epic Link: Migrate apps to new UI framework
Sprint: UI Framework 11, UI Framework 12, UI Framework 13, UI Framework 14
Story Points: 13

 Description   

As part of the effort, some Transformer s will need to be ported as well to the new ItemProviderStrategy.

As part of MGNLUI-5272, the following existing transformers have been found

info.magnolia.personalization.visitor.transformer.VisitorTraitListToSetTransformer

  •  Specific ListToSetTransformer for valueField in visitor trait which writes to the item also in case of an empty collection. Nothing to do here apparently.

info.magnolia.personalization.cookie.CookieFieldTransformer

  • #getCompositePropertyName returns "cookieName" or "cookieValue" according to whether the arg is equal to the field name or not: need this as ItemProviderStrategy

info.magnolia.personalization.ui.SimpleTraitValueTransformer

  • Simple extension of BasicTransformer which enforces 'value' as the resulting JCR property name.
  • Probably need this as ItemProviderStrategy**

info.magnolia.personalization.ui.TraitAggregatorTransformer

  • Extension of DelegatingMultiValueFieldTransformer which takes care of trait voters set up.
  • Need this as ItemProviderStrategy
  • info.magnolia.personalization.ui.TraitValueCompositeTransformer
  • backs up trait value field which is similar to trait rule set field, but acts over simple trait values and is effectively a mixture of composite and multi-value fields

Generated at Mon Feb 12 06:37:45 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.