[MGNLPN-692] Create a variant-aware TemplateAnnotationEndpoint Created: 06/Sep/22  Updated: 06/Oct/22  Resolved: 29/Sep/22

Status: Closed
Project: Magnolia Personalization
Component/s: None
Affects Version/s: None
Fix Version/s: 3.0.0, 2.1.6

Type: Improvement Priority: Neutral
Reporter: Roberto Gaona Assignee: Robert Šiška
Resolution: Fixed Votes: 4
Labels: cs-bk
Σ Remaining Estimate: Not Specified Remaining Estimate: Not Specified
Σ Time Spent: 3.5h Time Spent: Not Specified
Σ Original Estimate: Not Specified Original Estimate: Not Specified

Issue Links:
causality
dependency
is depended upon by MGNLFE-309 Create variants for component-with-ar... Closed
Sub-Tasks:
Key
Summary
Type
Status
Assignee
MGNLPN-693 Implementation Sub-task Completed Robert Šiška  
MGNLPN-694 Review Sub-task Closed Oanh Thai Hoang  
MGNLPN-695 Pre-Integration QA Sub-task Completed Oanh Thai Hoang  
MGNLPN-696 QA Sub-task Completed Javier Benito  
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)
Date of First Response:
Epic Link: Support
Sprint: DevX 20
Story Points: 3
Team: DeveloperX

 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.


Generated at Mon Feb 12 06:40:08 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.