Uploaded image for project: 'Magnolia UI'
  1. Magnolia UI
  2. MGNLUI-5652

Non-localised form properties are synchronised even when they shouldn't be

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Neutral Neutral
    • 6.2
    • None
    • None
    • None
    • UI Framework 16, UI Framework 17
    • 8

      While debugging the validation issues and comparing the state to the old implementation I realised our multi-lang support has a flaw: it'll try to synchronise the non-i18n properties among all the localised representations even though those may be bound to different nodes (e.g. address_en and address_de). In case e.g. a composite field is configured as i18n-sensitive, we expect that its field set is completely disjoint for all the locales.

      The statement above also reasonates with in-essential multi-lang form read/write API, which mandates the ability to bind the same form to different items.

      As a soluition it is proposed to always bind the form to only single root and consider the i18n setting of the complex child property:

      if i18n == true we consider that the whole complex property is i18n-ized and -> has to have completely disjoint representations for every locale. In such case we generate several such representaions bound to single-lang locale context and bind those representations to locale-specific items obtained via item provider strategy aware of locale.
      if i18n == false we consider that the property is not locale-sensitive and -> may not have several items to back up the representations, so we only generate one and propagate the parent locale context into it.

        Acceptance criteria

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

                Created:
                Updated:
                Resolved:

                  Bug DoR
                  Task DoD

                    Estimated:
                    Original Estimate - Not Specified
                    Not Specified
                    Remaining:
                    Time Spent - 3h 5m Remaining Estimate - 5h
                    5h
                    Logged:
                    Time Spent - 3h 5m Remaining Estimate - 5h
                    3h 5m