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

Create a variant-aware TemplateAnnotationEndpoint

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Neutral Neutral
    • 3.0.0, 2.1.6
    • None
    • None
    • DevX 20
    • 3

      Steps to reproduce

      Perform the following request to the TemplateAnnotation endpoint:

      https://demo.magnolia-cms.com/.rest/template-annotations/v1/travel?mgnlPreview=false&mgnlChannel=desktop

      Expected results

      Node is returned along its components and variants.

      Actual results

      All children pages are brought along with the expected results

      Development notes

      It seems like this issue appeared when PAGES-761 got fixed, with this commit.

      The method used for the endpoint changed from NodeUtil.visit to NodeUtil.collectAllChildren.

        Acceptance criteria

              rsiska Robert Šiška
              rgaona Roberto Gaona
              DeveloperX
              Votes:
              4 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved:

                  Task DoD

                    Estimated:
                    Original Estimate - Not Specified
                    Not Specified
                    Remaining:
                    Remaining Estimate - Not Specified
                    Not Specified
                    Logged:
                    Time Spent - 3.5h
                    3.5h