[PAGES-1231] Decorations in Template definition endpoint Created: 14/Jun/23  Updated: 13/Sep/23

Status: Open
Project: Magnolia pages module
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Neutral
Reporter: Mykola Assignee: Unassigned
Resolution: Unresolved Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Template:
Acceptance criteria:
Empty
Task DoD:
[ ]* Doc/release notes changes? Comment present?
[ ]* Downstream builds green?
[ ]* Solution information and context easily available?
[ ]* Tests
[ ]* FixVersion filled and not yet released
[ ]  Architecture Decision Record (ADR)
Bug DoR:
[ ]* Steps to reproduce, expected, and actual results filled
[ ]* Affected version filled
Epic Link: AuthorX Support
Team: AuthorX

 Description   

When using the TemplateDefinitionEndpoint only original properties are present. Properties from decorations are not returned.

Steps to reproduce:

  1. Create decoration for MTK image: /custom-module/decorations/mtk2/templates/components/image.yaml
  2. Add inside any new property like foo: bar
  3. Open http://localhost:8080/magnoliaAuthor/.rest/template-definitions/v1/mtk2:components/image

Current result:

original (not decorated) definition returned

Expected result:

decorated definition returned (foo: bar is present)



 Comments   
Comment by Mykola [ 14/Jun/23 ]

I can't change title, but it looks like not only decorations are not respected

If I create my own component in light-module with property foo: bar it is not visible in endpoint also

Maybe because of the matcher

Comment by Mykola [ 14/Jun/23 ]

upd: tried to put it in parameters 

result in REST:
key is present
value sadly is not

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