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

Create a variant-aware TemplateAnnotationEndpoint

    XMLWordPrintable

Details

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

    Description

      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.

      Checklists

        Acceptance criteria

        Attachments

          Issue Links

            There are no Sub-Tasks for this issue.

            Activity

              People

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

                Dates

                  Created:
                  Updated:
                  Resolved:

                  Checklists

                    Task DoD

                    Time Tracking

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