Uploaded image for project: 'Live Copy'
  1. Live Copy
  2. LIVECOPY-283

Protect MultiValueField field

    XMLWordPrintable

Details

    • Improvement
    • Resolution: Done
    • Neutral
    • 3.2.6
    • None
    • Yes
    • Yes
    • Content Mngmt 10, Content Mngmt 11, Content Mngmt 12
    • 8

    Description

      According to the wiki, https://documentation.magnolia-cms.com/display/DOCS61/Live+Copy+module

      We have 3 levels of protecting to protect Livecopy content from changes of Master content:

      • Full pages
        • liveCopyReferenceDropped=true property will be set to the node of page
      • Single components
        • liveCopyReferenceDropped=true property will be set to the node of component
      • Single fields
        • Didn't mention in the wiki, but propertiesToIgnore = [fieldNameProtected,...] will be set to the node of component
        • The term properties above represent for normal field whose value is stored in property of jcr; for a complex field, whose value may be stored in node. Then could the properties term here cover for both cases: property and node

      For the special case MultiValueField (or MultiField in UI 6), we shouldn't allow to protect the child field, since they don't have distinct name in generally.

      E.g: The compatibility MultiValueField contains a list of LinkFields will be stored in JCR as a property like: multiValueField = [uuidOfLinkTarget_1, uuidOfLinkTarget_2,...], hence we cannot extract name of each child field in this case.

      AC:

      • propertiesToIgnore: apply for both field value is node and is property
      • Do not apply protect for child field of MultiValueField/MultiField, but only MultiValueField/MultiField
      • Do not show protect icon for child field of MultiValueField/MultiField, but only MultiValueField/MultiField

      MultiValue RichTextField: as expected

       MultiValue LinkField: as expected

       MultiValue Composite (RichTextField + LinkField): not as expected >> need to be improved

      Checklists

        Acceptance criteria

        Attachments

          1. image-2021-08-11-14-19-56-874.png
            125 kB
            Quach Hao Thien
          2. image-2021-08-11-14-21-06-269.png
            100 kB
            Quach Hao Thien
          3. image-2021-08-11-14-22-22-466.png
            149 kB
            Quach Hao Thien

          Issue Links

            Activity

              People

                thien.quach Quach Hao Thien
                thien.quach Quach Hao Thien
                Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved:

                  Checklists

                    Task DoD

                    Time Tracking

                      Estimated:
                      Original Estimate - Not Specified
                      Not Specified
                      Remaining:
                      Time Spent - 8d 3.25h Remaining Estimate - 0.5h
                      0.5h
                      Logged:
                      Time Spent - 8d 3.25h Remaining Estimate - 0.5h
                      8d 3.25h