[LIVECOPY-276] MultiValueCompositeLinkField can not relink and show auto protect icon in CompatibilityRewirePageLinksHelper Created: 23/Jul/21  Updated: 04/Aug/21  Resolved: 02/Aug/21

Status: Closed
Project: Live Copy
Component/s: None
Affects Version/s: 3.2.3
Fix Version/s: 3.2.4

Type: Bug Priority: Major
Reporter: Oanh Thai Hoang Assignee: Oanh Thai Hoang
Resolution: Fixed Votes: 0
Labels: VN-Implementation, VN-Testing, maintenance
Remaining Estimate: 0d
Time Spent: 5h 25m
Original Estimate: Not Specified

Attachments: Zip Archive hello-magnolia.zip     PNG File old-frame-work.png     PNG File relink-and-protect.png    
Issue Links:
Cloners
clones LIVECOPY-275 MultiValueCompositeLinkField, MultiVa... Closed
is cloned by LIVECOPY-278 MultiValueCompositeRichTextField, Mul... Closed
Template:
Acceptance criteria:
Empty
Task DoD:
[X]* Doc/release notes changes? Comment present?
[X]* Downstream builds green?
[X]* Solution information and context easily available?
[X]* Tests
[X]* FixVersion filled and not yet released
[ ]  Architecture Decision Record (ADR)
Bug DoR:
[X]* Steps to reproduce, expected, and actual results filled
[X]* Affected version filled
Release notes required:
Yes
Epic Link: Live Copy maintenance
Sprint: Content Mngmt 09
Story Points: 3

 Description   

Steps to reproduce

  1.  Prepare dialog for MultiValueCompositeLinkField and MultiValueLinkField as below
  2. form:
      tabs:
        - name: tabMain
          label: Main
          fields:
            - name: multiValueRichText
              fieldType: multiValue
              label: multi field with rich text
              field:
                class: info.magnolia.ui.form.field.definition.RichTextFieldDefinition
                label: rich text
            - name: multiValueLinkField
              fieldType: multiValue
              label: multi field with linkfield 
              field:
                class: info.magnolia.ui.form.field.definition.LinkFieldDefinition
                targetWorkspace: website
                appName: pages
                identifierToPathConverter:
                  class: info.magnolia.ui.form.field.converter.BaseIdentifierToPathConverter
                type: String
            - name: multiValueComposite
              fieldType: multiValue
              label: multi field with composite rich text + link field
              transformerClass: info.magnolia.ui.form.field.transformer.multi.MultiValueSubChildrenNodePropertiesTransformer
              field:
                name: compositeField
                fieldType: composite
                transformerClass: info.magnolia.ui.form.field.transformer.composite.NoOpCompositeTransformer
                fields:
                  - name: richtext
                    class: info.magnolia.ui.form.field.definition.RichTextFieldDefinition
                    label: rich text
                  - name: linkfield
                    class: info.magnolia.ui.form.field.definition.LinkFieldDefinition
                    targetWorkspace: website
                    appName: pages
                    identifierToPathConverter:
                      class: info.magnolia.ui.form.field.converter.BaseIdentifierToPathConverter
                    type: String
    actions:
      commit:
        class: info.magnolia.ui.admincentral.dialog.action.SaveDialogActionDefinition
      cancel:
        class: info.magnolia.ui.admincentral.dialog.action.CancelDialogActionDefinition
    
  1. Or using quotation-old component that in my attached template (defined as new ui framework) hello-magnolia.zip
  2. Create link field for both fields
  3. Create live copy
  4. Select slave page
  5. Click to relink action and check to checkbox as below  
  6. Open slave page in detail and check
  7. See MultiValueLinkField can relink and show auto protect but not for MultiValueCompositeLinkField   
  8. Both field don't see protect icon red

.. Logs, screenshots, gifs...

Expected results

  • See MultiValueCompositeLinkField,MultiValueLinkField can relink in link field
  • Both fields show protect red icon

Actual results

  • See MultiValueLinkField can relink and show auto protect but not for MultiValueCompositeLinkField

Workaround

Development notes


Generated at Mon Feb 12 02:27:10 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.