[MAGNOLIA-8764] Introduce !overrideAll for yaml files Created: 15/Feb/23  Updated: 15/Feb/23

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

Type: Improvement Priority: Neutral
Reporter: Fabian Illsinger 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)

 Description   

Hello,

the "override" mechanism works quite different for yaml and JCR.
In JCR the override will completely override all properties and subnodes, whereas in yaml an override only overrides all properties of that node.

Here the Magnolia documentation:

JCR

An override allows the extending node to completely remove the inherited content and replace it with its own content entries.

https://docs.magnolia-cms.com/product-docs/6.2/Administration/Architecture/Configuration-management.html#_overriding

YAML

Use !override to completely ignore the properties of an inherited or included node. As a consequence, you have to add specify properties to the given node.

https://docs.magnolia-cms.com/product-docs/6.2/Developing/YAML.html#_yaml_override

 

It would be good to have a "!overrideAll" keyword for yaml definitions, so  it would be possible to overwrite a whole node including subnodes (like in JCR).

Best Regards

Fabian


Generated at Mon Feb 12 04:35:35 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.